1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 04:52:26 -05:00

chore(lint): add .out file reference checker (#27078)

Co-authored-by: David Sherret <dsherret@gmail.com>
This commit is contained in:
Leo Kettmeir 2024-11-26 20:53:20 -08:00 committed by GitHub
parent 4700f12ddc
commit 42b71d82db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
765 changed files with 517 additions and 4766 deletions

View file

@ -0,0 +1,19 @@
{
"tests": {
"by_dir": {
"args": "check --quiet --config deno.exclude_dir.json ignored/index.ts",
"output": "",
"exitCode": 0
},
"by_glob": {
"args": "check --quiet --config deno.exclude_glob.json ignored/index.ts",
"output": "",
"exitCode": 0
},
"without": {
"args": "check --quiet --config deno.json ignored/index.ts",
"output": "exclude_option.ts.error.out",
"exitCode": 1
}
}
}

View file

@ -0,0 +1,14 @@
{
"tests": {
"js": {
"args": "check --quiet mod.js",
"output": "mod.js.out",
"exitCode": 1
},
"ts": {
"args": "check --quiet mod.ts",
"output": "mod.ts.out",
"exitCode": 1
}
}
}

View file

@ -2,4 +2,4 @@ error: TS2769 [ERROR]: No overload matches this call.
[WILDCARD]
const _data = fs.readFileSync("./node_builtin.js", 123);
~~~
at file:///[WILDCARD]/node_builtin_modules/mod.js:3:52
at file:///[WILDCARD]/mod.js:3:52

View file

@ -2,12 +2,12 @@ error: TS2769 [ERROR]: No overload matches this call.
[WILDCARD]
const _data = fs.readFileSync("./node_builtin.js", 123);
~~~
at file:///[WILDCARD]/node_builtin_modules/mod.ts:2:52
at file:///[WILDCARD]/mod.ts:2:52
TS2322 [ERROR]: Type 'string[]' is not assignable to type 'number[]'.
Type 'string' is not assignable to type 'number'.
const _testString: number[] = builtinModules;
~~~~~~~~~~~
at file:///[WILDCARD]/node_builtin_modules/mod.ts:9:7
at file:///[WILDCARD]/mod.ts:9:7
Found 2 errors.

View file

@ -1,5 +0,0 @@
{
"args": "check --quiet node_builtin_modules/mod.js",
"output": "node_builtin_modules/mod.js.out",
"exitCode": 1
}

View file

@ -1,5 +0,0 @@
error: TS2769 [ERROR]: No overload matches this call.
[WILDCARD]
const _data = fs.readFileSync("./node_builtin.js", 123);
~~~
at file:///[WILDCARD]/node_builtin_modules/mod.js:3:52

View file

@ -1,5 +0,0 @@
{
"args": "check --quiet node_builtin_modules/mod.ts",
"output": "node_builtin_modules/mod.ts.out",
"exitCode": 1
}

View file

@ -1,3 +0,0 @@
// @ts-check
import fs from "node:fs";
const _data = fs.readFileSync("./node_builtin.js", 123);

View file

@ -1,9 +0,0 @@
import fs from "node:fs";
const _data = fs.readFileSync("./node_builtin.js", 123);
// check node:module specifically because for deno check it should
// resolve to the @types/node package, but at runtime it uses a different
// builtin object than deno_std
import { builtinModules } from "node:module";
// should error about being string[]
const _testString: number[] = builtinModules;

View file

@ -1,13 +0,0 @@
error: TS2769 [ERROR]: No overload matches this call.
[WILDCARD]
const _data = fs.readFileSync("./node_builtin.js", 123);
~~~
at file:///[WILDCARD]/node_builtin_modules/mod.ts:2:52
TS2322 [ERROR]: Type 'string[]' is not assignable to type 'number[]'.
Type 'string' is not assignable to type 'number'.
const _testString: number[] = builtinModules;
~~~~~~~~~~~
at file:///[WILDCARD]/node_builtin_modules/mod.ts:9:7
Found 2 errors.

View file

@ -1,5 +0,0 @@
{
"args": "check --quiet --config exclude_option/deno.exclude_dir.json exclude_option/ignored/index.ts",
"output": "",
"exitCode": 0
}

View file

@ -1,5 +0,0 @@
{
"args": "check --quiet --config exclude_option/deno.exclude_glob.json exclude_option/ignored/index.ts",
"output": "",
"exitCode": 0
}

View file

@ -1,5 +0,0 @@
{
"exclude": [
"ignored"
]
}

View file

@ -1,5 +0,0 @@
{
"exclude": [
"ignored/**/*"
]
}

View file

@ -1,4 +0,0 @@
error: TS2304 [ERROR]: Cannot find name 'nothing'.
export { nothing };
~~~~~~~
at [WILDCARD]

View file

@ -1,5 +0,0 @@
import { nothing } from "./ignored/index.ts";
const foo = 1;
export { foo, nothing };

View file

@ -1,5 +0,0 @@
{
"args": "check --quiet --config exclude_option/deno.json exclude_option/ignored/index.ts",
"output": "exclude_option/exclude_option.ts.error.out",
"exitCode": 1
}

View file

@ -1,5 +0,0 @@
{
"exclude": [
"ignored"
]
}

View file

@ -1,5 +0,0 @@
{
"exclude": [
"ignored/**/*"
]
}

View file

@ -1,3 +0,0 @@
{
"exclude": []
}

View file

@ -1,4 +0,0 @@
error: TS2304 [ERROR]: Cannot find name 'nothing'.
export { nothing };
~~~~~~~
at [WILDCARD]

View file

@ -1,5 +0,0 @@
import { nothing } from "./ignored/index.ts";
const foo = 1;
export { foo, nothing };

View file

@ -1,17 +1,26 @@
{
"steps": [{
"args": "lint",
"output": "no_slow_types.out",
"exitCode": 1
}, {
"args": "lint --rules-exclude=no-slow-types",
"output": "Checked 4 files\n"
}, {
"args": "lint --config=deno.non-package.json",
"output": "Checked 4 files\n"
}, {
// non-entrypoint
"args": "lint d.ts",
"output": "Checked 1 file\n"
}]
"tests": {
"no_entrypoint": {
"steps": [{
"args": "lint",
"output": "no_slow_types.out",
"exitCode": 1
}, {
"args": "lint --rules-exclude=no-slow-types",
"output": "Checked 4 files\n"
}, {
"args": "lint --config=deno.non-package.json",
"output": "Checked 4 files\n"
}, {
// non-entrypoint
"args": "lint d.ts",
"output": "Checked 1 file\n"
}]
},
"entrypoint": {
"args": "lint a.ts",
"output": "no_slow_types_entrypoint.out",
"exitCode": 1
}
}
}

View file

@ -1,5 +0,0 @@
{
"args": "lint a.ts",
"output": "no_slow_types_entrypoint.out",
"exitCode": 1
}

View file

@ -1,3 +0,0 @@
export function add(a: number, b: number) {
return a + b;
}

View file

@ -1,5 +0,0 @@
export function addB(a: number, b: number) {
return a + b;
}
export * from "./d.ts";

View file

@ -1,4 +0,0 @@
// this one won't error because it's not an export
export function addC(a: number, b: number) {
return a + b;
}

View file

@ -1,4 +0,0 @@
// this one is re-exported via b.ts
export function addD(a: number, b: number) {
return a + b;
}

View file

@ -1,8 +0,0 @@
{
"name": "@pkg/pkg",
"version": "1.0.0",
"exports": {
"./a": "./a.ts",
"./b": "./b.ts"
}
}

View file

@ -1,35 +0,0 @@
error[no-slow-types]: missing explicit return type in the public API
--> [WILDCARD]a.ts:1:17
|
1 | export function add(a: number, b: number) {
| ^^^ this function is missing an explicit return type
= hint: add an explicit return type to the function
info: all functions in the public API must have an explicit return type
docs: https://jsr.io/go/slow-type-missing-explicit-return-type
error[no-slow-types]: missing explicit return type in the public API
--> [WILDCARD]b.ts:1:17
|
1 | export function addB(a: number, b: number) {
| ^^^^ this function is missing an explicit return type
= hint: add an explicit return type to the function
info: all functions in the public API must have an explicit return type
docs: https://jsr.io/go/slow-type-missing-explicit-return-type
error[no-slow-types]: missing explicit return type in the public API
--> [WILDCARD]d.ts:2:17
|
2 | export function addD(a: number, b: number) {
| ^^^^ this function is missing an explicit return type
= hint: add an explicit return type to the function
info: all functions in the public API must have an explicit return type
docs: https://jsr.io/go/slow-type-missing-explicit-return-type
Found 3 problems
Checked 4 files

View file

@ -1,38 +0,0 @@
error[no-slow-types]: missing explicit return type in the public API
--> [WILDCARD]a.ts:1:17
|
1 | export function add(a: number, b: number) {
| ^^^ this function is missing an explicit return type
|
= hint: add an explicit return type to the function
info: all functions in the public API must have an explicit return type
docs: https://jsr.io/go/slow-type-missing-explicit-return-type
error[no-slow-types]: missing explicit return type in the public API
--> [WILDCARD]b.ts:1:17
|
1 | export function addB(a: number, b: number) {
| ^^^^ this function is missing an explicit return type
|
= hint: add an explicit return type to the function
info: all functions in the public API must have an explicit return type
docs: https://jsr.io/go/slow-type-missing-explicit-return-type
error[no-slow-types]: missing explicit return type in the public API
--> [WILDCARD]d.ts:2:17
|
2 | export function addD(a: number, b: number) {
| ^^^^ this function is missing an explicit return type
|
= hint: add an explicit return type to the function
info: all functions in the public API must have an explicit return type
docs: https://jsr.io/go/slow-type-missing-explicit-return-type
Found 3 problems
Checked 1 file

View file

@ -1,11 +0,0 @@
[WILDCARD]Integrity check failed for remote specifier. The source code is invalid, as it does not match the expected hash in the lock file.
Specifier: http://localhost:4545/subdir/mt_text_ecmascript.j3.js
Actual: 3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18
Expected: bad
This could be caused by:
* the lock file may be corrupt
* the source itself may be corrupt
Investigate the lockfile; delete it to regenerate the lockfile or --reload to reload the source code from the server.

View file

@ -14,7 +14,7 @@
"output": "[WILDCARD]"
}, {
"args": "run -A invalid_sub_path.ts",
"output": "invalid_sub_path.out",
"output": "future_invalid_sub_path.out",
"exitCode": 1
}]
},

View file

@ -1,5 +0,0 @@
{
"args": "check --all check_errors/main.ts",
"output": "check_errors/main_all.out",
"exitCode": 1
}

View file

@ -1,7 +0,0 @@
Download http://localhost:4260/@denotest%2fcheck-error
Download http://localhost:4260/@denotest/check-error/1.0.0.tgz
Check file:///[WILDCARD]/check_errors/main.ts
error: TS2339 [ERROR]: Property 'Asdf' does not exist on type 'typeof import("file:///[WILDCARD]/@denotest/check-error/1.0.0/index.d.ts")'.
console.log(test.Asdf); // should error
~~~~
at file:///[WILDCARD]/npm/check_errors/main.ts:3:18

View file

@ -0,0 +1,14 @@
{
"tests": {
"all": {
"args": "check --all main.ts",
"output": "main_all.out",
"exitCode": 1
},
"local": {
"args": "check main.ts",
"output": "main_local.out",
"exitCode": 1
}
}
}

View file

@ -1,19 +1,19 @@
Download http://localhost:4260/@denotest%2fcheck-error
Download http://localhost:4260/@denotest/check-error/1.0.0.tgz
Check file:///[WILDCARD]/check_errors/main.ts
Check file:///[WILDCARD]/main.ts
error: TS2506 [ERROR]: 'Class1' is referenced directly or indirectly in its own base expression.
export class Class1 extends Class2 {
~~~~~~
at file:///[WILDCARD]/check-error/1.0.0/index.d.ts:2:14
at file:///[WILDCARD]/1.0.0/index.d.ts:2:14
TS2506 [ERROR]: 'Class2' is referenced directly or indirectly in its own base expression.
export class Class2 extends Class1 {
~~~~~~
at file:///[WILDCARD]/check-error/1.0.0/index.d.ts:5:14
at file:///[WILDCARD]/1.0.0/index.d.ts:5:14
TS2339 [ERROR]: Property 'Asdf' does not exist on type 'typeof import("file:///[WILDCARD]/@denotest/check-error/1.0.0/index.d.ts")'.
console.log(test.Asdf); // should error
~~~~
at file:///[WILDCARD]/check_errors/main.ts:3:18
at file:///[WILDCARD]/main.ts:3:18
Found 3 errors.

View file

@ -1,7 +1,7 @@
Download http://localhost:4260/@denotest%2fcheck-error
Download http://localhost:4260/@denotest/check-error/1.0.0.tgz
Check file:///[WILDCARD]/check_errors/main.ts
Check file:///[WILDCARD]/main.ts
error: TS2339 [ERROR]: Property 'Asdf' does not exist on type 'typeof import("file:///[WILDCARD]/@denotest/check-error/1.0.0/index.d.ts")'.
console.log(test.Asdf); // should error
~~~~
at file:///[WILDCARD]/check_errors/main.ts:3:18
at file:///[WILDCARD]/main.ts:3:18

View file

@ -1,5 +0,0 @@
{
"args": "check check_errors/main.ts",
"output": "check_errors/main_local.out",
"exitCode": 1
}

View file

@ -1,3 +0,0 @@
import * as test from "npm:@denotest/check-error";
console.log(test.Asdf); // should error

View file

@ -1,19 +0,0 @@
Download http://localhost:4260/@denotest%2fcheck-error
Download http://localhost:4260/@denotest/check-error/1.0.0.tgz
Check file:///[WILDCARD]/check_errors/main.ts
error: TS2506 [ERROR]: 'Class1' is referenced directly or indirectly in its own base expression.
export class Class1 extends Class2 {
~~~~~~
at file:///[WILDCARD]/check-error/1.0.0/index.d.ts:2:14
TS2506 [ERROR]: 'Class2' is referenced directly or indirectly in its own base expression.
export class Class2 extends Class1 {
~~~~~~
at file:///[WILDCARD]/check-error/1.0.0/index.d.ts:5:14
TS2339 [ERROR]: Property 'Asdf' does not exist on type 'typeof import("file:///[WILDCARD]/@denotest/check-error/1.0.0/index.d.ts")'.
console.log(test.Asdf); // should error
~~~~
at file:///[WILDCARD]/check_errors/main.ts:3:18
Found 3 errors.

View file

@ -1,4 +1,36 @@
{
"args": "run --allow-read --allow-env cjs_with_deps/main.js",
"output": "cjs_with_deps/main.out"
"tests": {
"cjs_with_deps": {
"args": "run --allow-read --allow-env main.js",
"output": "main.out"
},
"cjs_with_deps_node_modules": {
"args": "run --allow-read --allow-env --node-modules-dir=auto main.js",
"output": "main_node_modules.out"
},
"cjs_with_deps_info": {
"steps": [
{
"args": "cache main.js",
"output": "[WILDCARD]"
},
{
"args": "info main.js",
"output": "main_info.out"
}
]
},
"cjs_with_deps_info_json": {
"steps": [
{
"args": "cache main.js",
"output": "[WILDCARD]"
},
{
"args": "info --json main.js",
"output": "main_info_json.out"
}
]
}
}
}

View file

@ -45,7 +45,17 @@
"local": "[WILDCARD]main.js",
"size": 325,
"mediaType": "JavaScript",
"specifier": "[WILDCARD]/main.js"
"specifier": "file:///[WILDCARD]/main.js"
},
{
"kind": "npm",
"specifier": "npm:/chai@4.3.6",
"npmPackage": "chai@4.3.6"
},
{
"kind": "npm",
"specifier": "npm:/chalk@4.1.2",
"npmPackage": "chalk@4.1.2"
}
],
"redirects": {
@ -58,12 +68,14 @@
"version": "4.3.0",
"dependencies": [
"color-convert@2.0.1"
]
],
"registryUrl": "http://localhost:4260/"
},
"assertion-error@1.1.0": {
"name": "assertion-error",
"version": "1.1.0",
"dependencies": []
"dependencies": [],
"registryUrl": "http://localhost:4260/"
},
"chai@4.3.6": {
"name": "chai",
@ -76,7 +88,8 @@
"loupe@2.3.4",
"pathval@1.1.1",
"type-detect@4.0.8"
]
],
"registryUrl": "http://localhost:4260/"
},
"chalk@4.1.2": {
"name": "chalk",
@ -84,65 +97,76 @@
"dependencies": [
"ansi-styles@4.3.0",
"supports-color@7.2.0"
]
],
"registryUrl": "http://localhost:4260/"
},
"check-error@1.0.2": {
"name": "check-error",
"version": "1.0.2",
"dependencies": []
"dependencies": [],
"registryUrl": "http://localhost:4260/"
},
"color-convert@2.0.1": {
"name": "color-convert",
"version": "2.0.1",
"dependencies": [
"color-name@1.1.4"
]
],
"registryUrl": "http://localhost:4260/"
},
"color-name@1.1.4": {
"name": "color-name",
"version": "1.1.4",
"dependencies": []
"dependencies": [],
"registryUrl": "http://localhost:4260/"
},
"deep-eql@3.0.1": {
"name": "deep-eql",
"version": "3.0.1",
"dependencies": [
"type-detect@4.0.8"
]
],
"registryUrl": "http://localhost:4260/"
},
"get-func-name@2.0.0": {
"name": "get-func-name",
"version": "2.0.0",
"dependencies": []
"dependencies": [],
"registryUrl": "http://localhost:4260/"
},
"has-flag@4.0.0": {
"name": "has-flag",
"version": "4.0.0",
"dependencies": []
"dependencies": [],
"registryUrl": "http://localhost:4260/"
},
"loupe@2.3.4": {
"name": "loupe",
"version": "2.3.4",
"dependencies": [
"get-func-name@2.0.0"
]
],
"registryUrl": "http://localhost:4260/"
},
"pathval@1.1.1": {
"name": "pathval",
"version": "1.1.1",
"dependencies": []
"dependencies": [],
"registryUrl": "http://localhost:4260/"
},
"supports-color@7.2.0": {
"name": "supports-color",
"version": "7.2.0",
"dependencies": [
"has-flag@4.0.0"
]
],
"registryUrl": "http://localhost:4260/"
},
"type-detect@4.0.8": {
"name": "type-detect",
"version": "4.0.8",
"dependencies": []
"dependencies": [],
"registryUrl": "http://localhost:4260/"
}
}
}

