Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module: test for directories, fixes require with .. #58

Closed
wants to merge 1 commit into from
Closed

module: test for directories, fixes require with .. #58

wants to merge 1 commit into from

Commits on Dec 5, 2014

  1. module: test for directories, fixes 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.
    robertkowalski committed Dec 5, 2014
    Configuration menu
    Copy the full SHA
    cfc1272 View commit details
    Browse the repository at this point in the history