Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Running main, corrected build, checking for no dependencies (#15)
Browse files Browse the repository at this point in the history
* Updated if check if there are no dependencies

* Now running main()

* Build now uses the correct parameter.
  • Loading branch information
Kikketer authored and spalger committed Nov 17, 2016
1 parent 2e0e101 commit 7cf31d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks/build/build_action.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = function (plugin) {
}
}

function build(deps, kibanaVersion) {
function build(buildId, deps, kibanaVersion) {
var files = [
'package.json',
'index.js',
Expand All @@ -52,7 +52,7 @@ module.exports = function (plugin) {

if (deps.length === 1) {
files.push(`node_modules/${ deps[0] }/**/*`);
} else {
} else if(deps.length) {
files.push(`node_modules/{${ deps.join(',') }}/**/*`);
}

Expand Down Expand Up @@ -80,4 +80,6 @@ module.exports = function (plugin) {
.pipe(zip(`${buildId}.zip`))
.pipe(vfs.dest(join(plugin.root, 'build')));
}

main();
};

0 comments on commit 7cf31d2

Please sign in to comment.