From 8a7a9001f8cbe13e1716008120de957a657ca673 Mon Sep 17 00:00:00 2001 From: noClaps <04plugs-bios@icloud.com> Date: Fri, 3 Jan 2025 12:03:28 +0000 Subject: [PATCH] Make dist dir and use release build --- .github/workflows/build-wasm.yml | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-wasm.yml b/.github/workflows/build-wasm.yml index 73ba53a..f40349d 100644 --- a/.github/workflows/build-wasm.yml +++ b/.github/workflows/build-wasm.yml @@ -19,6 +19,7 @@ jobs: - uses: oven-sh/setup-bun@v2 - run: bun install - run: | + mkdir dist/ bun run build --target wasm32-wasip1 ls -al . - uses: actions/upload-artifact@v4 diff --git a/package.json b/package.json index 9f76ea8..c36f975 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@noclaps/highlight-win32-x64-msvc": "^0.3.2" }, "scripts": { - "build": "napi build --platform --js ./dist/index.js --dts ./dist/index.d.ts", + "build": "napi build --platform --release --js ./dist/index.js --dts ./dist/index.d.ts", "bump": "bunx changelogen --bump && bun bump-version.ts" }, "napi": {