This website works better with JavaScript.
Home
Explore
Help
Sign In
lukechilds
/
node
mirror of
https://github.com/lukechilds/node.git
Watch
1
Star
0
Fork
0
Code
Issues
Projects
Releases
Wiki
Activity
13048
Commits
131
Branches
446
Tags
325 MiB
Tree:
6d8eba0e5e
node
/
test
/
fixtures
/
json-with-directory-name-mo...
/
module-stub
/
index.js
2 lines
43 B
Raw
Normal View
History
module: test for directories, fix require with .. Given my home-directory is `/Users/rocko` - and I have a file named `npm.json` in it and also a repository with name `npm`, which is a folder for the node-module. When try to require the `/Users/rocko/npm/index.js` two direcotry levels down in the npm folder (e.g. `/Users/rocko/npm/test/tap`) with require("../../") node will load `/Users/rocko/npm/index.json`. When I use require("../..") node will load `/Users/rocko/npm.json` which is fixed by this commit. PR-URL: https://github.com/iojs/io.js/pull/58 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-by: Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
11 years ago
module
.
exports
=
"hello from module-stub!"