diff options
author | Ivan Tham <pickfire@riseup.net> | 2017-04-06 19:12:31 +0800 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-04-10 06:48:20 +0000 |
commit | 99bb40f2958866887d16fbf6cbaca9c50cf2d39f (patch) | |
tree | 04df48e0dfe62438b55166af4d431798846d9348 /community/yarn/remove-support-for-legacy-nodejs.patch | |
parent | f2db2fc02b687bb96e28a14c0a134a226f527703 (diff) | |
download | aports-99bb40f2958866887d16fbf6cbaca9c50cf2d39f.tar.bz2 aports-99bb40f2958866887d16fbf6cbaca9c50cf2d39f.tar.xz |
community/yarn: upgrade to 0.22
Diffstat (limited to 'community/yarn/remove-support-for-legacy-nodejs.patch')
-rw-r--r-- | community/yarn/remove-support-for-legacy-nodejs.patch | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/community/yarn/remove-support-for-legacy-nodejs.patch b/community/yarn/remove-support-for-legacy-nodejs.patch index dbb7d9d71d..f3c291ea6d 100644 --- a/community/yarn/remove-support-for-legacy-nodejs.patch +++ b/community/yarn/remove-support-for-legacy-nodejs.patch @@ -1,19 +1,19 @@ -diff -urp dist/bin/yarn.js patched/bin/yarn.js ---- dist/bin/yarn.js 2017-01-30 14:11:29.000000000 +0000 -+++ patched/bin/yarn.js 2017-02-01 02:41:32.000000000 +0000 -@@ -16,17 +16,14 @@ var _err; +--- dist/bin/yarn.js ++++ dist/bin/yarn.js +@@ -13,10 +13,8 @@ + if (semver.satisfies(ver, '>=5.0.0')) { - possibles.push('../updates/current/lib/cli/index.js'); - possibles.push('../lib/cli/index.js'); + path = '../lib/cli/index.js'; -} else if (semver.satisfies(ver, '>=4.0.0')) { -- possibles.push('../updates/current/lib-legacy/cli/index.js'); -- possibles.push('../lib-legacy/cli/index.js'); +- path = '../lib-legacy/cli/index.js'; } else { - console.log(require('chalk').red('Node version ' + ver + ' is not supported, please use Node.js 4.0 or higher.')); + console.log(require('chalk').red('Node version ' + ver + ' is not supported, please use Node.js 5.0 or higher.')); process.exit(1); } +@@ -27,7 +25,7 @@ + // ensure cache directory exists var mkdirp = require('mkdirp'); -var constants = require('../lib-legacy/constants'); |