prefetch-yarn-deps: ignore file: dependencies

This commit is contained in:
Yureka 2021-10-28 17:33:18 +02:00 committed by Raphael Megzari
parent 6c99b3d0b7
commit 1565ab9717

View File

@ -85,6 +85,8 @@ const downloadPkg = (pkg, verbose) => {
return downloadGit(fileName, url.replace(/^git\+/, ''), hash)
} else if (url.startsWith('git+')) {
return downloadGit(fileName, url.replace(/^git\+/, ''), hash)
} else if (url.startsWith('file:')) {
console.warn(`ignoring unsupported file:path url "${url}"`)
} else {
throw new Error('don\'t know how to download "' + url + '"')
}