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 239b89b commit 697be1eCopy full SHA for 697be1e
lib/packExternalModules.js
@@ -20,7 +20,7 @@ function addModulesToPackageJson(externalModules, packageJson, pathToPackageRoot
20
}
21
let moduleVersion = _.join(_.tail(splitModule), '@');
22
// We have to rebase file references to the target package.json
23
- if (_.startsWith(moduleVersion, 'file:')) {
+ if (/^file:[^/]{2}/.test(moduleVersion)) {
24
const filePath = _.replace(moduleVersion, /^file:/, '');
25
moduleVersion = _.replace(`file:${pathToPackageRoot}/${filePath}`, /\\/g, '/');
26
0 commit comments