From 37279e0b0a4300318da472bf0a8bdb894746537f Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 20 Aug 2024 16:32:01 -0400 Subject: fix(add): error when config file contains importMap field (#25115) The "imports" field has higher precedence than "importMap", so we should error when `deno add` goes to add an `"imports"` field. Closes https://github.com/denoland/deno/issues/24264 Closes https://github.com/denoland/deno/pull/24478 --- tests/specs/add/error_import_map_field/deno.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/specs/add/error_import_map_field/deno.json (limited to 'tests/specs/add/error_import_map_field/deno.json') diff --git a/tests/specs/add/error_import_map_field/deno.json b/tests/specs/add/error_import_map_field/deno.json new file mode 100644 index 000000000..12a79304f --- /dev/null +++ b/tests/specs/add/error_import_map_field/deno.json @@ -0,0 +1,3 @@ +{ + "importMap": "./import_map.json" +} -- cgit v1.2.3