Open cpcallen opened 3 years ago
@NeilFraser: Is there an upstream for this script? If so a more recent version might have already fixed these issues.
@NeilFraser: Is there an upstream for this script? If so a more recent version might have already fixed these issues.
Nope. Custom to Blockly.
Describe the bug
Running
scripts/i18n/js_to_json.py
(e.g. vianpm run build:langfiles
) overwrites certain bits of metadata that we'd prefer to conserve.It would be nice if it did not do that.
To Reproduce
Steps to reproduce the behavior:
npm run build:langfiles
Run
git diff
and note spurious metadata modifications:"@metadata": {"authors": …
section is deleted frommsg/json/qqq.json
."lastupdated":
entry inmsg/json/en.json
is updated even if the file is otherwise unchanged.Expected behavior
Ideally the authors list is preserved and the lastupdated date is only updated if there are other changes.