From 8698492128310f713993bb115985d41d3fdca2db Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 1 Apr 2024 02:07:11 -0400 Subject: fix(node): handle empty 'main' entry in pkg json (#23155) --- tests/specs/check/npm_pkg_empty_main_entry/index.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/specs/check/npm_pkg_empty_main_entry/index.ts (limited to 'tests/specs/check/npm_pkg_empty_main_entry/index.ts') diff --git a/tests/specs/check/npm_pkg_empty_main_entry/index.ts b/tests/specs/check/npm_pkg_empty_main_entry/index.ts new file mode 100644 index 000000000..45966c024 --- /dev/null +++ b/tests/specs/check/npm_pkg_empty_main_entry/index.ts @@ -0,0 +1,5 @@ +// this package has an empty "main" entry in its package.json for both the package and @types/package +import { add } from "package"; + +const result: string = add(1, 2); +console.log(result); -- cgit v1.2.3