Skip to content

Commit

Permalink
Update build (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint authored Mar 27, 2024
1 parent 867141f commit 7100600
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
13 changes: 4 additions & 9 deletions functions/asconfig.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
{
"extends": "./node_modules/@assemblyscript/wasi-shim/asconfig.json",
"options": {
"transform": ["@hypermode/functions-as/transform", "json-as/transform"],
"exportRuntime": true
},
"targets": {
"debug": {
"outFile": "build/debug.wasm",
"textFile": "build/debug.wat",
"sourceMap": true,
"debug": true
},
"release": {
"outFile": "build/release.wasm",
"textFile": "build/release.wat",
"sourceMap": true,
"optimizeLevel": 3,
"shrinkLevel": 0,
"converge": false,
"noAssert": false
}
},
"options": {
"transform": ["@hypermode/functions-as/transform", "json-as/transform"],
"exportRuntime": true
}
}
11 changes: 11 additions & 0 deletions functions/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"license": "MIT",
"type": "module",
"scripts": {
"build:debug": "asc assembly/index.ts --target debug",
"build:release": "asc assembly/index.ts --target release",
"build": "npm run build:debug && npm run build:release",
"build": "run-script-os",
"build:windows": "asc assembly\\index.ts -o build\\%npm_package_name%.wasm --target debug",
"build:default": "asc assembly/index.ts -o build/$npm_package_name.wasm --target debug",
"build:release": "asc assembly/index.ts -o build/$npm_package_name.wasm --target release",
"pretty": "prettier --write .",
"pretty:check": "prettier --check .",
"lint": "eslint --ext .ts .",
Expand All @@ -27,6 +28,7 @@
"assemblyscript-prettier": "^3.0.1",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"run-script-os": "^1.1.6",
"visitor-as": "^0.11.4"
},
"overrides": {
Expand Down

0 comments on commit 7100600

Please sign in to comment.