mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Use grunt root path when collecting git files
No reason to reinvent the wheel here. We already determine the root path of the project in our grunt config, so we just use that instead. Fixes #5781
This commit is contained in:
parent
db2be0f411
commit
fa5aabb4b9
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
|||
import filesToCommit from './utils/files_to_commit';
|
||||
import { resolve } from 'path';
|
||||
|
||||
const root = resolve(__dirname, '..');
|
||||
|
||||
export default function registerCollectFilesToCommit(grunt) {
|
||||
const root = grunt.config.get('root');
|
||||
|
||||
grunt.registerTask('collectFilesToCommit', function () {
|
||||
filesToCommit(root)
|
||||
.then(files => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue