13d0ce075e
* Integrate with emnapi * resolve conflict * ignore wasm * generate wasi file * Add wasi test to workflow * Fix wasi template * emnapi new initialize api * Finish test * Purne tsconfig * Generate wasi worker * Fix electron test * Finalize check * Noop adjust_external_memory * Apply cr suggestions
39 lines
1,001 B
JSON
39 lines
1,001 B
JSON
{
|
|
"name": "@examples/napi",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"main": "./index.js",
|
|
"types": "./index.d.ts",
|
|
"scripts": {
|
|
"build": "napi-raw build",
|
|
"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"
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "workspace:*",
|
|
"@types/lodash": "^4.14.195",
|
|
"ava": "^5.3.1",
|
|
"cross-env": "7.0.3",
|
|
"electron": "^26.2.1",
|
|
"lodash": "^4.17.21",
|
|
"sinon": "^15.2.0"
|
|
},
|
|
"ava": {
|
|
"extensions": {
|
|
"ts": "module",
|
|
"cts": "commonjs",
|
|
"cjs": true
|
|
},
|
|
"files": [
|
|
"__tests__/**/*.spec.{ts,cts,js,cjs,mjs}"
|
|
],
|
|
"timeout": "10m"
|
|
},
|
|
"dependencies": {
|
|
"@emnapi/core": "0.43.1",
|
|
"@tybys/wasm-util": "^0.8.0",
|
|
"@types/lodash": "^4.14.191",
|
|
"lodash": "^4.17.21",
|
|
"sinon": "^15.0.1"
|
|
}
|
|
}
|