@itcase/config 1.0.43 → 1.0.45

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": "@itcase/config",
3
- "version": "1.0.43",
3
+ "version": "1.0.45",
4
4
  "author": "ITCase",
5
5
  "description": "Config",
6
6
  "engines": {
@@ -1,7 +1,39 @@
1
- import semanticReleaseConfig, { noteKeywords, releaseRules } from './index'
1
+ /* eslint-disable perfectionist/sort-objects */
2
+
3
+ // Keywords for important notes. This value is case insensitive.
4
+ const noteKeywords = ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING']
5
+
6
+ const releaseRules = [
7
+ // Hidden general semver releases
8
+ { type: 'major', release: 'major' },
9
+ { type: 'minor', release: 'minor' },
10
+ { type: 'patch', release: 'patch' },
11
+ // Main changes
12
+ { type: 'fix', release: 'patch' },
13
+ { type: 'feat', release: 'patch' },
14
+ {
15
+ type: 'feat',
16
+ scope: 'minor',
17
+ release: 'minor',
18
+ },
19
+ {
20
+ type: 'feat',
21
+ scope: 'major',
22
+ release: 'major',
23
+ },
24
+ { type: 'styles', release: 'patch' },
25
+ // Special changes
26
+ { type: 'chore', release: false },
27
+ { type: 'docs', release: false },
28
+ { type: 'docs', scope: 'readme', release: 'patch' },
29
+ { type: 'refactor', release: 'patch' },
30
+ { type: 'perf', release: 'patch' },
31
+ { type: 'tests', release: false },
32
+ ]
2
33
 
3
34
  const lernaSemanticReleaseConfig = {
4
- ...semanticReleaseConfig,
35
+ branches: ['master'],
36
+ preset: 'conventionalcommits',
5
37
  plugins: [
6
38
  [
7
39
  '@semantic-release/commit-analyzer',
@@ -10,10 +42,23 @@ const lernaSemanticReleaseConfig = {
10
42
  releaseRules: releaseRules,
11
43
  },
12
44
  ],
13
- 'semantic-release-lerna',
45
+ ['semantic-release-lerna', { generateNotes: true }],
14
46
  [
15
47
  '@semantic-release/release-notes-generator',
16
48
  {
49
+ presetConfig: {
50
+ types: [
51
+ { type: 'fix', section: 'Fixes' },
52
+ { type: 'feat', section: 'Features' },
53
+ { type: 'styles', section: 'CSS and styles' },
54
+ { type: 'refactor', section: 'Refactoring' },
55
+ {
56
+ type: 'perf',
57
+ section: 'Performance Improvements',
58
+ },
59
+ { type: 'tests', section: 'Tests' },
60
+ ],
61
+ },
17
62
  parserOpts: { noteKeywords: noteKeywords },
18
63
  writerOpts: { commitsSort: ['subject', 'scope'] },
19
64
  },
@@ -24,16 +69,19 @@ const lernaSemanticReleaseConfig = {
24
69
  changelogFile: 'CHANGELOG.md',
25
70
  },
26
71
  ],
72
+ '@semantic-release/npm',
27
73
  [
28
74
  '@semantic-release/git',
29
75
  {
30
76
  assets: [
31
77
  'lerna.json',
32
78
  'CHANGELOG.md',
79
+ '/**/package.json',
80
+ '/**/package-lock.json',
33
81
  'package.json',
34
82
  'package-lock.json',
35
- 'packages/**/package.json',
36
- 'packages/**/package-lock.json',
83
+ 'packages/*/package.json',
84
+ 'packages/*/package-lock.json',
37
85
  ],
38
86
  },
39
87
  ],