Skip to content

Commit a07e77e

Browse files
committed
Drive the configure, build and test from package scripts
1 parent f09e91a commit a07e77e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/weak-node-api/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Everything in weak-node-api is generated, except for the configurations
33
# Generated and built via `npm run bootstrap`
44
/build/
5+
/build-tests/
56
/*.xcframework
67
/*.android.node
78
/generated/weak_node_api.cpp

packages/weak-node-api/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
"build-weak-node-api:apple": "node --run build-weak-node-api -- --apple",
3434
"build-weak-node-api:all": "node --run build-weak-node-api -- --android --apple",
3535
"test": "tsx --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=stdout src/node/**/*.test.ts src/node/*.test.ts",
36+
"test:configure": "cmake -S . -B build-tests -DBUILD_TESTS=ON",
37+
"test:build": "cmake --build build-tests",
38+
"test:run": "ctest --test-dir build --output-on-failure",
3639
"bootstrap": "node --run prepare-weak-node-api && node --run build-weak-node-api",
3740
"prerelease": "node --run prepare-weak-node-api && node --run build-weak-node-api:all"
3841
},

0 commit comments

Comments
 (0)