@ -43,12 +43,6 @@ jobs:
rm -rf dist
NODE_ENV=production npm exec -- tsc
NODE_ENV=production npm exec -- rollup -c
- name: Rename and copy build artifact
run: |
mkdir js/modules
cp dist/web/*.js js/modules/
mv js/modules/index.js js/modules/esptool.js
ls js/modules/
- name: Commit Distribution Files
uses: stefanzweifel/git-auto-commit-action@v4
if: startswith(github.repository, 'adafruit/')
@ -39,7 +39,7 @@
// In development we import locally.
window.location.hostname === "localhost"
? "/dist/web/index.js"
: "./js/modules/esptool.js"
: "https://cdn.jsdelivr.net/gh/adafruit/Adafruit_WebSerial_ESPTool@latest/dist/web/index.js"
);
</script>
<script src="js/script.js" module defer></script>