View file

@ -0,0 +1,14 @@
{
"tests": {
"directory_import": {
"args": "run folder_index_js.ts",
"output": "folder_index_js.out",
"exitCode": 1
},
"directory_import_folder_no_index": {
"args": "run folder_no_index.ts",
"output": "folder_no_index.out",
"exitCode": 1
}
}
}

View file

@ -1,5 +0,0 @@
{
"args": "run directory_import/folder_index_js.ts",
"output": "directory_import/folder_index_js.out",
"exitCode": 1
}

View file

@ -1,5 +0,0 @@
{
"args": "run directory_import/folder_no_index.ts",
"output": "directory_import/folder_no_index.out",
"exitCode": 1
}

View file

@ -1,7 +0,0 @@
Download http://localhost:4260/@denotest%2fsub-folders
Download http://localhost:4260/@denotest/sub-folders/1.0.0.tgz
error: Directory import [WILDCARD]folder_index_js is not supported resolving import from file:///[WILDCARD]/directory_import/folder_index_js.ts
Did you mean to import index.js within the directory?
Caused by:
[WILDCARD]

View file

@ -1,2 +0,0 @@
import test from "npm:@denotest/sub-folders/folder_index_js";
console.log(test);

View file

@ -1,6 +0,0 @@
Download http://localhost:4260/@denotest%2fsub-folders
Download http://localhost:4260/@denotest/sub-folders/1.0.0.tgz
error: Directory import [WILDCARD]folder_no_index is not supported resolving import from file:///[WILDCARD]/folder_no_index.ts
Caused by:
[WILDCARD]

