mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
98e8e2f8bc
``` 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
Text
39 lines
825 B
Text
{
|
|
"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"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|