diff options
| author | Ed Robinson <ed.robinson@reevoo.com> | 2017-02-01 05:08:47 +0000 |
|---|---|---|
| committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-02-03 04:45:18 +0100 |
| commit | 9c79c7ca9405f899921912bdbeb8df15c9859cb3 (patch) | |
| tree | 85f8e664eddec35a72f5236b48dd007440f495b8 /testing/yarn/remove-support-for-legacy-nodejs.patch | |
| parent | a3a3a8927ba317b9b7a24afdf01be25f32cd049f (diff) | |
| download | aports-9c79c7ca9405f899921912bdbeb8df15c9859cb3.tar.bz2 aports-9c79c7ca9405f899921912bdbeb8df15c9859cb3.tar.xz | |
testing/yarn: remove support for legacy nodejs
There is no need to include these files that support nodejs 4 as
such an old version is not packaged by alpine.
Diffstat (limited to 'testing/yarn/remove-support-for-legacy-nodejs.patch')
| -rw-r--r-- | testing/yarn/remove-support-for-legacy-nodejs.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/yarn/remove-support-for-legacy-nodejs.patch b/testing/yarn/remove-support-for-legacy-nodejs.patch new file mode 100644 index 0000000000..dbb7d9d71d --- /dev/null +++ b/testing/yarn/remove-support-for-legacy-nodejs.patch @@ -0,0 +1,23 @@ +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; + if (semver.satisfies(ver, '>=5.0.0')) { + possibles.push('../updates/current/lib/cli/index.js'); + possibles.push('../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'); + } 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); + } + + // ensure cache directory exists + var mkdirp = require('mkdirp'); +-var constants = require('../lib-legacy/constants'); ++var constants = require('../lib/constants'); + mkdirp.sync(constants.MODULE_CACHE_DIRECTORY); + + // init roadrunner |
