mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Merge pull request elastic/kibana-plugin-helpers#9 from meganwalker-ibm/master
Correctly bundle dependencies if there is only one Original commit: elastic/kibana-plugin-helpers@32102acb56
This commit is contained in:
commit
b450b38f87
1 changed files with 7 additions and 2 deletions
|
@ -11,10 +11,15 @@ module.exports = function (plugin) {
|
|||
var files = [
|
||||
'package.json',
|
||||
'index.js',
|
||||
'{lib,public,server,webpackShims}/**/*',
|
||||
`node_modules/{${ deps.join(',') }}/**/*`,
|
||||
'{lib,public,server,webpackShims}/**/*'
|
||||
];
|
||||
|
||||
if (deps.length === 1) {
|
||||
files.push(`node_modules/${ deps[0] }/**/*`);
|
||||
} else {
|
||||
files.push(`node_modules/{${ deps.join(',') }}/**/*`);
|
||||
}
|
||||
|
||||
vfs
|
||||
.src(files, { base: plugin.root })
|
||||
.pipe(rename(function nestFileInDir(path) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue