mbflash 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -253,7 +253,7 @@ This repository is <https://github.com/tai/mbflash>.
253
253
  ```sh
254
254
  npm test
255
255
  npm publish
256
- git tag v1.2.1 # use the new version
256
+ git tag v1.2.2 # use the new version
257
257
  git push origin main --tags
258
258
  ```
259
259
 
package/mbflash.mjs CHANGED
@@ -20,7 +20,9 @@ if (nodeMajor < 22 || (nodeMajor === 22 && nodeMinor < 4) || typeof globalThis.W
20
20
  process.exit(1);
21
21
  }
22
22
 
23
- const VERSION = "1.2.0";
23
+ const VERSION = JSON.parse(
24
+ fs.readFileSync(new URL("./package.json", import.meta.url), "utf8"),
25
+ ).version;
24
26
  const DEFAULT_HOST = "makecode.microbit.org";
25
27
  const DEFAULT_CDP = "127.0.0.1:9222";
26
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mbflash",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Load, build, and flash micro:bit MakeCode projects over CDP",
5
5
  "type": "module",
6
6
  "bin": {