kibana/tasks/build/remove_pkg_json_deps.js
Kim Joar Bekkelund a817517574
[6.x] Switch to Yarn (#15485) (#15955)
* 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 commit 11ef81102e.

* Revert "Lock to angular@1.6.5"

This reverts commit 3ade68c14c.

* 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
2018-01-10 16:54:20 +01:00

14 lines
357 B
JavaScript

module.exports = function (grunt) {
grunt.registerTask('_build:removePkgJsonDeps', function () {
const pkg = grunt.file.readJSON('build/kibana/package.json');
delete pkg.dependencies;
grunt.file.write(
'build/kibana/package.json',
JSON.stringify(pkg, null, ' ')
);
grunt.file.delete('build/kibana/yarn.lock');
});
};