summaryrefslogtreecommitdiff
path: root/tests/specs/check/npm_pkg_empty_main_entry/index.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-04-01 02:07:11 -0400
committerGitHub <noreply@github.com>2024-04-01 07:07:11 +0100
commit8698492128310f713993bb115985d41d3fdca2db (patch)
tree8d278c37c815eae7e816f7dc10fc51c1d5c2ec4e /tests/specs/check/npm_pkg_empty_main_entry/index.ts
parentb8af46e0075f659f4e373e249b0f19b3cb0f62a9 (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.ts5
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);