UNPKG
cckj-util
Version:
latest (0.0.5)
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
A common util lib for cj
cckj-util
/
script
/
publish
/
patch.js
10 lines
(7 loc)
•
208 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
shell =
require
(
'shelljs'
); shell.
exec
(
'npm version patch'
)
if
(shell.
exec
(
'npm run build'
).code !==
0
) {
//执行 npm run build 命令
shell.
echo
(
'Error: npm run build failed'
); shell.
exit
(
1
); }