Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 58b5c2c

Browse files
committed
Resolve comment in brew PR
1 parent 71ed05e commit 58b5c2c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cortex-cpp/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
},
1111
"scripts": {
1212
"install": "prebuild-install --runtime napi --backend cmake-js --config Release || yarn rebuild",
13-
"build-deps": "cmake-js configure --directory ./cortex-cpp-deps --out ./build-deps/cortex-cpp-deps --config Release && cmake-js build --directory ./cortex-cpp-deps --out ./build-deps/cortex-cpp-deps --config Release",
13+
"build-deps": "run-script-os",
14+
"build-deps:windows": "cmake-js configure --directory ./cortex-cpp-deps --out ./build-deps/cortex-cpp-deps --config Release && cmake-js build --directory ./cortex-cpp-deps --out ./build-deps/cortex-cpp-deps --config Release",
15+
"build-deps:linux": "cmake-js configure --directory ./cortex-cpp-deps --out ./build-deps/cortex-cpp-deps --config Release && cmake-js build --directory ./cortex-cpp-deps --out ./build-deps/cortex-cpp-deps --config Release && rm -rf ./build-deps/cortex-cpp-deps && rm -rf ./build/CMakeCache.txt && rm -rf ./build/CMakeFiles && rm -rf ./build/compile_commands.json",
16+
"build-deps:macos": "cmake-js configure --directory ./cortex-cpp-deps --out ./build-deps/cortex-cpp-deps --config Release && cmake-js build --directory ./cortex-cpp-deps --out ./build-deps/cortex-cpp-deps --config Release && rm -rf ./build-deps/cortex-cpp-deps && rm -rf ./build/CMakeCache.txt && rm -rf ./build/CMakeFiles && rm -rf ./build/compile_commands.json",
1417
"build": "yarn build-deps && cmake-js configure --config Release && cmake-js build --config Release",
1518
"rebuild": "yarn build-deps && cmake-js rebuild --config Release",
1619
"prebuild": "yarn build-deps && prebuild --runtime napi --backend cmake-js --all --strip --verbose --config Release --include-regex \"\\.(node|exp|lib|so)$\"",
@@ -28,7 +31,8 @@
2831
},
2932
"devDependencies": {
3033
"@types/node": "^20.14.9",
31-
"typescript": "^5.5.3"
34+
"typescript": "^5.5.3",
35+
"run-script-os": "^1.1.6"
3236
},
3337
"binary": {
3438
"napi_versions": [

0 commit comments

Comments
 (0)