Skip to content

Commit 03e4f57

Browse files
committed
build(npm, shell): use the global standard-version
1 parent b58cab1 commit 03e4f57

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

.versionrc.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"skip": {
3+
"commit": true,
4+
"tag": true
5+
},
6+
"types": [
7+
{
8+
"type": "feat",
9+
"section": "Features"
10+
},
11+
{
12+
"type": "fix",
13+
"section": "Bug Fixes"
14+
},
15+
{
16+
"type": "perf",
17+
"section": "Improvements"
18+
}
19+
]
20+
}

package.json

-20
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,6 @@
1818
"gulp-insert": "^0.5.0",
1919
"gulp-rename": "^2.0.0",
2020
"gulp-uglify": "^3.0.2",
21-
"standard-version": "^9.3.2",
2221
"uglify-js": "^3.14.3"
23-
},
24-
"standard-version": {
25-
"skip": {
26-
"commit": true,
27-
"tag": true
28-
},
29-
"types": [{
30-
"type": "feat",
31-
"section": "Features"
32-
},
33-
{
34-
"type": "fix",
35-
"section": "Bug Fixes"
36-
},
37-
{
38-
"type": "perf",
39-
"section": "Improvements"
40-
}
41-
]
4222
}
4323
}

tools/release.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# Usage: run on main branch or the patch branch
1212
#
13-
# Requires: Git, Node.js, NPX and RubyGems
13+
# Requires: Git, NPM and RubyGems
1414

1515
set -eu
1616

@@ -36,7 +36,7 @@ FILES=(
3636
TOOLS=(
3737
"git"
3838
"npm"
39-
"npx"
39+
"standard-version"
4040
"gem"
4141
)
4242

@@ -143,9 +143,9 @@ resume_config() {
143143
# auto-generate a new version number to the file 'package.json'
144144
standard_version() {
145145
if $opt_pre; then
146-
npx standard-version --prerelease rc
146+
standard-version --prerelease rc
147147
else
148-
npx standard-version
148+
standard-version
149149
fi
150150
}
151151

0 commit comments

Comments
 (0)