Skip to content

Commit

Permalink
fix: add generate script
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Mar 1, 2024
1 parent abe5bea commit 2a9171f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
cache: yarn
node-version: 18
- run: yarn --immutable && yarn build
- run: yarn --immutable && yarn build && yarn generate

- name: Run benchmarks
run: yarn benchmark
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
run: yarn --immutable
- name: Build
run: yarn build
- name: Generate
run: yarn generate
- name: Check types
run: yarn check-types
- name: Lint
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"packageManager": "yarn@3.2.3",
"scripts": {
"clean": "yarn workspaces foreach -vp run clean",
"generate": "yarn workspaces foreach -vp run generate",
"build": "yarn clean && yarn workspaces foreach -vp --topological run build",
"lint": "yarn workspaces foreach -vp run lint",
"check-types": "yarn workspaces foreach -vp run check-types",
Expand Down
2 changes: 1 addition & 1 deletion packages/as-sha256/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build"
],
"scripts": {
"clean": "rm -rf ./dist && node -r ts-node/register ./scripts/codegen.ts",
"generate": "rm -rf ./dist && node -r ts-node/register ./scripts/codegen.ts",
"build": "yarn asbuild:untouched && yarn asbuild:optimized && yarn build:lib",
"asbuild:untouched": "asc assembly/index.ts -o build/untouched.wasm -t build/untouched.wat --runtime minimal --target debug",
"asbuild:optimized": "asc assembly/index.ts -o build/optimized.wasm -t build/optimized.wat --runtime minimal --target release -O3z --noAssert",
Expand Down
2 changes: 1 addition & 1 deletion packages/as-sha256/src/wasmCode.ts

Large diffs are not rendered by default.

0 comments on commit 2a9171f

Please sign in to comment.