Skip to content

Commit

Permalink
Build fix regarding version
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert committed Apr 30, 2024
1 parent 328948b commit 5dbbe0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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=$$(npm pkg get version) ./sw.ts --bundle --outfile=$(BUILD)/sw.js
npx esbuild '--define:process.env.VERSION="$((cat ./package.json | grep '"version":' | sed 's/"version": //' | sed 's/,//'))"' ./sw.ts --bundle --outfile=./sw.js

include $(TOP)/py/mkrules.mk

Expand Down

0 comments on commit 5dbbe0c

Please sign in to comment.