View file

@ -1,2 +0,0 @@
import test from "npm:@denotest/sub-folders/folder_no_index";
console.log(test);

View file

@ -1,4 +1,18 @@
{
"args": "run --no-lock --node-modules-dir=none imports_package_json/main.js",
"output": "imports_package_json/main.out"
"tests": {
"imports_package_json": {
"args": "run --no-lock --node-modules-dir=none main.js",
"output": "main.out"
},
"imports_package_json_import_not_defined": {
"args": "run --no-lock --node-modules-dir=none import_not_defined.js",
"output": "import_not_defined.out",
"exitCode": 1
},
"imports_package_json_sub_path_import_not_defined": {
"args": "run --no-lock --node-modules-dir=none sub_path_import_not_defined.js",
"output": "sub_path_import_not_defined.out",
"exitCode": 1
}
}
}

View file

@ -1,5 +0,0 @@
{
"args": "run --no-lock --node-modules-dir=none imports_package_json/import_not_defined.js",
"output": "imports_package_json/import_not_defined.out",
"exitCode": 1
}

View file

@ -1,3 +0,0 @@
import data from "@denotest/imports-package-json/import-not-defined";
console.log(data);

View file

@ -1,3 +0,0 @@
Download http://localhost:4260/@denotest%2fimports-package-json
Download http://localhost:4260/@denotest/imports-package-json/1.0.0.tgz
error: [ERR_PACKAGE_IMPORT_NOT_DEFINED] Package import specifier "#not-defined" is not defined in package [WILDCARD]package.json imported from '[WILDCARD]import_not_defined.js'

