test: use index.js if package.json "main" is empty · nodejs/node@862cd2b · GitHub
Skip to content

Commit 862cd2b

Browse files
bnoordhuisMylesBorins
authored andcommitted
test: use index.js if package.json "main" is empty
Verify that the module loader uses index.js when the "main" property of package.json is the empty string. Refs: #32013 PR-URL: #32040 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 3d64c9e commit 862cd2b

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"main":""}
Lines changed: 25 additions & 0 deletions

0 commit comments

Comments
 (0)