2021-09-23 01:29:09 +08:00
|
|
|
{
|
2023-04-06 11:04:53 +08:00
|
|
|
"name": "@examples/napi",
|
2021-09-23 01:29:09 +08:00
|
|
|
"private": true,
|
2021-12-14 00:37:46 +08:00
|
|
|
"version": "0.0.0",
|
2023-09-20 01:18:01 -07:00
|
|
|
"type": "module",
|
2023-11-02 12:57:11 +08:00
|
|
|
"main": "./index.js",
|
2021-10-01 14:41:52 +08:00
|
|
|
"types": "./index.d.ts",
|
2021-09-23 01:29:09 +08:00
|
|
|
"scripts": {
|
2024-01-08 21:02:46 +08:00
|
|
|
"browser": "vite",
|
2024-02-25 23:46:07 -08:00
|
|
|
"build": "napi-raw build --platform --js index.cjs --dts index.d.cts",
|
2023-11-02 12:57:11 +08:00
|
|
|
"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"
|
2021-12-14 00:37:46 +08:00
|
|
|
},
|
2024-02-25 23:46:07 -08:00
|
|
|
"napi": {
|
2024-04-15 23:19:02 +08:00
|
|
|
"binaryName": "example",
|
|
|
|
"wasm": {
|
2024-04-19 16:12:30 +08:00
|
|
|
"initialMemory": 16384,
|
|
|
|
"browser": {
|
|
|
|
"fs": true
|
|
|
|
}
|
2024-04-16 17:40:41 +08:00
|
|
|
},
|
|
|
|
"dtsHeader": "type MaybePromise<T> = T | Promise<T>",
|
|
|
|
"dtsHeaderFile": "./dts-header.d.ts"
|
2024-02-25 23:46:07 -08:00
|
|
|
},
|
2023-04-06 11:04:53 +08:00
|
|
|
"devDependencies": {
|
|
|
|
"@napi-rs/cli": "workspace:*",
|
2024-02-25 23:46:07 -08:00
|
|
|
"@napi-rs/triples": "workspace:*",
|
2024-01-16 23:28:40 +08:00
|
|
|
"@napi-rs/wasm-runtime": "workspace:*",
|
2024-02-01 12:14:56 +08:00
|
|
|
"@types/lodash": "^4.14.202",
|
|
|
|
"@vitest/browser": "^1.2.2",
|
|
|
|
"@vitest/ui": "^1.2.2",
|
|
|
|
"ava": "^6.1.1",
|
2023-09-20 01:18:01 -07:00
|
|
|
"cross-env": "7.0.3",
|
2024-04-16 18:24:25 +08:00
|
|
|
"electron": "^30.0.0",
|
2023-01-19 00:32:52 +08:00
|
|
|
"lodash": "^4.17.21",
|
2024-03-20 21:37:08 +08:00
|
|
|
"rxjs": "^7.8.1",
|
2024-01-08 21:02:46 +08:00
|
|
|
"sinon": "^17.0.1",
|
2024-02-01 12:14:56 +08:00
|
|
|
"vite": "^5.0.12",
|
2024-01-08 21:02:46 +08:00
|
|
|
"vite-plugin-node-polyfills": "^0.19.0",
|
2024-02-01 12:14:56 +08:00
|
|
|
"vitest": "^1.2.2",
|
|
|
|
"webdriverio": "^8.29.3"
|
2023-04-06 11:04:53 +08:00
|
|
|
},
|
|
|
|
"ava": {
|
2023-09-20 01:18:01 -07:00
|
|
|
"extensions": {
|
|
|
|
"ts": "module",
|
|
|
|
"cts": "commonjs",
|
|
|
|
"cjs": true
|
|
|
|
},
|
2023-04-06 11:04:53 +08:00
|
|
|
"files": [
|
2023-11-02 12:57:11 +08:00
|
|
|
"__tests__/**/*.spec.{ts,cts,js,cjs,mjs}"
|
2023-04-06 11:04:53 +08:00
|
|
|
],
|
2023-12-13 12:40:01 +08:00
|
|
|
"cache": false,
|
2023-04-15 18:58:53 +08:00
|
|
|
"timeout": "10m"
|
2023-11-02 12:57:11 +08:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2024-03-21 14:41:05 +08:00
|
|
|
"@emnapi/core": "1.1.0"
|
2021-09-23 01:29:09 +08:00
|
|
|
}
|
|
|
|
}
|