View file

@ -1,7 +0,0 @@
import data from "@denotest/imports-package-json";
console.log(data.hi);
console.log(data.bye);
console.log(typeof data.fs.readFile);
console.log(typeof data.path.join);
console.log(typeof data.fs2.writeFile);

View file

@ -1,7 +0,0 @@
Download http://localhost:4260/@denotest%2fimports-package-json
Download http://localhost:4260/@denotest/imports-package-json/1.0.0.tgz
hi
bye
function
function
function

View file

@ -1,6 +0,0 @@
{
"name": "my-test",
"dependencies": {
"@denotest/imports-package-json": "1.0.0"
}
}

View file

@ -1,3 +0,0 @@
import data from "@denotest/imports-package-json/sub-path-import-not-defined";
console.log(data);

View file

@ -1,3 +0,0 @@
Download http://localhost:4260/@denotest%2fimports-package-json
Download http://localhost:4260/@denotest/imports-package-json/1.0.0.tgz
error: [ERR_PACKAGE_IMPORT_NOT_DEFINED] Package import specifier "#hi" is not defined in package [WILDCARD]sub_path[WILDCARD]package.json imported from '[WILDCARD]import_not_defined.js'

View file

@ -1,5 +0,0 @@
{
"args": "run --no-lock --node-modules-dir=none imports_package_json/sub_path_import_not_defined.js",
"output": "imports_package_json/sub_path_import_not_defined.out",
"exitCode": 1
}

