diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-03-26 21:40:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 17:40:24 -0400 |
commit | 6b95c53e48a2622f4f2b6fdfa6c2c26dc30bbba4 (patch) | |
tree | cba79d8f7ec6f6ba89adf73112feb201491622f1 /cli/lsp/tsc.rs | |
parent | 9841d3fdf1f8eebb318a9e37a10ebc903d104782 (diff) |
feat(add): always produce multiline config file (#23077)
This commit changes `deno add` to always produce a multiline config
file.
In v1.41.3:
```
$ mkdir foo
$ cd foo
$ deno add @std/assert
Created deno.json configuration file.
Add @std/assert - jsr:@std/assert@^0.220.0
$ cat deno.json
{ "imports": { "@std/assert": "jsr:@std/assert@^0.220.0" } }
```
Now:
```
$ mkdir foo
$ cd foo
$ deno add @std/assert
Created deno.json configuration file.
Add @std/assert - jsr:@std/assert@^0.220.0
$ cat deno.json
{
"imports": {
"@std/assert": "jsr:@std/assert@^0.220.0"
}
}
```
Diffstat (limited to 'cli/lsp/tsc.rs')
0 files changed, 0 insertions, 0 deletions