mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
* Switch to Yarn (#15485) * switch to yarn * cleanup misc references to npm * [yarn] loosen dependency ranges so yarn will merge more deps * fix linting error now that moment uses ESM * [licenses] font-awesome changed the format of its license id * Use local yarn * Misc fixes * eslintignore built yarn file * Remove mkdir which doesn't do what it should do * Check build without upgrading lots of versions * Fix license check * too many moments * Better description * Review fixes * Lock to angular@1.6.5 * More specific version locks * Revert "More specific version locks" This reverts commit11ef81102e
. * Revert "Lock to angular@1.6.5" This reverts commit3ade68c14c
. * rm yarn.lock; yarn * Forcing a specific version of React, Angular, Moment * Using vendored version of yarn in ci * Use --frozen-lockfile * fixes * Update lockfile
13 lines
584 B
JavaScript
13 lines
584 B
JavaScript
import { exec } 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
|
|
// https://github.com/yarnpkg/yarn/pull/5059. Once this fix is merged
|
|
// and released we can use Yarn directly in the build.
|
|
const yarn = require.resolve('../vendor/yarn-1.3.2-with-ignore-fix.js');
|
|
|
|
exec(`${yarn} --production --ignore-optional --frozen-lockfile`, {
|
|
cwd: grunt.config.process('<%= root %>/build/kibana')
|
|
}, this.async());
|
|
});
|
|
};
|