1
1
const fs = require ( 'fs-extra' ) ;
2
2
const chalk = require ( 'chalk' ) ;
3
- const { x, shell } = require ( './utils' ) ;
3
+ const { x, sh } = require ( './utils' ) ;
4
4
5
5
main ( ) ;
6
6
async function main ( ) {
@@ -18,29 +18,29 @@ async function main() {
18
18
return ;
19
19
}
20
20
21
- await shell ( 'git rebase -i main' ) ;
22
- await shell ( 'git checkout main' ) ;
23
- await shell ( 'git merge dev' ) ;
21
+ await sh ( 'git rebase -i main' ) ;
22
+ await sh ( 'git checkout main' ) ;
23
+ await sh ( 'git merge dev' ) ;
24
24
25
25
await fs . remove ( './build' ) ;
26
- await shell ( 'tsc -p tsconfig.cjs.json' ) ;
27
- await shell ( 'tsc -p tsconfig.esm.json' ) ;
28
- await shell ( 'jest' ) ;
26
+ await sh ( 'tsc -p tsconfig.cjs.json' ) ;
27
+ await sh ( 'tsc -p tsconfig.esm.json' ) ;
28
+ await sh ( 'jest' ) ;
29
29
30
30
const path = require ( '../build/cjs/index.cjs.js' ) ;
31
31
32
32
await path ( 'package.json' ) . updateJSON ( ( pkg ) => {
33
33
pkg . version = version ;
34
34
} ) ;
35
35
await genRelease ( ) ;
36
- await shell ( 'yarn docs' ) ;
37
- await shell ( 'conventional-changelog -p angular -i CHANGELOG.md -s' ) ;
38
-
39
- await shell ( 'git add -A' ) ;
40
- await shell ( `git commit -m "chore: release ${ version } "` ) ;
41
- await shell ( 'git push' ) ;
42
- await shell ( `git tag v${ version } ` ) ;
43
- await shell ( `git push origin v${ version } ` ) ;
36
+ await sh ( 'yarn docs' ) ;
37
+ await sh ( 'conventional-changelog -p angular -i CHANGELOG.md -s' ) ;
38
+
39
+ await sh ( 'git add -A' ) ;
40
+ await sh ( `git commit -m "chore: release ${ version } "` ) ;
41
+ await sh ( 'git push' ) ;
42
+ await sh ( `git tag v${ version } ` ) ;
43
+ await sh ( `git push origin v${ version } ` ) ;
44
44
45
45
console . log ( chalk . red ( `Critical operation:` ) ) ;
46
46
console . log ( chalk . red ( ` $ npm publish --dry-run ./release` ) ) ;
0 commit comments