Skip to content

Commit 41b5ad1

Browse files
committed
🚧build(build): 优化构建流程
1 parent 0a48ff7 commit 41b5ad1

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.release-it.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
hooks: {
3-
"after:bump": "npm run build",
3+
"after:bump": "npx esno scripts/dep-script.ts && npm run build",
44
},
55
git: {
66
commitMessage: "chore: release v${version}",

scripts/dep-script.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { loggerWarring } from "../src/shared/index";
2+
import { npmDepCheck } from "../src/command/npm-dep-check";
3+
4+
async function cmv() {
5+
try {
6+
await npmDepCheck();
7+
} catch (error) {
8+
loggerWarring(error);
9+
}
10+
}
11+
12+
cmv();

0 commit comments

Comments
 (0)