resolve
resolve copied to clipboard
Implements the node.js require.resolve() algorithm
As mentioned in https://github.com/yarnpkg/berry/pull/1359#issuecomment-636708638 we (yarn 2) are looking to contribute `exports` support into `resolve`. The idea is to replace parts of our own node resolution implementation inside the PnP...
(Sorta surprised no-one has opened an issue about this, sorry if one exists and my searching is just bad (there is sorta #151, but this issue is about native promise...
This issue encompasses anything that deals with "what the default extensions are/should be". - #19 points out that `.json` is not included in the defaults. - #137 points out that...
This is a reminder that [package self-referencing](https://nodejs.org/api/packages.html#self-referencing-a-package-using-its-name) is not supported at this time. **package.json** ```json { "name": "my-package", "main": "./index.js", "dependencies": { "resolve": "*" }, "exports": { ".": "./index.js" }...
Work in progress, but a spike to start going in that direction. TODO: - [ ] there's a bunch of lint failures, but most of them look like they're not...
Hi, Ive noticed an issue that arises when using this package alongside `npm link` or `yarn link` - when resolving from a linked dependency's directory as `basedir`, this package will...