rollup/rollup-plugin-node-resolve

Uses wrong package.json for '/full/path/to/my/packageDir'

nolanlawson opened this issue · 2 comments

.
└── foo
    ├── bar
    │   ├── index.js
    │   └── package.json
    ├── index.js
    └── package.json

If you do:

import pkg from '/full/path/to/foo/bar';

then this module will improperly use foo/package.json (e.g. to check for "main" and "jsnext:main") instead of bar/package.json.

I'm having trouble reproducing this in the test suite (branch in progress). Either it's fixed in master, or I haven't quite reproduced it yet. I'll keep digging.

I'm going to close this until I have time to actually write a reproducible test case.