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)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct ModuleDepInfo {
|
||||
module: String,
|
||||
local: String,
|
||||
file_type: String,
|
||||
compiled: Option<String>,
|
||||
|
@ -70,6 +71,7 @@ impl ModuleDepInfo {
|
|||
let files = FileInfoDepFlatGraph::new(&module_graph);
|
||||
|
||||
let info = Self {
|
||||
module: module_specifier.to_string(),
|
||||
local: local_filename,
|
||||
file_type,
|
||||
compiled: compiled_filename,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"module": "file://[WILDCARD]005_more_imports.ts",
|
||||
"local": "[WILDCARD]005_more_imports.ts",
|
||||
"fileType": "TypeScript",
|
||||
"compiled": null,
|
||||
|
|
Loading…
Reference in a new issue