Files
node-rs/package.json
T
LongYinan 1933745e96 chore: upgrade all npm deps (#1187)
* chore: upgrade all npm deps

* fix: update tsconfig for TypeScript 7

Remove deprecated downlevelIteration and importsNotUsedAsValues options,
and explicitly include node types required by TypeScript 7.

* fix: download test artifacts into package dirs

@napi-rs/cli 3.8 requires all configured targets when running
napi artifacts. Test jobs only have one platform, so download
bindings directly into the workspace like the package template.

* fix: download bindings into packages/ for tests

upload-artifact uses packages/ as the common root, so the artifact
contains argon2/*.node not packages/argon2/*.node. Download into
packages/ so binaries land where the loaders expect them.

* fix: add WASI .d.cts files required by @napi-rs/cli 3.8

napi artifacts now requires a complete WASI loader set including
*.wasi.d.cts. Also upload the full WASI support files from the wasm
build job for the publish path.

* fix: upload only wasm artifacts from WASI builds

WASI loaders and types stay committed in the repo and updated with
the codegen; CI only needs the built .wasm binaries.
2026-08-12 23:51:31 +08:00

69 lines
1.6 KiB
JSON

{
"name": "node-rs",
"version": "0.0.0",
"private": true,
"description": "Node & Rust bindings monorepo",
"license": "MIT",
"author": "LongYinan <lynweklm@gmail.com>",
"workspaces": [
"packages/*"
],
"scripts": {
"artifacts": "yarn workspaces foreach -A --no-private run artifacts",
"build": "yarn workspaces foreach -A --no-private -j 1 run build",
"build:ts": "tsc -b tsconfig.json -verbose",
"lint": "oxlint .",
"test": "ava",
"format": "run-p format:oxfmt format:rs",
"format:oxfmt": "oxfmt --write .",
"format:rs": "cargo fmt --all",
"postinstall": "husky install"
},
"devDependencies": {
"@emnapi/core": "^2.0.0-alpha.4",
"@emnapi/runtime": "^2.0.0-alpha.4",
"@napi-rs/cli": "^3.8.6",
"@napi-rs/wasm-runtime": "^1.2.3",
"@tybys/wasm-util": "^0.10.3",
"@types/node": "^26.2.0",
"ava": "^8.0.1",
"cross-env": "^10.1.0",
"emnapi": "^2.0.0-alpha.4",
"husky": "^9.1.7",
"lerna": "^10.0.0",
"lint-staged": "^17.3.0",
"npm-run-all2": "^9.0.3",
"oxfmt": "^0.63.0",
"oxlint": "^1.78.0",
"prettier": "^3.9.6",
"tslib": "^2.8.1",
"typescript": "^7.0.2"
},
"lint-staged": {
"*.@(js|ts|tsx)": [
"oxlint --fix"
],
"*.@(js|ts|tsx|yml|yaml|json|md|toml)": [
"oxfmt --write"
],
"*.rs": [
"cargo fmt --"
]
},
"ava": {
"cache": false,
"extensions": [
"ts"
],
"files": [
"packages/*/__test__/**/*.spec.ts"
],
"nodeArguments": [
"--import",
"@oxc-node/core/register"
],
"timeout": "1m"
},
"packageManager": "yarn@4.18.0"
}