diff --git a/frontend/packages/console-dynamic-plugin-sdk/package.json b/frontend/packages/console-dynamic-plugin-sdk/package.json index b7affbc7cdb..72b61fa675b 100644 --- a/frontend/packages/console-dynamic-plugin-sdk/package.json +++ b/frontend/packages/console-dynamic-plugin-sdk/package.json @@ -23,6 +23,7 @@ "ejs": "3.x", "fs-extra": "9.x", "ts-json-schema-generator": "0.98.0", - "tsutils": "3.21.0" + "tsutils": "3.21.0", + "webpack": "^5.75.0" } } diff --git a/frontend/packages/console-dynamic-plugin-sdk/scripts/package-definitions.ts b/frontend/packages/console-dynamic-plugin-sdk/scripts/package-definitions.ts index 44786560b2c..dd9c675f8b5 100644 --- a/frontend/packages/console-dynamic-plugin-sdk/scripts/package-definitions.ts +++ b/frontend/packages/console-dynamic-plugin-sdk/scripts/package-definitions.ts @@ -157,10 +157,14 @@ export const getWebpackPackage: GetPackageDefinition = ( main: 'lib/lib-webpack.js', ...commonManifestFields, dependencies: { - ...parseDeps(sdkPackage, ['@openshift/dynamic-plugin-sdk-webpack'], missingDepCallback), + ...parseDeps( + sdkPackage, + ['@openshift/dynamic-plugin-sdk-webpack', 'webpack'], + missingDepCallback, + ), ...parseDeps( rootPackage, - ['ajv', 'chalk', 'comment-json', 'find-up', 'glob', 'read-pkg', 'semver', 'webpack'], + ['ajv', 'chalk', 'comment-json', 'find-up', 'glob', 'read-pkg', 'semver'], missingDepCallback, ), ...parseDepsAs(rootPackage, { 'lodash-es': 'lodash' }, missingDepCallback),