microsoft / pxt-mkc

Command line tool for MakeCode editors
https://microsoft.github.io/pxt-mkc/
MIT License
11 stars 6 forks source link

MKC Does Not Re-Read mkc.Json After the First Time #109

Open aznhassan opened 1 year ago

aznhassan commented 1 year ago

Problem

The Project class in mkc.ts will not re-read mkc.json after it loads the first time. Even if the targetwebsite changes, it'll still build with the old version.

Repro

To repro do the following:

You can keep changing the version and it will never change.

Notes

Start looking at loadPkgAsync for a possible solution. https://github.com/microsoft/pxt-mkc/blob/b20c17007f560471134e91076c71bf380746d5d1/packages/makecode-core/src/mkc.ts#L201-L204