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 fa90b60 commit b0d8875Copy full SHA for b0d8875
1 file changed
lib/tools/node-modules/node-modules-dependencies-builder.ts
@@ -95,7 +95,7 @@ export class NodeModulesDependenciesBuilder
95
.resolve(`${depDescription.name}/package.json`, {
96
paths: [parentModulesPath],
97
})
98
- .replace("package.json", "");
+ .replace(/[\\/]+package\.json$/, "");
99
100
// if we already resolved this dependency, we return null to avoid a duplicate resolution
101
if (
0 commit comments