From 32e7401a6315d7d9fe67709d07103c5fd61337cc Mon Sep 17 00:00:00 2001 From: sverben <59171289+sverben@users.noreply.github.com> Date: Fri, 22 Mar 2024 11:24:35 +0100 Subject: [PATCH] fix: optim --- build.sh | 2 +- package.json | 2 +- tsup.config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 163d4fa..4e1dfb0 100755 --- a/build.sh +++ b/build.sh @@ -21,7 +21,7 @@ cd ${SOURCE} mkdir picotool/build && cd picotool/build export PICO_SDK_PATH=${SOURCE}/pico-sdk -emcmake cmake .. -DLIBUSB_INCLUDE_DIR=${SOURCE}/libusb/build/include/libusb-1.0 -DLIBUSB_LIBRARIES=${SOURCE}/libusb/build/lib/libusb-1.0.a -DCMAKE_EXE_LINKER_FLAGS='--bind -s ASYNCIFY -s ALLOW_MEMORY_GROWTH -s INVOKE_RUN=0 -s EXPORTED_RUNTIME_METHODS="[\"callMain\", \"FS\"]" -pthread -mbulk-memory -s EXPORT_ES6 -s MODULARIZE=1 -sFORCE_FILESYSTEM -sEXIT_RUNTIME=1 -O1' -DCMAKE_C_FLAGS="-pthread -mbulk-memory" -DCMAKE_CXX_FLAGS="-pthread -mbulk-memory" +emcmake cmake .. -DLIBUSB_INCLUDE_DIR=${SOURCE}/libusb/build/include/libusb-1.0 -DLIBUSB_LIBRARIES=${SOURCE}/libusb/build/lib/libusb-1.0.a -DCMAKE_EXE_LINKER_FLAGS='--bind -s ASYNCIFY -s ALLOW_MEMORY_GROWTH -s INVOKE_RUN=0 -s EXPORTED_RUNTIME_METHODS="[\"callMain\", \"FS\"]" -pthread -mbulk-memory -s EXPORT_ES6 -s MODULARIZE=1 -sFORCE_FILESYSTEM -sEXIT_RUNTIME=1' -DCMAKE_C_FLAGS="-pthread -mbulk-memory" -DCMAKE_CXX_FLAGS="-pthread -mbulk-memory" emmake make -j8 cd ${SOURCE} diff --git a/package.json b/package.json index ada2637..e09b275 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@leaphy-robotics/picotool-wasm", - "version": "1.0.1", + "version": "1.0.2", "main": "dist/index.cjs", "module": "dist/index.mjs", "types": "dist/index.d.ts", diff --git a/tsup.config.ts b/tsup.config.ts index d163c5e..ae2ccca 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -15,7 +15,7 @@ export default defineConfig({ esbuildPlugins: [ replace({ patterns: [ - [/ENVIRONMENT_IS_NODE(?! =)/g, 'false'], + [/ENVIRONMENT_IS_NODE(?!=)/g, 'false'], ] }) ]