Skip to content

Commit

Permalink
Add v8-compile-cache (#2749)
Browse files Browse the repository at this point in the history
  • Loading branch information
zertosh authored and bestander committed Feb 23, 2017
1 parent d853a96 commit b7ba346
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/yarn.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ if (semver.satisfies(ver, '>=5.0.0')) {
process.exit(1);
}

// load v8-compile-cache
if (semver.satisfies(ver, '>=5.7.0')) {
require('v8-compile-cache');
}

// ensure cache directory exists
var mkdirp = require('mkdirp');
var constants = require('../lib-legacy/constants');
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"strip-bom": "^3.0.0",
"tar": "^2.2.1",
"tar-stream": "^1.5.2",
"v8-compile-cache": "^1.0.0",
"validate-npm-package-license": "^3.0.1"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4533,6 +4533,10 @@ uuid@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1"

v8-compile-cache@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-1.0.0.tgz#56c809189daa8289a7d049354f61ab9c347f1fc2"

v8flags@^2.0.2:
version "2.0.11"
resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-2.0.11.tgz#bca8f30f0d6d60612cc2c00641e6962d42ae6881"
Expand Down

0 comments on commit b7ba346

Please sign in to comment.