diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-04-01 02:07:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-01 07:07:11 +0100 |
commit | 8698492128310f713993bb115985d41d3fdca2db (patch) | |
tree | 8d278c37c815eae7e816f7dc10fc51c1d5c2ec4e /tests/specs/check/npm_pkg_empty_main_entry/index.ts | |
parent | b8af46e0075f659f4e373e249b0f19b3cb0f62a9 (diff) |
fix(node): handle empty 'main' entry in pkg json (#23155)
Diffstat (limited to 'tests/specs/check/npm_pkg_empty_main_entry/index.ts')
-rw-r--r-- | tests/specs/check/npm_pkg_empty_main_entry/index.ts | 5 |
1 files changed, 5 insertions, 0 deletions
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); |