From 51e3db956a5927229e3f46f4eaaf317e935f8f17 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 23 Nov 2021 10:38:11 -0500 Subject: fix(cli): config file should resolve paths relative to the config file (#12867) * Add `specifier_to_file_path` to support converting a ModuleSpecifier with a unix-style path to a PathBuf on Windows. --- cli/tests/testdata/fmt/deno.jsonc | 4 ++-- cli/tests/testdata/fmt/deno.malformed.jsonc | 4 ++-- cli/tests/testdata/fmt/deno.malformed2.jsonc | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'cli/tests/testdata/fmt') diff --git a/cli/tests/testdata/fmt/deno.jsonc b/cli/tests/testdata/fmt/deno.jsonc index 0e682cf36..9c330d34a 100644 --- a/cli/tests/testdata/fmt/deno.jsonc +++ b/cli/tests/testdata/fmt/deno.jsonc @@ -1,8 +1,8 @@ { "fmt": { "files": { - "include": ["fmt/fmt_with_config/"], - "exclude": ["fmt/fmt_with_config/b.ts"] + "include": ["fmt_with_config/"], + "exclude": ["fmt_with_config/b.ts"] }, "options": { "useTabs": true, diff --git a/cli/tests/testdata/fmt/deno.malformed.jsonc b/cli/tests/testdata/fmt/deno.malformed.jsonc index 667480bdc..c6200c4ee 100644 --- a/cli/tests/testdata/fmt/deno.malformed.jsonc +++ b/cli/tests/testdata/fmt/deno.malformed.jsonc @@ -1,8 +1,8 @@ { "fmt": { "files": { - "include": ["fmt/fmt_with_config/"], - "exclude": ["fmt/fmt_with_config/b.ts"] + "include": ["fmt_with_config/"], + "exclude": ["fmt_with_config/b.ts"] }, "dont_know_this_field": {}, "options": { diff --git a/cli/tests/testdata/fmt/deno.malformed2.jsonc b/cli/tests/testdata/fmt/deno.malformed2.jsonc index 2210dc0c7..4d6e99ae2 100644 --- a/cli/tests/testdata/fmt/deno.malformed2.jsonc +++ b/cli/tests/testdata/fmt/deno.malformed2.jsonc @@ -1,8 +1,8 @@ { "fmt": { "files": { - "include": ["fmt/fmt_with_config/"], - "exclude": ["fmt/fmt_with_config/b.ts"], + "include": ["fmt_with_config/"], + "exclude": ["fmt_with_config/b.ts"], "dont_know_this_field": {} }, "options": { -- cgit v1.2.3