View file

@ -1,3 +0,0 @@
import data from "@denotest/imports-package-json/import-not-defined";
console.log(data);

View file

@ -1,3 +0,0 @@
Download http://localhost:4260/@denotest%2fimports-package-json
Download http://localhost:4260/@denotest/imports-package-json/1.0.0.tgz
error: [ERR_PACKAGE_IMPORT_NOT_DEFINED] Package import specifier "#not-defined" is not defined in package [WILDCARD]package.json imported from '[WILDCARD]import_not_defined.js'

View file

@ -1,7 +0,0 @@
import data from "@denotest/imports-package-json";
console.log(data.hi);
console.log(data.bye);
console.log(typeof data.fs.readFile);
console.log(typeof data.path.join);
console.log(typeof data.fs2.writeFile);

View file

@ -1,7 +0,0 @@
Download http://localhost:4260/@denotest%2fimports-package-json
Download http://localhost:4260/@denotest/imports-package-json/1.0.0.tgz
hi
bye
function
function
function

View file

@ -1,6 +0,0 @@
{
"name": "my-test",
"dependencies": {
"@denotest/imports-package-json": "1.0.0"
}
}

View file

@ -1,3 +0,0 @@
import data from "@denotest/imports-package-json/sub-path-import-not-defined";
console.log(data);

