mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
- Node.js --test flag doesn't support glob patterns directly - Changed test commands to use find + xargs pattern - This ensures all test files are discovered and passed to node --test - Works reliably across different shell environments Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>
15 lines
362 B
JSON
15 lines
362 B
JSON
{
|
|
"name": "@examples/compat-mode",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "napi-raw build --no-js --features latest",
|
|
"test": "find __tests__ -name '*.spec.ts' | xargs node --import @oxc-node/core/register --test"
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "workspace:*",
|
|
"sinon": "^21.0.0"
|
|
}
|
|
}
|