1
0
Fork 0
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:
Valentin Anger 2020-09-27 21:50:18 +02:00 committed by GitHub
parent 8cbf0e75b2
commit e3adeea769
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -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,

View file

@ -1,4 +1,5 @@
{
"module": "file://[WILDCARD]005_more_imports.ts",
"local": "[WILDCARD]005_more_imports.ts",
"fileType": "TypeScript",
"compiled": null,