Skip to content

Commit

Permalink
chore(NA): hard code @kbn/ui-framework in the create package json task (
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic authored Nov 3, 2020
1 parent fcb3db2 commit c4b7945
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/dev/build/tasks/package_json/find_used_dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,13 @@ export async function findUsedDependencies(listedPkgDependencies: any, baseDir:
// side code entries that were provided
const serverDependencies = await getDependencies(baseDir, serverEntries);

// List of hardcoded dependencies that we need and that are not discovered
// searching through code imports
// TODO: remove this once we get rid off @kbn/ui-framework
const hardCodedDependencies = ['@kbn/ui-framework'];

// Consider this as our whiteList for the modules we can't delete
const whiteListedModules = [...serverDependencies];
const whiteListedModules = [...serverDependencies, ...hardCodedDependencies];

const listedDependencies = Object.keys(listedPkgDependencies);
const filteredListedDependencies = listedDependencies.filter((entry) => {
Expand Down

0 comments on commit c4b7945

Please sign in to comment.