mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
68 lines
1.7 KiB
JSON
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.29",
|
|
"@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": "^37.0.0",
|
|
"lodash": "^4.17.21",
|
|
"playwright": "^1.51.1",
|
|
"rxjs": "^7.8.2",
|
|
"sinon": "^21.0.0",
|
|
"vite": "^7.0.0",
|
|
"vite-plugin-node-polyfills": "^0.24.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"
|
|
}
|
|
}
|