yarn: update to 1.10.0

This commit is contained in:
Michael Aldridge 2018-09-18 15:38:03 -07:00
parent d7426a7a8b
commit add722a5c8
2 changed files with 21 additions and 12 deletions

View file

@ -1,11 +1,20 @@
--- bin/yarn.js.orig 2017-09-14 18:50:29.701379167 -0500 --- bin/yarn.js.orig 2018-09-18 14:33:30.318123244 -0700
+++ bin/yarn.js 2017-09-14 17:27:32.749746288 -0500 +++ bin/yarn.js 2018-09-18 14:35:10.715515522 -0700
@@ -11,7 +11,7 @@ @@ -12,7 +12,7 @@
console.error('Node version ' + ver + ' is not supported, please use Node.js 4.0 or higher.'); process.exit(1); // eslint-disable-line no-process-exit
process.exitCode = 1;
} else { } else {
- var dirPath = '../lib/'; try {
+ var dirPath = '/usr/lib/yarn/'; - require(__dirname + '/../lib/v8-compile-cache.js');
var v8CompileCachePath = dirPath + 'v8-compile-cache'; + require('/usr/lib/yarn/v8-compile-cache.js');
var fs = require('fs'); } catch (err) {
// We don't have/need this on legacy builds and dev builds // We don't have/need this on legacy builds and dev builds
}
@@ -21,7 +21,7 @@
// `require.main === module` check inside `cli/index.js` will always
// be truthy when built with webpack :(
// `lib/cli` may be `lib/cli/index.js` or `lib/cli.js` depending on the build.
- var cli = require(__dirname + '/../lib/cli');
+ var cli = require('/usr/lib/yarn/cli');
if (!cli.autoRun) {
cli.default().catch(function(error) {
console.error(error.stack || error.message || error);

View file

@ -1,6 +1,6 @@
# Template file for 'yarn' # Template file for 'yarn'
pkgname=yarn pkgname=yarn
version=1.9.4 version=1.10.0
revision=1 revision=1
hostmakedepends="yarn-bin nodejs" hostmakedepends="yarn-bin nodejs"
depends="virtual?nodejs-runtime" depends="virtual?nodejs-runtime"
@ -10,7 +10,7 @@ license="2-cause-BSD"
homepage="https://yarnpkg.com/" homepage="https://yarnpkg.com/"
distfiles="https://github.com/yarnpkg/${pkgname}/archive/v${version}.tar.gz" distfiles="https://github.com/yarnpkg/${pkgname}/archive/v${version}.tar.gz"
conflicts="yarn-bin>=0" conflicts="yarn-bin>=0"
checksum=6af347a6f9d6673700f69cb4c824a51dfc6c9deaae17a9a0ab1f709cf2afa8bc checksum=0d1410ea60666c52de4814f281c8c1f3ea2d98c236c22cb854f3e7ad8e7dc8c6
pre_build() { pre_build() {
yarn yarn