Skip to content
This repository was archived by the owner on Dec 4, 2022. It is now read-only.

Commit 8b85b11

Browse files
authored
build(npm): update config (#43)
1 parent 161904f commit 8b85b11

File tree

3 files changed

+41
-35
lines changed

3 files changed

+41
-35
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
.gitignore
1111
.npmignore
1212
commitlint.config.js
13+
release-rules.js
1314

1415
# ci tools
1516
/.circleci

package.json

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-tslint-rules",
3-
"version": "1.14.0",
3+
"version": "0.0.0",
44
"description": "Shared TSLint & codelyzer rules to enforce a consistent code style for Angular development",
55
"repository": {
66
"type": "git",
@@ -52,40 +52,7 @@
5252
"@semantic-release/commit-analyzer",
5353
{
5454
"preset": "angular",
55-
"releaseRules": [
56-
{
57-
"type": "build",
58-
"release": "patch"
59-
},
60-
{
61-
"type": "chore",
62-
"release": "patch"
63-
},
64-
{
65-
"type": "ci",
66-
"release": "patch"
67-
},
68-
{
69-
"type": "docs",
70-
"release": "patch"
71-
},
72-
{
73-
"type": "feat",
74-
"release": "minor"
75-
},
76-
{
77-
"type": "fix",
78-
"release": "patch"
79-
},
80-
{
81-
"type": "refactor",
82-
"release": "patch"
83-
},
84-
{
85-
"type": "style",
86-
"release": "patch"
87-
}
88-
],
55+
"releaseRules": "./release-rules.js",
8956
"parserOpts": {
9057
"noteKeywords": [
9158
"BREAKING CHANGE",

release-rules.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
module.exports = [
2+
{
3+
'type': 'build',
4+
'release': 'patch'
5+
},
6+
{
7+
'type': 'chore',
8+
'release': 'patch'
9+
},
10+
{
11+
'type': 'ci',
12+
'release': 'patch'
13+
},
14+
{
15+
'type': 'docs',
16+
'release': 'patch'
17+
},
18+
{
19+
'type': 'feat',
20+
'release': 'minor'
21+
},
22+
{
23+
'type': 'fix',
24+
'release': 'patch'
25+
},
26+
{
27+
'type': 'refactor',
28+
'release': 'patch'
29+
},
30+
{
31+
'type': 'style',
32+
'release': 'patch'
33+
},
34+
{
35+
'scope': 'no-release',
36+
'release': false
37+
}
38+
];

0 commit comments

Comments
 (0)