Skip to content

Commit 09ed1bb

Browse files
kibanamachinejbudz
andauthored
[plugin-helpers] Fix dependency resolution (#104556) (#104721)
This builds on the changes introduced in #104512, fixing dependency resolution for the plugin-helpers CLI. Instead of building a plugin in isolation, this performs plugin discovery and filters the optimizer lisst down to the requested plugin. Testing 1) `cd examples/bfetch_explorer` 1) `node ../../scripts/plugin_helpers build --kibana-version=8.0.0-SNAPSHOT` Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
1 parent f8e3f48 commit 09ed1bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/kbn-plugin-helpers/src/tasks/optimize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export async function optimize({ log, plugin, sourceDir, buildDir }: BuildContex
3131
pluginPaths: [sourceDir],
3232
cache: false,
3333
dist: true,
34-
pluginScanDirs: [],
34+
filter: [plugin.manifest.id],
3535
});
3636

3737
const target = Path.resolve(sourceDir, 'target');

0 commit comments

Comments
 (0)