mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
feat(unstable): add module specifier to deno info --json output (#7725)
This commit is contained in:
parent
8cbf0e75b2
commit
e3adeea769
2 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,7 @@ use std::sync::Arc;
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct ModuleDepInfo {
|
pub struct ModuleDepInfo {
|
||||||
|
module: String,
|
||||||
local: String,
|
local: String,
|
||||||
file_type: String,
|
file_type: String,
|
||||||
compiled: Option<String>,
|
compiled: Option<String>,
|
||||||
|
@ -70,6 +71,7 @@ impl ModuleDepInfo {
|
||||||
let files = FileInfoDepFlatGraph::new(&module_graph);
|
let files = FileInfoDepFlatGraph::new(&module_graph);
|
||||||
|
|
||||||
let info = Self {
|
let info = Self {
|
||||||
|
module: module_specifier.to_string(),
|
||||||
local: local_filename,
|
local: local_filename,
|
||||||
file_type,
|
file_type,
|
||||||
compiled: compiled_filename,
|
compiled: compiled_filename,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"module": "file://[WILDCARD]005_more_imports.ts",
|
||||||
"local": "[WILDCARD]005_more_imports.ts",
|
"local": "[WILDCARD]005_more_imports.ts",
|
||||||
"fileType": "TypeScript",
|
"fileType": "TypeScript",
|
||||||
"compiled": null,
|
"compiled": null,
|
||||||
|
|
Loading…
Reference in a new issue