mirror of
https://github.com/denoland/deno.git
synced 2025-02-18 11:28:33 -05:00

``` deno install --dev npm:chalk ``` Adds to `devDependencies` if a `package.json` is present, otherwise it just adds to `imports` in `deno.json`
39 lines
825 B
JSON
39 lines
825 B
JSON
{
|
|
"tempDir": true,
|
|
"tests": {
|
|
"package_json": {
|
|
"steps": [
|
|
{
|
|
"args": "add --dev npm:@denotest/esm-basic",
|
|
"output": "add.out"
|
|
},
|
|
{
|
|
"args": [
|
|
"eval",
|
|
"console.log(Deno.readTextFileSync('package.json').trim())"
|
|
],
|
|
"output": "package.json.out"
|
|
}
|
|
]
|
|
},
|
|
"deno_json": {
|
|
"steps": [
|
|
{
|
|
"args": ["eval", "Deno.removeSync('package.json')"],
|
|
"output": ""
|
|
},
|
|
{
|
|
"args": "add --dev npm:@denotest/esm-basic",
|
|
"output": "add.out"
|
|
},
|
|
{
|
|
"args": [
|
|
"eval",
|
|
"console.log(Deno.readTextFileSync('deno.json').trim())"
|
|
],
|
|
"output": "deno.json.out"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|