mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
* Clarify lockfile is used for resolution * Use 'execFile' instead of 'exec'
This commit is contained in:
parent
b8083c3b87
commit
6e393901cf
1 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
import { exec } from 'child_process';
|
||||
import { execFile } from 'child_process';
|
||||
module.exports = function (grunt) {
|
||||
grunt.registerTask('_build:installDependencies', function () {
|
||||
// We rely on a local version of Yarn that contains the bugfix from
|
||||
|
@ -9,8 +9,9 @@ module.exports = function (grunt) {
|
|||
// We're using `pure-lockfile` instead of `frozen-lockfile` because we
|
||||
// rewrite `link:` dependencies to `file:` dependencies earlier in the
|
||||
// build. This means the lockfile won't be consistent, so instead of
|
||||
// verifying it, we just skip writing a new lockfile.
|
||||
exec(`${yarn} --production --ignore-optional --pure-lockfile`, {
|
||||
// verifying it, we just skip writing a new lockfile. However, this does
|
||||
// still use the existing lockfile for dependency resolution.
|
||||
execFile(yarn, ['--production', '--ignore-optional', '--pure-lockfile'], {
|
||||
cwd: grunt.config.process('<%= root %>/build/kibana')
|
||||
}, this.async());
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue