mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 10:09:20 -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
27 lines
545 B
Text
27 lines
545 B
Text
{
|
|
"tempDir": true,
|
|
"steps": [
|
|
{
|
|
"args": "remove @denotest/add",
|
|
"output": "rm_add.out"
|
|
},
|
|
{
|
|
"args": [
|
|
"eval",
|
|
"console.log(Deno.readTextFileSync('package.json').trim())"
|
|
],
|
|
"output": "rm_add_package.json.out"
|
|
},
|
|
{
|
|
"args": "remove @denotest/esm-basic",
|
|
"output": "rm_esm_basic.out"
|
|
},
|
|
{
|
|
"args": [
|
|
"eval",
|
|
"console.log(Deno.readTextFileSync('package.json').trim())"
|
|
],
|
|
"output": "rm_esm_basic_package.json.out"
|
|
}
|
|
]
|
|
}
|