Skip to content

Commit 288a541

Browse files
committed
Use cross-env so test passes on Windows
1 parent 1210f2c commit 288a541

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"build:tarball": "npm pack",
3434
"clean": "node-gyp clean && rm -rf lib && rm -rf build",
3535
"test": "yarn test:install && node ./test/prepare.mjs && vitest run --silent=false --disable-console-intercept",
36-
"test:install": "ALWAYS_THROW=true yarn install"
36+
"test:install": "cross-env ALWAYS_THROW=true yarn install"
3737
},
3838
"engines": {
3939
"node": ">=18"
@@ -47,6 +47,7 @@
4747
"@types/node": "^18.19.1",
4848
"@types/node-abi": "^3.0.3",
4949
"clang-format": "^1.8.0",
50+
"cross-env": "^10.0.0",
5051
"eslint": "^7.0.0",
5152
"node-gyp": "^11.2.0",
5253
"typescript": "^5.8.3",
@@ -67,4 +68,4 @@
6768
"volta": {
6869
"node": "24.1.0"
6970
}
70-
}
71+
}

yarn.lock

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
js-tokens "^4.0.0"
2525
picocolors "^1.0.0"
2626

27+
"@epic-web/invariant@^1.0.0":
28+
version "1.0.0"
29+
resolved "https://registry.yarnpkg.com/@epic-web/invariant/-/invariant-1.0.0.tgz#1073e5dee6dd540410784990eb73e4acd25c9813"
30+
integrity sha512-lrTPqgvfFQtR/eY/qkIzp98OGdNJu0m5ji3q/nJI8v3SXkRKEnWiOxMmbvcSoAIzv/cGiuvRy57k4suKQSAdwA==
31+
2732
"@esbuild/[email protected]":
2833
version "0.25.4"
2934
resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.25.4.tgz#830d6476cbbca0c005136af07303646b419f1162"
@@ -952,6 +957,14 @@ [email protected]:
952957
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
953958
integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
954959

960+
cross-env@^10.0.0:
961+
version "10.0.0"
962+
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-10.0.0.tgz#ba25823cfa1ed6af293dcded8796fa16cd162456"
963+
integrity sha512-aU8qlEK/nHYtVuN4p7UQgAwVljzMg8hB4YK5ThRqD2l/ziSnryncPNn7bMLt5cFYsKVKBh8HqLqyCoTupEUu7Q==
964+
dependencies:
965+
"@epic-web/invariant" "^1.0.0"
966+
cross-spawn "^7.0.6"
967+
955968
cross-spawn@^7.0.2, cross-spawn@^7.0.6:
956969
version "7.0.6"
957970
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f"

0 commit comments

Comments
 (0)