-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathpackage.json
More file actions
153 lines (153 loc) · 6.93 KB
/
Copy pathpackage.json
File metadata and controls
153 lines (153 loc) · 6.93 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"name": "json-as",
"version": "1.6.1",
"author": "Jairus Tanaka <me@jairus.dev>",
"repository": {
"type": "git",
"url": "git+https://github.com/JairusSW/json-as.git"
},
"funding": "https://github.com/sponsors/JairusSW",
"main": "transform/lib/index.js",
"devDependencies": {
"@assemblyscript/wasi-shim": "^0.1.0",
"@eslint/js": "^10.0.1",
"@types/node": "^25.9.2",
"as-heap-analyzer": "^1.2.0",
"as-test": "github:JairusSW/as-test#332ae81bedeb68b98b824563c6efe7e050eaef4e",
"assemblyscript": "^0.28.18",
"assemblyscript-json": "^1.1.0",
"assemblyscript-prettier": "^3.0.4",
"canvas": "^3.2.3",
"chartjs-node-canvas": "^5.0.0",
"chartjs-plugin-datalabels": "^2.2.0",
"eslint": "^10.4.1",
"fast-json-parse": "^1.0.3",
"fast-json-stringify": "^6.4.0",
"husky": "^9.1.7",
"json-as": "file:./",
"prettier": "3.8.3",
"serve": "^14.2.6",
"tinybench": "^6.0.2",
"try-as": "^1.1.4",
"typescript": "^6.0.3",
"typescript-eslint": "^8.60.1",
"warpo": "^3.1.1"
},
"bugs": {
"url": "https://github.com/JairusSW/json-as/issues"
},
"contributors": [
"DogWhich",
"Romdotdog",
"Derek Barrera",
"Frankk Taylor",
"lekiano",
"Florian Guitton",
"Matt Johnson-Pint",
"Tomáš Hromada",
"Loredana Cirstea",
"Accipiter Nisus",
"Deon Groenewald",
"Guillermo Diez",
"yoyo837"
],
"description": "The only JSON library you'll need for AssemblyScript with SIMD and SWAR",
"homepage": "https://docs.jairus.dev/json-as",
"files": [
"assembly/custom/",
"assembly/deserialize/",
"assembly/globals/",
"assembly/serialize/",
"assembly/util/",
"assembly/index.ts",
"assembly/index.d.ts",
"assembly/types.ts",
"assembly/tsconfig.json",
"lib/as-bs.ts",
"transform/lib/",
"transform/package.json",
"index.ts",
"README.md",
"CHANGELOG.md",
"LICENSE"
],
"keywords": [
"assemblyscript",
"json",
"serialize",
"deserialize",
"parse",
"stringify",
"performance",
"dynamic",
"serde",
"SIMD",
"optimized",
"fast",
"algorithm"
],
"license": "MIT",
"publishConfig": {
"@JairusSW:registry": "https://npm.pkg.github.com"
},
"scripts": {
"ci": "act",
"test": "ast test --parallel --enable try-as",
"test:rfc": "ast test --config rfc.config.json --parallel --enable try-as",
"test:transform": "node transform/__tests__/normalize-base-rel.test.mjs && node transform/__tests__/compute-base-rel.test.mjs && node transform/__tests__/resolve-imports.test.mjs && node transform/__tests__/user-entry-exports.test.mjs",
"test:fast": "npm run build:transform && JSON_USE_FAST_PATH=1 ast test --parallel --mode swar,simd --enable try-as",
"fuzz": "ast fuzz",
"test:fuzz": "ast test --fuzz --parallel",
"test:ci": "ast test --parallel --clean --enable try-as",
"test:coverage": "ast test --enable coverage --enable try-as",
"bench": "bash -c 'bash ./scripts/run-bench.as.sh \"$@\" && { arg=\"${1:-}\"; if [ -z \"$arg\" ] || [ \"${arg#custom/}\" = \"$arg\" ]; then bash ./scripts/run-bench.js.sh \"$@\"; fi; } && bash ./scripts/build-charts.sh' --",
"bench:all": "bash ./scripts/bench-all.sh",
"bench:as": "bash ./scripts/run-bench.as.sh",
"bench:js": "bash ./scripts/run-bench.js.sh",
"bench:runtimes": "bash ./scripts/run-bench.runtimes.sh",
"bench:warpo": "bash ./scripts/run-bench.warpo.sh",
"charts": "bun run charts:build && bun run charts:serve",
"charts:build": "bash ./scripts/build-charts.sh",
"charts:runtimes": "bun ./scripts/build-chart-runtimes.ts",
"charts:warpo": "bun ./scripts/build-chart-warpo.ts",
"charts:rfc": "bun ./scripts/build-rfc-coverage.ts",
"charts:publish": "bash ./scripts/publish-benchmarks.sh",
"charts:serve": "serve ./build/charts/",
"build:test": "JSON_AS_LIBRARY_SOURCE=assembly/index JSON_DEBUG=0 JSON_WRITE=assembly/test.ts asc assembly/test.ts --transform ./transform -o ./build/test.wasm --textFile ./build/test.wat --enable simd --debug --config ./node_modules/@assemblyscript/wasi-shim/asconfig.json",
"build:tmp:test": "JSON_DEBUG=1 asc assembly/test.tmp.ts -o ./build/test.wasm --textFile ./build/test.wat --enable simd --debug --config ./node_modules/@assemblyscript/wasi-shim/asconfig.json",
"build:test:wine": "JSON_AS_LIBRARY_SOURCE=assembly/index JSON_DEBUG=1 JSON_WRITE=assembly/test.ts NODE_SKIP_PLATFORM_CHECK=1 wineconsole --backend=curses ~/.win-bin/node/node.exe ./node_modules/assemblyscript/bin/asc.js assembly/test.ts --transform ./transform -o ./build/test.wasm --textFile ./build/test.wat --debug --config ./node_modules/@assemblyscript/wasi-shim/asconfig.json",
"test:wasmtime": "wasmtime ./build/test.wasm",
"test:wasmer": "wasmer ./build/test.wasm",
"build:transform": "tsc -p ./transform",
"build:playground": "npm run build:transform && JSON_AS_LIBRARY_SOURCE=assembly/index JSON_DEBUG=0 JSON_WRITE=assembly/playground.ts asc assembly/playground.ts --transform ./transform -o ./build/playground.wasm --textFile ./build/playground.wat --enable simd --config ./node_modules/@assemblyscript/wasi-shim/asconfig.json",
"build:playground:nosimd": "npm run build:transform && JSON_AS_LIBRARY_SOURCE=assembly/index JSON_DEBUG=0 JSON_WRITE=assembly/playground.ts asc assembly/playground.ts --transform ./transform -o ./build/playground.wasm --textFile ./build/playground.wat --disable simd --config ./node_modules/@assemblyscript/wasi-shim/asconfig.json",
"build:pg": "npm run build:playground",
"run:playground": "wasmtime ./build/playground.wasm",
"run:pg": "npm run run:playground",
"playground": "npm run build:playground && npm run run:playground",
"playground:nosimd": "npm run build:playground:nosimd && npm run run:playground",
"build:playground:tmp": "asc assembly/playground.tmp.ts -o ./build/playground.tmp.wasm --textFile ./build/playground.tmp.wat -O3 --noAssert --uncheckedBehavior always --runtime incremental --enable bulk-memory --enable simd --use JSON_MODE=1 --exportStart start --exportRuntime",
"playground:tmp": "npm run build:playground:tmp && v8 --no-liftoff --module ./bench/runners/assemblyscript.js -- playground.tmp.wasm",
"pg:tmp": "npm run playground:tmp",
"play": "npm run playground",
"pg": "npm run playground",
"bench:wasmer": "wasmer ./build/bench.wasm --llvm",
"format": "prettier -w .",
"lint": "eslint . --no-warn-ignored",
"lint:fix": "eslint . --fix --no-warn-ignored",
"commitmsg:verify": "bash ./scripts/commit-msg.sh",
"precommit:verify": "bash ./scripts/pre-commit.sh",
"typecheck": "tsc -p ./transform --noEmit",
"clean": "rm -rf build/ transform/lib/",
"prebuild": "npm run clean",
"build": "npm run build:transform",
"pretest": "npm run build:transform",
"check": "npm run typecheck && npm run lint",
"prepare": "husky"
},
"type": "module",
"types": "assembly/index.ts",
"dependencies": {
"xjb-as": "^0.1.0"
}
}