diff options
author | Yureka <yuka@yuka.dev> | 2021-10-28 17:33:18 +0200 |
---|---|---|
committer | Raphael Megzari <raphael@megzari.com> | 2021-10-29 02:43:42 +0900 |
commit | 1565ab9717d8be76765c1995720ecb160b1541e3 (patch) | |
tree | c3cbcafba07361af7ccb32bbc72b323c74abc4a3 /pkgs/build-support | |
parent | 6c99b3d0b746e132fe6173e6dadc89fcc16f4d36 (diff) |
prefetch-yarn-deps: ignore file: dependencies
Diffstat (limited to 'pkgs/build-support')
-rwxr-xr-x | pkgs/build-support/node/fetch-yarn-deps/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/build-support/node/fetch-yarn-deps/index.js b/pkgs/build-support/node/fetch-yarn-deps/index.js index 81cf416c941a8..e728ad89e1c4f 100755 --- a/pkgs/build-support/node/fetch-yarn-deps/index.js +++ b/pkgs/build-support/node/fetch-yarn-deps/index.js @@ -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 + '"') } |