napi-rs/examples/napi/package.json
LongYinan 46cbcf3ff1
feat(cli): allow sync fs operation between workers/mainThread (#2064)
* feat(cli): allow sync fs operation between workers/mainThread

* allow sync fs operation between workers/mainThread (#2065)

* Fix

* Update fixture

* flaky test

* Fix cross compile target

* Update zig

* macos-cross test was filtered

---------

Co-authored-by: Toyo Li <lifenglin314@outlook.com>
2024-04-23 12:14:06 +08:00

58 lines
1.5 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": "cross-env TS_NODE_PROJECT=./tsconfig.json node --es-module-specifier-resolution=node --loader ts-node/esm/transpile-only --experimental-wasi-unstable-preview1 ../../node_modules/ava/entrypoints/cli.mjs"
},
"napi": {
"binaryName": "example",
"wasm": {
"initialMemory": 16384,
"browser": {
"fs": true
}
},
"dtsHeader": "type MaybePromise<T> = T | Promise<T>",
"dtsHeaderFile": "./dts-header.d.ts"
},
"devDependencies": {
"@napi-rs/cli": "workspace:*",
"@napi-rs/triples": "workspace:*",
"@napi-rs/wasm-runtime": "workspace:*",
"@types/lodash": "^4.14.202",
"@vitest/browser": "^1.2.2",
"@vitest/ui": "^1.2.2",
"ava": "^6.1.1",
"buffer": "^6.0.3",
"cross-env": "7.0.3",
"electron": "^30.0.0",
"lodash": "^4.17.21",
"rxjs": "^7.8.1",
"sinon": "^17.0.1",
"vite": "^5.0.12",
"vite-plugin-node-polyfills": "^0.19.0",
"vitest": "^1.2.2",
"webdriverio": "^8.29.3"
},
"ava": {
"extensions": {
"ts": "module",
"cts": "commonjs",
"cjs": true
},
"files": [
"__tests__/**/*.spec.{ts,cts,js,cjs,mjs}"
],
"cache": false,
"timeout": "10m"
},
"dependencies": {
"@emnapi/core": "^1.1.1"
}
}