Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hyf0 committed Mar 11, 2024
1 parent e90400b commit 1fe69a5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/node/build.config.ts
Expand Up @@ -14,7 +14,7 @@ export default defineBuildConfig({
cjsBridge: true,
},
hooks: {
'build:done'(ctx) {
'build:done'(_ctx) {
const binaryFiles = globSync('./src/rolldown-binding.*.node', {
absolute: true,
})
Expand Down
12 changes: 9 additions & 3 deletions packages/node/package.json
Expand Up @@ -22,12 +22,15 @@
"dist"
],
"scripts": {
"#`build-binding[:release]` need to run correctly with the cwd `packages/node`": "_",
"# Scrips for binding #": "_",
"format-generated-binding-files": "prettier --write src/binding.js src/binding.d.ts",
"build-binding": "napi build -o=./src --manifest-path ../../crates/rolldown_binding/Cargo.toml --platform -p rolldown_binding --js binding.js --dts binding.d.ts",
"build-binding:release": "napi build -o=./src --release --manifest-path ../../crates/rolldown_binding/Cargo.toml --platform -p rolldown_binding --js binding.js --dts binding.d.ts",
"# Scrips for node #": "_",
"build-node": "unbuild",
"build": "run-s build-binding build-node",
"build:release": "run-s build-binding:release build-node",
"build": "run-s build-binding build-node format-generated-binding-files",
"build:release": "run-s build-binding:release build-node format-generated-binding-files",
"# Scrips for checking #": "_",
"test": "vitest run",
"test:update": "vitest run -u",
"type-check": "tsc -p tsconfig.check.json"
Expand Down Expand Up @@ -58,5 +61,8 @@
"typescript": "^5.4.2",
"unbuild": "^2.0.0",
"vitest": "^1.3.1"
},
"dependencies": {
"prettier": "^3.2.5"
}
}
1 change: 1 addition & 0 deletions yarn.lock
Expand Up @@ -10021,6 +10021,7 @@ __metadata:
"@napi-rs/cli": "npm:^3.0.0-alpha.43"
"@types/node": "npm:^20.11.25"
npm-run-all2: "npm:^6.1.2"
prettier: "npm:^3.2.5"
type-fest: "npm:^4.12.0"
typescript: "npm:^5.4.2"
unbuild: "npm:^2.0.0"
Expand Down

0 comments on commit 1fe69a5

Please sign in to comment.