forked from thi-ng/umbrella
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
127 lines (127 loc) · 3.24 KB
/
package.json
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"name": "@thi.ng/wasm-api",
"version": "2.2.2",
"description": "Generic, modular, extensible API bridge and infrastructure for hybrid JS & WebAssembly projects",
"type": "module",
"module": "./index.js",
"typings": "./index.d.ts",
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/thi-ng/umbrella.git"
},
"homepage": "https://thi.ng/wasm-api",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/postspectacular"
},
{
"type": "patreon",
"url": "https://patreon.com/thing_umbrella"
}
],
"author": "Karsten Schmidt (https://thi.ng)",
"license": "Apache-2.0",
"scripts": {
"build": "yarn build:esbuild && yarn build:decl",
"build:decl": "tsc --declaration --emitDeclarationOnly",
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
"clean": "bun ../../tools/src/clean-package.ts",
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
"pub": "yarn npm publish --access public",
"test": "zig test zig/tests.zig && yarn test:prepare && bun test",
"test:build-zig-allocators": "zig build-exe -fno-entry -fstrip --stack 4096 -OReleaseSmall -target wasm32-freestanding --dep wasm-api -Mroot=test/allocators.zig -Mwasm-api=zig/lib.zig --name allocators -rdynamic --import-symbols && mv allocators.wasm test",
"test:build-zig-custom": "zig build-exe -fno-entry -fstrip --stack 4096 -OReleaseSmall -target wasm32-freestanding --dep wasm-api -Mroot=test/custom.zig -Mwasm-api=zig/lib.zig --name custom -rdynamic --import-symbols && mv custom.wasm test",
"test:prepare": "yarn test:build-zig-allocators && yarn test:build-zig-custom",
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
},
"dependencies": {
"@thi.ng/api": "^8.11.12",
"@thi.ng/arrays": "^2.10.5",
"@thi.ng/checks": "^3.6.14",
"@thi.ng/errors": "^2.5.18",
"@thi.ng/hex": "^2.3.56",
"@thi.ng/idgen": "^2.2.52",
"@thi.ng/logger": "^3.0.22"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.47.9",
"esbuild": "^0.24.0",
"typedoc": "^0.26.7",
"typescript": "^5.6.2"
},
"keywords": [
"allocator",
"api",
"bigint",
"bindings",
"browser",
"c",
"event",
"free-list",
"hex",
"interop",
"logger",
"memory",
"memory-mapped",
"modular",
"polyglot",
"shared-memory",
"string",
"typedarray",
"typescript",
"utf8",
"wasm",
"webassembly",
"zig"
],
"publishConfig": {
"access": "public"
},
"browser": {
"process": false,
"setTimeout": false
},
"engines": {
"node": ">=18"
},
"files": [
"./*.js",
"./*.d.ts",
"include",
"zig/*.zig"
],
"exports": {
".": {
"default": "./index.js"
},
"./api": {
"default": "./api.js"
},
"./bridge": {
"default": "./bridge.js"
},
"./deftype": {
"default": "./deftype.js"
},
"./memory": {
"default": "./memory.js"
},
"./object-index": {
"default": "./object-index.js"
},
"./pointer": {
"default": "./pointer.js"
},
"./string": {
"default": "./string.js"
}
},
"thi.ng": {
"status": "alpha",
"year": 2022
}
}