napi-rs/examples/napi/package.json
LongYinan 3a720f09cf
feat(sys): sync Node-API version changes (#2661)
* feat(sys): sync Node-API version changes

* upgrade electron

* move node_api_create_buffer_from_arraybuffer to experimental
2025-05-25 00:48:56 +08:00

68 lines
1.7 KiB
JSON

{
"name": "@examples/napi",
"private": true,
"version": "0.0.0",
"type": "module",
"main": "./index.js",
"types": "./index.d.ts",
"scripts": {
"browser": "vite",
"build": "napi-raw build --platform --js index.cjs --dts index.d.cts",
"test": "ava reset-cache && cross-env TS_NODE_PROJECT=./tsconfig.json node --import @oxc-node/core/register ../../node_modules/ava/entrypoints/cli.mjs",
"test-js": "ava reset-cache && ava"
},
"napi": {
"binaryName": "example",
"wasm": {
"initialMemory": 16384,
"browser": {
"fs": true
}
},
"dtsHeader": "type MaybePromise<T> = T | Promise<T>",
"dtsHeaderFile": "./dts-header.d.ts",
"targets": [
"wasm32-wasip1-threads"
]
},
"devDependencies": {
"@napi-rs/cli": "workspace:*",
"@napi-rs/triples": "workspace:*",
"@napi-rs/wasm-runtime": "workspace:*",
"@oxc-node/core": "^0.0.27",
"@testing-library/dom": "^10.4.0",
"@types/lodash": "^4.17.16",
"@vitest/browser": "^3.1.1",
"@vitest/ui": "^3.1.1",
"ava": "^6.2.0",
"buffer": "^6.0.3",
"cross-env": "7.0.3",
"electron": "^36.3.1",
"lodash": "^4.17.21",
"playwright": "^1.51.1",
"rxjs": "^7.8.2",
"sinon": "^20.0.0",
"vite": "^6.2.4",
"vite-plugin-node-polyfills": "^0.23.0",
"vitest": "^3.1.1",
"web-streams-polyfill": "^4.1.0",
"webdriverio": "^9.12.2"
},
"ava": {
"extensions": {
"ts": "module",
"cts": "commonjs",
"cjs": true,
"js": true
},
"files": [
"__tests__/**/*.spec.{ts,cts,js,cjs,mjs}"
],
"cache": false,
"timeout": "10m"
},
"dependencies": {
"@emnapi/core": "^1.4.0"
}
}