Commit f32313a 1 parent 863fd7d commit f32313a Copy full SHA for f32313a
File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 28
28
"docs-serve" : " vitepress serve docs" ,
29
29
"build" : " pnpm -r --filter=./packages/* run build" ,
30
30
"dev" : " pnpm -r --parallel --filter=./packages/* run dev" ,
31
- "release" : " ts-node scripts/release.ts" ,
32
- "ci-publish" : " ts-node scripts/publishCI.ts" ,
31
+ "release" : " esno scripts/release.ts" ,
32
+ "ci-publish" : " esno scripts/publishCI.ts" ,
33
33
"ci-docs" : " run-s build docs-build"
34
34
},
35
35
"devDependencies" : {
63
63
"eslint-define-config" : " ^1.4.0" ,
64
64
"eslint-plugin-import" : " ^2.26.0" ,
65
65
"eslint-plugin-node" : " ^11.1.0" ,
66
+ "esno" : " ^0.15.0" ,
66
67
"execa" : " ^5.1.1" ,
67
68
"fs-extra" : " ^10.1.0" ,
68
69
"kill-port" : " ^1.6.1" ,
79
80
"semver" : " ^7.3.7" ,
80
81
"simple-git-hooks" : " ^2.7.0" ,
81
82
"sirv" : " ^2.0.2" ,
82
- "ts-node" : " ^10.7.0" ,
83
83
"typescript" : " ^4.6.4" ,
84
84
"unbuild" : " ^0.7.4" ,
85
85
"vite" : " workspace:*" ,
89
89
},
90
90
"simple-git-hooks" : {
91
91
"pre-commit" : " pnpm exec lint-staged --concurrent false" ,
92
- "commit-msg" : " pnpm exec ts-node scripts/verifyCommit.ts $1"
92
+ "commit-msg" : " pnpm exec esno scripts/verifyCommit.ts $1"
93
93
},
94
94
"lint-staged" : {
95
95
"*" : [
Original file line number Diff line number Diff line change 23
23
"scripts" : {
24
24
"dev" : " unbuild --stub" ,
25
25
"build" : " unbuild && pnpm run patch-cjs" ,
26
- "patch-cjs" : " ts-node ../../scripts/patchCJS.ts" ,
26
+ "patch-cjs" : " esno ../../scripts/patchCJS.ts" ,
27
27
"prepublishOnly" : " npm run build"
28
28
},
29
29
"engines" : {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ module.exports.parseVueRequest = parseVueRequest;
17
17
*/
18
18
19
19
import { readFileSync , writeFileSync } from 'fs'
20
- import { bold , red } from 'picocolors'
20
+ import colors from 'picocolors'
21
21
22
22
const indexPath = 'dist/index.cjs'
23
23
let code = readFileSync ( indexPath , 'utf-8' )
@@ -40,7 +40,7 @@ if (matchMixed) {
40
40
41
41
writeFileSync ( indexPath , lines . join ( '\n' ) )
42
42
43
- console . log ( bold ( `${ indexPath } CJS patched` ) )
43
+ console . log ( colors . bold ( `${ indexPath } CJS patched` ) )
44
44
process . exit ( )
45
45
}
46
46
@@ -49,9 +49,9 @@ const matchDefault = code.match(/\nmodule.exports = (\w+);/)
49
49
if ( matchDefault ) {
50
50
code += `module.exports["default"] = ${ matchDefault [ 1 ] } ;\n`
51
51
writeFileSync ( indexPath , code )
52
- console . log ( bold ( `${ indexPath } CJS patched` ) )
52
+ console . log ( colors . bold ( `${ indexPath } CJS patched` ) )
53
53
process . exit ( )
54
54
}
55
55
56
- console . error ( red ( `${ indexPath } CJS patch failed` ) )
56
+ console . error ( colors . red ( `${ indexPath } CJS patch failed` ) )
57
57
process . exit ( 1 )
You can’t perform that action at this time.
0 commit comments