From e57b38f8b216bc8c0c1c22c10ab5c9ce2560c58a Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 23 Feb 2023 17:20:23 -0500 Subject: fix(npm): allow resolving from package.json when an import map exists (#17905) --- cli/tests/testdata/package_json/deno_json/main.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cli/tests/testdata/package_json/deno_json/main.ts (limited to 'cli/tests/testdata/package_json/deno_json/main.ts') diff --git a/cli/tests/testdata/package_json/deno_json/main.ts b/cli/tests/testdata/package_json/deno_json/main.ts new file mode 100644 index 000000000..7768ff3fc --- /dev/null +++ b/cli/tests/testdata/package_json/deno_json/main.ts @@ -0,0 +1,9 @@ +import { NUMBER_VALUE } from "other"; +import * as test from "@denotest/esm-basic"; + +test.setValue(2); +console.log(test.getValue()); + +// these should cause type errors +const _strValue1: string = NUMBER_VALUE; +const _strValue2: string = test.getValue(); -- cgit v1.2.3