Closed Milly closed 1 month ago
Run @molt/cli --write will remove comments from the deno.jsonc file.
@molt/cli --write
Keep comments in JSONC files.
Before run: deno.jsonc
{ "tasks": { // Update dependencies "update": "deno run --unstable-kv -A jsr:@molt/cli@0.19.0 deno.jsonc --write" }, "imports": { "@std/assert": "jsr:@std/assert@1.0.0" } }
Run: deno task update
deno task update
After run: deno.jsonc
{ "tasks": { "update": "deno run --unstable-kv -A jsr:@molt/cli@0.19.0 deno.jsonc --write" }, "imports": { "@std/assert": "jsr:@std/assert@1.0.0" } }
OMG thank you for reporting. I'm fixing
Problem
Run
@molt/cli --write
will remove comments from the deno.jsonc file.Expected
Keep comments in JSONC files.
Actual
Before run: deno.jsonc
Run:
deno task update
After run: deno.jsonc