@jeromefitz/semantic 5.1.3 → 6.0.0-canary.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeromefitz/semantic",
3
- "version": "5.1.3",
3
+ "version": "6.0.0-canary.2",
4
4
  "description": "Semantic Versioning, Conventional Commits with CI/CD for GitHub Actions.",
5
5
  "author": {
6
6
  "name": "Jerome Fitzgerald",
@@ -22,33 +22,35 @@
22
22
  "private": false,
23
23
  "scripts": {
24
24
  "build": "echo @jeromefitz/semantic",
25
- "build:binaries": "echo skip @jeromefitz/semantic build:binaries",
26
25
  "semantic-release": "echo semantic-release",
27
26
  "test": "echo skip @jeromefitz/semantic test"
28
27
  },
29
28
  "dependencies": {
30
29
  "@jeromefitz/semantic-release-git": "10.0.0-develop.2",
31
30
  "@octokit/core": "3.5.1",
32
- "@semantic-release/commit-analyzer": "9.0.1",
31
+ "@semantic-release/commit-analyzer": "9.0.2",
33
32
  "@semantic-release/exec": "6.0.2",
34
33
  "@semantic-release/github": "8.0.2",
35
34
  "@semantic-release/npm": "8.0.3",
36
- "@semantic-release/release-notes-generator": "10.0.2",
35
+ "@semantic-release/release-notes-generator": "10.0.3",
37
36
  "grapheme-splitter": "1.0.4",
38
- "lodash": "4.17.21",
39
- "multi-semantic-release": "2.10.0",
40
- "semantic-release": "18.0.0",
37
+ "lodash-es": "4.17.21",
38
+ "lodash.map": "4.6.0",
39
+ "lodash.pullat": "4.6.0",
40
+ "multi-semantic-release": "2.11.0",
41
+ "semantic-release": "18.0.1",
41
42
  "semantic-release-commit-filter": "1.0.2",
42
43
  "title": "3.4.3"
43
44
  },
44
- "main": "release.config.js",
45
+ "type": "module",
46
+ "exports": "./release.config.cjs",
45
47
  "files": [
46
48
  "src/branches.js",
47
49
  "src/changelog.config.js",
48
50
  "src/releaseRules.js",
49
51
  "src/typeSpecs.js",
50
52
  "package.json",
51
- "release.config.js",
53
+ "release.config.cjs",
52
54
  "yarn.lock"
53
55
  ]
54
56
  }
@@ -1,11 +1,11 @@
1
1
  const GraphemeSplitter = require('grapheme-splitter')
2
2
  const isCI = require('is-ci')
3
- const _pullAt = require('lodash/pullAt')
3
+ const _pullAt = require('lodash.pullat/index.js')
4
4
 
5
5
  const { name } = require('./package.json')
6
- const branches = require('./src/branches')
7
- const releaseRules = require('./src/releaseRules')
8
- const typeSpecs = require('./src/typeSpecs')
6
+ const branches = require('./src/branches.cjs')
7
+ const releaseRules = require('./src/releaseRules.cjs')
8
+ const typeSpecs = require('./src/typeSpecs.cjs')
9
9
 
10
10
  !isCI && require('dotenv').config({ path: '../../.env' })
11
11
 
@@ -92,7 +92,7 @@ const writerOpts = {
92
92
  // console.dir(`writerOpts`)
93
93
  // console.dir(writerOpts)
94
94
 
95
- module.exports = {
95
+ const config = {
96
96
  branches,
97
97
  // ci: false,
98
98
  // debug: true,
@@ -133,14 +133,9 @@ module.exports = {
133
133
  'echo sh ./scripts/postSemanticRelease.sh ${nextRelease.version} ${nextRelease.channel} ${nextRelease.gitHead} ${nextRelease.gitTag}',
134
134
  },
135
135
  ],
136
- // [
137
- // '@jeromefitz/semantic-release-git',
138
- // {
139
- // assets: ['package.json'],
140
- // message: `🔖️ {RELEASE_TAG} [skip ci]\n\n{RELEASE_URL}/releases/tag/{RELEASE_TAG}\n\n{RELEASE_NOTES}`,
141
- // },
142
- // ],
143
136
  ],
144
137
  //
145
138
  tagFormat: `${name}@\${version}`,
146
139
  }
140
+
141
+ module.exports = config
@@ -1,4 +1,4 @@
1
- const config = require('../../git-cz/dist/themes/gitmoji').default
1
+ import config from '../../git-cz/dist/themes/gitmoji'
2
2
 
3
3
  const commit = {
4
4
  ...config.commit,
@@ -19,4 +19,4 @@ const branch = {
19
19
 
20
20
  const changelog = { ...config, branch, commit }
21
21
 
22
- module.exports = changelog
22
+ export default changelog
package/src/branches.js DELETED
@@ -1,31 +0,0 @@
1
- const _map = require('lodash/map')
2
-
3
- const releaseBranchTypes = {
4
- ci: [],
5
- feature: [],
6
- fix: [],
7
- // @note this is "sprint"
8
- release: [],
9
- }
10
-
11
- const branchTypes = _map(
12
- releaseBranchTypes,
13
- (releaseBranchType, releaseBranchTypeIndex) => {
14
- return _map(releaseBranchType, (branchType) => {
15
- return (
16
- !!branchType && {
17
- name: `${releaseBranchTypeIndex}/${branchType}`,
18
- prerelease: branchType,
19
- }
20
- )
21
- })[0]
22
- }
23
- ).filter((branchType) => !!branchType)
24
-
25
- const branches = [
26
- { name: 'main' },
27
- { name: 'canary', prerelease: 'canary' },
28
- ...branchTypes,
29
- ]
30
-
31
- module.exports = branches