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

Commit 365b6f9

Browse files
authored
Resolve comment in brew PR (#1018)
Co-authored-by: Hien To <tominhhien97@gmail.com>
1 parent 71ed05e commit 365b6f9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

cortex-cpp/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
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": "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 && yarn clean-build-deps",
14+
"clean-build-deps": "run-script-os",
15+
"clean-build-deps:windows": "echo 'No need to clean build-deps on Windows'",
16+
"clean-build-deps:linux": "rm -rf ./build-deps/cortex-cpp-deps && rm -rf ./build/CMakeCache.txt && rm -rf ./build/CMakeFiles && rm -rf ./build/compile_commands.json",
17+
"clean-build-deps:macos": "rm -rf ./build-deps/cortex-cpp-deps && rm -rf ./build/CMakeCache.txt && rm -rf ./build/CMakeFiles && rm -rf ./build/compile_commands.json",
1418
"build": "yarn build-deps && cmake-js configure --config Release && cmake-js build --config Release",
1519
"rebuild": "yarn build-deps && cmake-js rebuild --config Release",
1620
"prebuild": "yarn build-deps && prebuild --runtime napi --backend cmake-js --all --strip --verbose --config Release --include-regex \"\\.(node|exp|lib|so)$\"",
@@ -28,7 +32,8 @@
2832
},
2933
"devDependencies": {
3034
"@types/node": "^20.14.9",
31-
"typescript": "^5.5.3"
35+
"typescript": "^5.5.3",
36+
"run-script-os": "^1.1.6"
3237
},
3338
"binary": {
3439
"napi_versions": [

cortex-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"class-transformer": "^0.5.1",
5959
"class-validator": "^0.14.1",
6060
"cli-progress": "^3.12.0",
61-
"cortex-cpp": "0.5.0-40",
61+
"cortex-cpp": "0.5.0-44",
6262
"decompress": "^4.2.1",
6363
"hyllama": "^0.2.2",
6464
"js-yaml": "^4.1.0",

0 commit comments

Comments
 (0)