Skip to content

Commit 9732e51

Browse files
authored
prefetch-yarn-deps: fix resolving of local packages using file: (#387313)
2 parents edbc7b2 + 2bcc3b9 commit 9732e51

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • pkgs/build-support/node/fetch-yarn-deps

pkgs/build-support/node/fetch-yarn-deps/common.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ const path = require('path')
55
const urlToName = url => {
66
const isCodeloadGitTarballUrl = url.startsWith('https://codeload.github.com/') && url.includes('/tar.gz/')
77

8-
if (url.startsWith('git+') || isCodeloadGitTarballUrl) {
8+
if (url.startsWith('file:')) {
9+
return url
10+
} else if (url.startsWith('git+') || isCodeloadGitTarballUrl) {
911
return path.basename(url)
1012
} else {
1113
return url

0 commit comments

Comments
 (0)