We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a849c1 commit a322ec7Copy full SHA for a322ec7
node/internal/parse_yarn_lock.js
@@ -101,7 +101,7 @@ function printNodeModules(map) {
101
}
102
103
function parsePackageJson(entry) {
104
- const pkg = require(`./node_modules/${entry.name}/package`);
+ const pkg = require(`./node_modules/${entry.name}/package.json`);
105
if (Array.isArray(pkg.bin)) {
106
// should not happen: throw new Error('Hmm, I didn\'t realize pkg.bin could be an array.');
107
} else if (typeof pkg.bin === 'string') {
0 commit comments