forked from napi-rs/napi-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
75 lines (75 loc) · 1.89 KB
/
Copy pathpackage.json
File metadata and controls
75 lines (75 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"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.js",
"test:leak": "oxnode --expose-gc ./memory-test.ts",
"test-js": "ava reset-cache && ava"
},
"napi": {
"binaryName": "example",
"wasm": {
"initialMemory": 16384,
"browser": {
"fs": true,
"buffer": 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/cli": "^0.1.0",
"@oxc-node/core": "^0.1.0",
"@testing-library/dom": "^10.4.1",
"@types/lodash": "^4.17.24",
"@vitest/browser": "^4.1.8",
"@vitest/browser-playwright": "^4.1.8",
"@vitest/ui": "^4.1.8",
"ava": "^8.0.1",
"buffer": "^6.0.3",
"core-js": "^3.49.0",
"cross-env": "10.1.0",
"electron": "^43.0.0",
"lodash": "^4.18.1",
"playwright": "^1.60.0",
"rxjs": "^7.8.2",
"sinon": "^22.0.0",
"vite": "^8.0.16",
"vite-plugin-node-polyfills": "^0.28.0",
"vitest": "^4.1.8",
"web-streams-polyfill": "^4.3.0",
"webdriverio": "^9.27.2"
},
"ava": {
"extensions": [
"ts",
"cts",
"cjs",
"js",
"mjs"
],
"files": [
"__tests__/**/*.spec.{ts,cts,js,cjs,mjs}"
],
"workerThreads": false,
"cache": false,
"timeout": "10m"
},
"dependencies": {
"@emnapi/core": "1.11.2",
"@emnapi/runtime": "1.11.2"
}
}