diff options
author | isaacs <i@izs.me> | 2011-01-27 17:57:45 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-02-07 11:00:22 -0800 |
commit | da2f4b2dc429df120188c5633ac3bd6f4a3c5373 (patch) | |
tree | e05ceea94daaa9da0075c8c2beb76a1e5eb484b1 /test/fixtures/packages | |
parent | 45c0faf39966250095750a2eb6173617b6da64eb (diff) | |
download | android-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.js | 1 | ||||
-rw-r--r-- | test/fixtures/packages/main/package.json | 3 |
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"} |