Skip to content

Commit d37b8de

Browse files
committed
chore: remove release-it configuration from package.json and add to .release-it.json
1 parent 1c622a5 commit d37b8de

2 files changed

Lines changed: 18 additions & 16 deletions

File tree

.release-it.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://unpkg.com/release-it@19/schema/release-it.json",
3+
"github": {
4+
"release": true
5+
},
6+
"git": {
7+
"tagName": "v${version}",
8+
"requireBranch": "main"
9+
},
10+
"hooks": {
11+
"before:init": [
12+
"npm run test"
13+
]
14+
},
15+
"npm": {
16+
"publish": true
17+
}
18+
}

package.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,6 @@
1616
"license-checker": "license-checker --production --onlyAllow='MIT;ISC;BSD-3-Clause;BSD-2-Clause'",
1717
"release": "read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it --disable-metrics"
1818
},
19-
"release-it": {
20-
"github": {
21-
"release": true
22-
},
23-
"git": {
24-
"tagName": "v${version}"
25-
},
26-
"hooks": {
27-
"before:init": [
28-
"npm run test"
29-
]
30-
},
31-
"npm": {
32-
"publish": true
33-
}
34-
},
3519
"pre-commit": [
3620
"test"
3721
],

0 commit comments

Comments
 (0)