Skip to content

Commit 47918b2

Browse files
authored
fix: don't warn on "compilerOptions.rootDirs" (#155)
1 parent 5a8211a commit 47918b2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: src/deno_json/ts.rs

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ static ALLOWED_COMPILER_OPTIONS: phf::Set<&'static str> = phf::phf_set! {
106106
"noUncheckedIndexedAccess",
107107
"noUnusedLocals",
108108
"noUnusedParameters",
109+
"rootDirs",
109110
"strict",
110111
"strictBindCallApply",
111112
"strictBuiltinIteratorReturn",

Diff for: src/workspace/resolver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ pub enum WorkspaceResolverDiagnostic<'a> {
446446
impl fmt::Display for WorkspaceResolverDiagnostic<'_> {
447447
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
448448
match self {
449-
Self::ImportMap(d) => d.fmt(f),
449+
Self::ImportMap(d) => write!(f, "Import map: {d}"),
450450
Self::CompilerOptionsRootDirs(d) => d.fmt(f),
451451
}
452452
}

0 commit comments

Comments
 (0)