diff --git a/src/Makefile b/src/Makefile index a28026e..8051c15 100644 --- a/src/Makefile +++ b/src/Makefile @@ -147,7 +147,7 @@ $(BUILD)/micropython.js: $(OBJ) jshal.js simulator-js simulator-js: npx esbuild '--define:process.env.STAGE="$(STAGE)"' ./simulator.ts --bundle --outfile=$(BUILD)/simulator.js --loader:.svg=text - npx esbuild '--define:process.env.VERSION="$((cat ./package.json | grep '"version":' | sed 's/"version": //' | sed 's/,//'))"' ./sw.ts --bundle --outfile=./sw.js + npx esbuild --define:process.env.VERSION="$$(cat ../package.json | grep '"version":' | sed 's/"version": //' | sed 's/,//' | sed 's/ //g')" ./sw.ts --bundle --outfile=$(BUILD)/sw.js include $(TOP)/py/mkrules.mk