mirror of
https://github.com/denoland/deno.git
synced 2024-12-15 03:48:02 -05:00
a6ca4d0d61
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>
91 lines
2.1 KiB
Text
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": {}
|
|
}
|