-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
83 lines (83 loc) · 3.1 KB
/
Copy pathpackage.json
File metadata and controls
83 lines (83 loc) · 3.1 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
76
77
78
79
80
81
82
83
{
"name": "@vinary-tree/javascript-runtime",
"version": "4.0.0-rc.6",
"description": "A single-instance native, WebAssembly, and WASI runtime that lets Vinary Tree JavaScript packages safely share live dictionaries and weighted automata.",
"author": {
"name": "Dylon Edwards",
"email": "dylon.devo@gmail.com"
},
"type": "module",
"sideEffects": false,
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/vinary-tree/javascript-runtime.git"
},
"engines": {
"node": ">=22.14"
},
"dependencies": {
"@vinary-tree/vinary-tree-interop": "4.0.0-rc.6"
},
"types": "./index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./native.mjs",
"require": "./native.cjs"
},
"./wasm": {
"types": "./index.d.ts",
"import": "./wasm.mjs"
},
"./wasi": {
"types": "./wasi.d.ts",
"import": "./wasi.mjs"
}
},
"files": [
"LICENSE",
"README.md",
"docs/api-reference.md",
"index.d.ts",
"runtime-factory.mjs",
"native.mjs",
"native.cjs",
"native/prebuilds/",
"wasm.mjs",
"wasi-runtime.mjs",
"wasi.mjs",
"wasi.d.ts",
"generated/wasm/vinary_tree.js",
"generated/wasm/vinary_tree_bg.wasm",
"generated/wasi/vinary_tree.wasm"
],
"publishConfig": {
"access": "public",
"provenance": true,
"tag": "next"
},
"devDependencies": {
"node-gyp": "13.0.1"
},
"scripts": {
"configure:local": "node scripts/configure-local.mjs",
"bootstrap:native": "node scripts/bootstrap-native-sdk.mjs",
"build:native": "node-gyp rebuild --directory native",
"build:native:release": "node-gyp rebuild --directory native",
"stage:native": "node scripts/stage-native-prebuild.mjs",
"build:wasm": "wasm-pack build --target web --out-dir ../generated/wasm --out-name vinary_tree rust --locked && node scripts/prepare-generated-wasm.mjs",
"build:wasi": "cargo build --manifest-path rust/Cargo.toml --target-dir .build/cargo --release --locked --target wasm32-wasip1 --no-default-features --features wasi && mkdir -p generated/wasi && cp .build/cargo/wasm32-wasip1/release/vinary_tree_js_runtime.wasm generated/wasi/vinary_tree.wasm && wasm-opt -O3 --strip-debug generated/wasi/vinary_tree.wasm -o generated/wasi/vinary_tree.wasm",
"test:native": "node --test test/native.test.mjs test/native.cjs.test.cjs",
"test:leak": "node --expose-gc --test test/native.leak.test.mjs",
"test:property": "npm --prefix test-property install --no-audit --no-fund && node --test test-property/native.property.test.mjs",
"test": "node --test test/browser-wasm.test.mjs test/wasi.test.mjs",
"verify:license": "node scripts/stage-license.mjs",
"verify:docs": "node scripts/check-docs.mjs",
"verify:version": "node scripts/sync-release-version.mjs",
"verify:prebuilds": "node scripts/verify-native-prebuilds.mjs",
"verify:package": "node scripts/verify-package.mjs",
"verify": "./scripts/verify.sh",
"prepack": "npm run verify:license && npm run verify:version && npm run build:wasm && npm run build:wasi && npm test"
}
}