Skip to content

Require paths #6

Closed
Closed

Description

@probablycorey

When I run require.resolve 'package' from the renderer process I get this as the result /Applications/Atom.app/Contents/Resources/app/package.json I would expect it to return /Users/corey/github/atom/src/app/package.coffee

I don't see /Applications/Atom.app/Contents/Resources/app in process.env['NODE_PATH'] I see:

/Users/corey/github/atom/src/stdlib:/Users/corey/github/atom/src/app:/Users/corey/github/atom/src/packages:/Users/corey/github/atom/src:/Users/corey/github/atom/vendor:/Users/corey/github/atom/static:/Users/corey/github/atom/node_modules:/Users/corey/.atom/packages

Maybe this is unavoidable, if so it would be interesting for me to learn why.

Activity

  1. zcbenz commented on May 17, 2013

    @zcbenz
    Contributor

    I added Atom.app/Contents/Resources/app to node paths previously and thought it could help developers in some way, apparently I was wrong, it's removed now.

  2. added a commit that references this issue on Sep 29, 2015
  3. added a commit that references this issue on Mar 15, 2016
  4. added a commit that references this issue on Jun 26, 2016
  5. added a commit that references this issue on May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions