diff --git a/packages/kbn-generate/src/commands/package_command.ts b/packages/kbn-generate/src/commands/package_command.ts index ecfd2eb5f3d21..4d09ab45c9728 100644 --- a/packages/kbn-generate/src/commands/package_command.ts +++ b/packages/kbn-generate/src/commands/package_command.ts @@ -68,7 +68,6 @@ ${BAZEL_PACKAGE_DIRS.map((dir) => ` ./${dir}/*\n`).join throw createFlagError(`package id must start with @kbn/ and have no spaces`); } - const typePkgName = `@types/${pkgId.slice(1).replace('/', '__')}`; const web = !!flags.web; const dev = !!flags.dev; @@ -184,12 +183,6 @@ ${BAZEL_PACKAGE_DIRS.map((dir) => ` ./${dir}/*\n`).join addDeps[pkgId] = `link:bazel-bin/${normalizedRepoRelativeDir}`; delete removeDeps[pkgId]; - // for @types packages always remove from deps and add to devDeps - packageJson.devDependencies[ - typePkgName - ] = `link:bazel-bin/${normalizedRepoRelativeDir}/npm_module_types`; - delete packageJson.dependencies[typePkgName]; - await Fsp.writeFile(packageJsonPath, sortPackageJson(JSON.stringify(packageJson))); log.info('Updated package.json file');