mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
51f5f5789b
Closes https://github.com/denoland/deno/issues/25321 Ended up being a larger refactoring, since we're now juggling (potentially) two config files in the same `add`, instead of choosing one. I don't love the shape of the code, but I think it's good enough Some smaller side improvements: - `deno remove` supports `jsonc` - `deno install --dev` will be a really simple change - if `deno remove` removes the last import/dependency in the `imports`/`dependencies`/`devDependencies` field, it removes the field instead of leaving an empty object
19 lines
542 B
Text
19 lines
542 B
Text
{
|
|
"tempDir": true,
|
|
"steps": [{
|
|
"args": ["add", "@std/assert", "@std/http"],
|
|
"output": "add.out"
|
|
}, {
|
|
"args": ["eval", "console.log(Deno.readTextFileSync('deno.lock').trim())"],
|
|
"output": "add_lock.out"
|
|
}, {
|
|
"args": ["remove", "@std/assert", "@std/http"],
|
|
"output": "rm.out"
|
|
}, {
|
|
"args": ["eval", "console.log(Deno.readTextFileSync('deno.lock').trim())"],
|
|
"output": "remove_lock.out"
|
|
}, {
|
|
"args": ["eval", "console.log(Deno.readTextFileSync('deno.json').trim())"],
|
|
"output": "{\n}\n"
|
|
}]
|
|
}
|