Skip to content

Commit

Permalink
chore(napi/build): disable dts cache of napi build (#8795)
Browse files Browse the repository at this point in the history
chore: disable dts cache of napi build
  • Loading branch information
h-a-n-a authored Dec 20, 2024
1 parent 7099641 commit 445398c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions crates/node_binding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"bugs": "https://github.com/web-infra-dev/rspack/issues",
"repository": "web-infra-dev/rspack",
"devDependencies": {
"@napi-rs/cli": "3.0.0-alpha.64",
"@napi-rs/cli": "3.0.0-alpha.65",
"typescript": "^5.7.2"
},
"napi": {
Expand All @@ -51,4 +51,4 @@
"@rspack/binding-linux-x64-gnu": "workspace:*",
"@rspack/binding-win32-x64-msvc": "workspace:*"
}
}
}
9 changes: 5 additions & 4 deletions crates/node_binding/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ let releaseDebug = process.argv.includes("--release-debug");
let watch = process.argv.includes("--watch");

build().then((value) => {
// Regarding cargo's non-zero exit code as an error.
if (value !== CARGO_SAFELY_EXIT_CODE) {
process.exit(value)
}
// Regarding cargo's non-zero exit code as an error.
if (value !== CARGO_SAFELY_EXIT_CODE) {
process.exit(value)
}
}).catch(err => {
console.error(err);
process.exit(1);
Expand All @@ -32,6 +32,7 @@ async function build() {
"--no-js",
// "--no-const-enum",
"--no-dts-header",
"--no-dts-cache",
"--pipe",
`"node ./scripts/dts-header.js"`
];
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 445398c

Please sign in to comment.