Skip to content

Commit bbf2b23

Browse files
committed
fix: get it working in packages
1 parent 588dc47 commit bbf2b23

7 files changed

Lines changed: 85 additions & 67 deletions

File tree

package.json

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,27 @@
22
"name": "as-try",
33
"version": "0.1.0",
44
"author": "Jairus Tanaka",
5-
"description": "Exception handling for AssemblyScript",
6-
"types": "assembly/index.ts",
7-
"main": "transform/lib/index.js",
8-
"homepage": "https://github.com/JairusSW/json-as#readme",
9-
"license": "MIT",
105
"repository": {
116
"type": "git",
127
"url": "git+https://github.com/JairusSW/json-as.git"
138
},
14-
"bugs": {
15-
"url": "https://github.com/JairusSW/json-as/issues"
16-
},
17-
"scripts": {
18-
"test": "bash ./run-tests.sh",
19-
"build:test": "rm -rf ./build/ && DEBUG=true ../compiler/bin/asc.js assembly/test.ts --transform ./transform -o ./build/test.wasm --textFile ./build/test.wat --optimizeLevel 3 --shrinkLevel 0",
20-
"test:wasmtime": "wasmtime ./build/test.wasm",
21-
"test:wasmer": "wasmer ./build/test.wasm",
22-
"build:transform": "tsc -p ./transform",
23-
"bench:wasmer": "wasmer ./build/bench.wasm --llvm",
24-
"prettier": "prettier -w ."
25-
},
9+
"main": "transform/lib/index.js",
2610
"devDependencies": {
2711
"@assemblyscript/wasi-shim": "^0.1.0",
2812
"@types/node": "^22.13.10",
2913
"assemblyscript": "^0.27.35",
3014
"assemblyscript-prettier": "^3.0.1",
15+
"json-as": "^1.0.4",
3116
"prettier": "^3.5.3",
3217
"tsx": "^4.19.3",
3318
"typescript": "^5.8.2"
3419
},
20+
"bugs": {
21+
"url": "https://github.com/JairusSW/json-as/issues"
22+
},
3523
"contributors": [],
24+
"description": "Exception handling for AssemblyScript",
25+
"homepage": "https://github.com/JairusSW/json-as#readme",
3626
"keywords": [
3727
"assemblyscript",
3828
"exception",
@@ -44,13 +34,19 @@
4434
"throw",
4535
"result"
4636
],
37+
"license": "MIT",
4738
"publishConfig": {
4839
"@JairusSW:registry": "https://npm.pkg.github.com"
4940
},
41+
"scripts": {
42+
"test": "bash ./run-tests.sh",
43+
"build:test": "rm -rf ./build/ && DEBUG=true ../compiler/bin/asc.js assembly/test.ts --transform ./transform -o ./build/test.wasm --textFile ./build/test.wat --optimizeLevel 3 --shrinkLevel 0",
44+
"test:wasmtime": "wasmtime ./build/test.wasm",
45+
"test:wasmer": "wasmer ./build/test.wasm",
46+
"build:transform": "tsc -p ./transform",
47+
"bench:wasmer": "wasmer ./build/bench.wasm --llvm",
48+
"prettier": "prettier -w ."
49+
},
5050
"type": "module",
51-
"dependencies": {
52-
"@types/clone-deep": "^4.0.4",
53-
"clone-deep": "^4.0.1",
54-
"json-as": "^1.0.4"
55-
}
51+
"types": "assembly/index.ts"
5652
}

transform/lib/index.js

Lines changed: 25 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

transform/lib/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

transform/lib/transform.js

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)