summaryrefslogtreecommitdiff
path: root/test/fixtures/packages
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-01-27 17:57:45 -0800
committerRyan Dahl <ry@tinyclouds.org>2011-02-07 11:00:22 -0800
commitda2f4b2dc429df120188c5633ac3bd6f4a3c5373 (patch)
treee05ceea94daaa9da0075c8c2beb76a1e5eb484b1 /test/fixtures/packages
parent45c0faf39966250095750a2eb6173617b6da64eb (diff)
downloadandroid-node-v8-da2f4b2dc429df120188c5633ac3bd6f4a3c5373.tar.gz
android-node-v8-da2f4b2dc429df120188c5633ac3bd6f4a3c5373.tar.bz2
android-node-v8-da2f4b2dc429df120188c5633ac3bd6f4a3c5373.zip
support for package.json
This adds basic support for situations where there is a package.json with a "main" field. That "main" module is used as the code that is loaded when the package folder is required.
Diffstat (limited to 'test/fixtures/packages')
-rw-r--r--test/fixtures/packages/main/package-main-module.js1
-rw-r--r--test/fixtures/packages/main/package.json3
2 files changed, 4 insertions, 0 deletions
diff --git a/test/fixtures/packages/main/package-main-module.js b/test/fixtures/packages/main/package-main-module.js
new file mode 100644
index 0000000000..a9fe79564c
--- /dev/null
+++ b/test/fixtures/packages/main/package-main-module.js
@@ -0,0 +1 @@
+exports.ok = "ok"
diff --git a/test/fixtures/packages/main/package.json b/test/fixtures/packages/main/package.json
new file mode 100644
index 0000000000..13a7d58042
--- /dev/null
+++ b/test/fixtures/packages/main/package.json
@@ -0,0 +1,3 @@
+{"name":"package-name"
+,"version":"1.2.3"
+,"main":"package-main-module"}