View file

@ -1,3 +0,0 @@
Download http://localhost:4260/@denotest%2fimports-package-json
Download http://localhost:4260/@denotest/imports-package-json/1.0.0.tgz
error: [ERR_PACKAGE_IMPORT_NOT_DEFINED] Package import specifier "#hi" is not defined in package [WILDCARD]sub_path[WILDCARD]package.json imported from '[WILDCARD]import_not_defined.js'

View file

@ -1,5 +0,0 @@
{
"args": "info --quiet npm:chalk@4",
"output": "info/chalk.out",
"exitCode": 0
}

View file

@ -1,57 +0,0 @@
{
"version": 1,
"roots": [
"npm:chalk@4"
],
"modules": [
{
"kind": "npm",
"specifier": "npm:/chalk@4.1.2",
"npmPackage": "chalk@4.1.2"
}
],
"redirects": {
"npm:chalk@4": "npm:/chalk@4.1.2"
},
"npmPackages": {
"ansi-styles@4.3.0": {
"name": "ansi-styles",
"version": "4.3.0",
"dependencies": [
"color-convert@2.0.1"
]
},
"chalk@4.1.2": {
"name": "chalk",
"version": "4.1.2",
"dependencies": [
"ansi-styles@4.3.0",
"supports-color@7.2.0"
]
},
"color-convert@2.0.1": {
"name": "color-convert",
"version": "2.0.1",
"dependencies": [
"color-name@1.1.4"
]
},
"color-name@1.1.4": {
"name": "color-name",
"version": "1.1.4",
"dependencies": []
},
"has-flag@4.0.0": {
"name": "has-flag",
"version": "4.0.0",
"dependencies": []
},
"supports-color@7.2.0": {
"name": "supports-color",
"version": "7.2.0",
"dependencies": [
"has-flag@4.0.0"
]
}
}
}

View file

@ -1,5 +1,14 @@
{
"args": "info --quiet --json npm:chalk@4",
"output": "info/chalk_json.out",
"exitCode": 0
"tests": {
"info_cli_chalk": {
"args": "info --quiet npm:chalk@4",
"output": "chalk.out",
"exitCode": 0
},
"info_cli_chalk_json": {
"args": "info --quiet --json npm:chalk@4",
"output": "chalk_json.out",
"exitCode": 0
}
}
}

Some files were not shown because too many files have changed in this diff Show more