summaryrefslogtreecommitdiff
path: root/test/fixtures/es-modules
diff options
context:
space:
mode:
authorGuy Bedford <guybedford@gmail.com>2018-02-14 22:55:49 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2018-02-16 19:46:28 +0100
commit7748865cd3322ff9421458ccc862291eb26cec62 (patch)
tree3a8383e729edd92f035eaa2e53e997bce701d761 /test/fixtures/es-modules
parent61e3e6d56feefcd88f2baeb59c31c327835a8d90 (diff)
downloadandroid-node-v8-7748865cd3322ff9421458ccc862291eb26cec62.tar.gz
android-node-v8-7748865cd3322ff9421458ccc862291eb26cec62.tar.bz2
android-node-v8-7748865cd3322ff9421458ccc862291eb26cec62.zip
module: fix main lookup regression from #18728
PR-URL: https://github.com/nodejs/node/pull/18788 Refs: https://github.com/nodejs/node/pull/18728 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/fixtures/es-modules')
-rw-r--r--test/fixtures/es-modules/pjson-main/main.js1
-rw-r--r--test/fixtures/es-modules/pjson-main/package.json3
2 files changed, 4 insertions, 0 deletions
diff --git a/test/fixtures/es-modules/pjson-main/main.js b/test/fixtures/es-modules/pjson-main/main.js
new file mode 100644
index 0000000000..dfdd47b877
--- /dev/null
+++ b/test/fixtures/es-modules/pjson-main/main.js
@@ -0,0 +1 @@
+module.exports = 'main';
diff --git a/test/fixtures/es-modules/pjson-main/package.json b/test/fixtures/es-modules/pjson-main/package.json
new file mode 100644
index 0000000000..c13b8cf6ac
--- /dev/null
+++ b/test/fixtures/es-modules/pjson-main/package.json
@@ -0,0 +1,3 @@
+{
+ "main": "main.js"
+}