Skip to content

Commit

Permalink
build: install weak-napi only for the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jun 14, 2024
1 parent 67426b0 commit 89a51ec
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 48 deletions.
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"@types/node": "^18.19.34",
"@types/semver": "^7.5.8",
"@types/shelljs": "^0.8.15",
"@types/weak-napi": "^2.0.3",
"@types/which": "^2.0.2",
"benchmark": "^2.1.4",
"chai": "^4.4.1",
Expand All @@ -54,7 +53,6 @@
"ts-node": "~10.9.2",
"typedoc": "^0.25.13",
"typescript": "~4.9.5",
"weak-napi": "^2.0.2",
"which": "^3.0.1"
},
"pnpm": {
Expand Down Expand Up @@ -95,9 +93,10 @@
"build.native.debug": "cross-env CMAKE_BUILD_TYPE=Debug node-gyp configure --debug -- -f compile_commands_json && cross-env CMAKE_BUILD_TYPE=Debug node-gyp build --debug",
"build": "run-s build.js build.native",
"build.debug": "run-s build.js build.native.debug",
"test": "run-s build && mocha --exit",
"test.skip_gc_tests": "run-s build.debug && cross-env SKIP_GC_TESTS=true mocha --exit",
"test.electron.main": "run-s build && electron-mocha",
"test.deps": "cd test && pnpm install && cd ..",
"test": "run-s test.deps build && mocha --exit",
"test.skip_gc_tests": "run-s test.deps build.debug && cross-env SKIP_GC_TESTS=true mocha --exit",
"test.electron.main": "run-s test.deps build && electron-mocha",
"format": "prettier --write .",
"test.electron.renderer": "run-s build && electron-mocha --renderer",
"lint.clang-format": "clang-format -i -style=file ./src/*.cc ./src/*.h ./src/util/*.h",
Expand Down
43 changes: 0 additions & 43 deletions pnpm-lock.yaml

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

6 changes: 6 additions & 0 deletions test/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"devDependencies": {
"@types/weak-napi": "^2.0.3",
"weak-napi": "^2.0.2"
}
}
79 changes: 79 additions & 0 deletions test/pnpm-lock.yaml

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

0 comments on commit 89a51ec

Please sign in to comment.