Rename of module to path that shadows directory, breaks require
Open
@medikoo is already working on this.
Since Feb 1, 2016.
bug
- Dominant language
- JavaScript
- Stars
- 3
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Imagine we have directory structure:
foo/
foo/index.js
bar.js
some-module.js
Assume some-module.js contains require('./foo') call
If we rename bar.js to foo.js with movejs, it wouldn't update require in some-module.js, therefore module will get broken.
In such scenario require path within some-module.js should be changed to ./foo/
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.