1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 10:09:20 -05:00
denoland-deno/tests/specs/add/comments_deno_json/__test__.jsonc
David Sherret 21a5d1559a
fix(install): better json editing (#26450)
1. Respects the formatting of the file (ex. keeps four space indents or
tabs).
2. Handles editing of comments.
3. Handles trailing commas.
4. Code is easier to maintain.
2024-10-25 02:09:34 +02:00

16 lines
297 B
Text

{
"tempDir": true,
"steps": [
{
"args": "add npm:@denotest/esm-basic jsr:@denotest/add",
"output": "[WILDCARD]"
},
{
"args": [
"eval",
"console.log(Deno.readTextFileSync('deno.jsonc').trim())"
],
"output": "deno.jsonc.out"
}
]
}