1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 01:29:14 -05:00
denoland-deno/cli/tests/testdata/info/json_output/main.out
David Sherret a6ca4d0d61
refactor: use deno_graph for npm specifiers (#17858)
This changes npm specifiers to be handled by deno_graph and resolved to
an npm package name and version when the specifier is encountered. It
also slightly changes how npm specifier resolution occurs—previously it
would collect all the npm specifiers and resolve them all at once, but
now it resolves them on the fly as they are encountered in the module
graph.

https://github.com/denoland/deno_graph/pull/232

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-02-22 14:15:25 -05:00

91 lines
2.1 KiB
Text

{
"roots": [
"file://[WILDCARD]/info/json_output/main.ts"
],
"modules": [
{
"kind": "esm",
"dependencies": [
{
"specifier": "../../subdir/mod1.ts",
"code": {
"specifier": "file://[WILDCARD]/subdir/mod1.ts",
"span": {
"start": {
"line": 0,
"character": 52
},
"end": {
"line": 0,
"character": 74
}
}
}
}
],
"local": "[WILDCARD]main.ts",
[WILDCARD]
"mediaType": "TypeScript",
"specifier": "file://[WILDCARD]/json_output/main.ts"
},
{
"kind": "esm",
"dependencies": [
{
"specifier": "./subdir2/mod2.ts",
"code": {
"specifier": "file://[WILDCARD]/subdir/subdir2/mod2.ts",
"span": {
"start": {
"line": 0,
"character": 40
},
"end": {
"line": 0,
"character": 59
}
}
}
}
],
"local": "[WILDCARD]mod1.ts",
[WILDCARD]
"mediaType": "TypeScript",
"specifier": "file://[WILDCARD]/subdir/mod1.ts"
},
{
"kind": "esm",
"local": "[WILDCARD]print_hello.ts",
[WILDCARD]
"mediaType": "TypeScript",
"specifier": "file://[WILDCARD]/subdir/print_hello.ts"
},
{
"kind": "esm",
"dependencies": [
{
"specifier": "../print_hello.ts",
"code": {
"specifier": "file://[WILDCARD]/subdir/print_hello.ts",
"span": {
"start": {
"line": 0,
"character": 27
},
"end": {
"line": 0,
"character": 46
}
}
}
}
],
"local": "[WILDCARD]mod2.ts",
[WILDCARD]
"mediaType": "TypeScript",
"specifier": "file://[WILDCARD]/subdir/subdir2/mod2.ts"
}
],
"redirects": {},
"npmPackages": {}
}