mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
package.json main as indexed subdir
Closes GH-686.
This commit is contained in:
1 parent
aac5cbe025
commit
f8defa3e09
4 files changed
+8
-1
No files matched your search
@@ -0,0 +1 @@
|
||||
exports.ok = "ok"
|
||||
@@ -0,0 +1,3 @@
|
||||
{"name":"package-name"
|
||||
,"version":"1.2.3"
|
||||
,"main":"package-main-module"}
|
||||
@@ -70,6 +70,8 @@ assert.notEqual(threeFolder, three);
|
||||
common.debug('test package.json require() loading');
|
||||
assert.equal(require('../fixtures/packages/main').ok, 'ok',
|
||||
'Failed loading package');
|
||||
assert.equal(require('../fixtures/packages/main-index').ok, 'ok',
|
||||
'Failed loading package with index.js in main subdir');
|
||||
|
||||
common.debug('test cycles containing a .. path');
|
||||
var root = require('../fixtures/cycles/root'),
|
||||
|
||||
Reference in new issue
Block a user