From 6cd88157dcac5e31a914bb1f4b0f4018ff49a19f Mon Sep 17 00:00:00 2001 From: Tiago Costa Date: Fri, 14 Jan 2022 19:33:56 +0000 Subject: [PATCH] chore(NA): solve imports --- packages/kbn-optimizer/src/worker/webpack.config.ts | 4 ++-- packages/kbn-storybook/src/lib/run_storybook_cli.ts | 2 +- .../server/core_app/bundle_routes/register_bundle_routes.ts | 2 +- .../server/rendering/bootstrap/get_js_dependency_paths.ts | 2 +- src/core/server/rendering/render_utils.ts | 2 +- x-pack/plugins/security/server/prompt_page.tsx | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/kbn-optimizer/src/worker/webpack.config.ts b/packages/kbn-optimizer/src/worker/webpack.config.ts index 58201152a2459..ad20a632880dc 100644 --- a/packages/kbn-optimizer/src/worker/webpack.config.ts +++ b/packages/kbn-optimizer/src/worker/webpack.config.ts @@ -15,8 +15,8 @@ import TerserPlugin from 'terser-webpack-plugin'; import webpackMerge from 'webpack-merge'; import { CleanWebpackPlugin } from 'clean-webpack-plugin'; import CompressionPlugin from 'compression-webpack-plugin'; -import UiSharedDepsNpm from '@kbn/ui-shared-deps-npm'; -import UiSharedDepsSrc from '@kbn/ui-shared-deps-src'; +import * as UiSharedDepsNpm from '@kbn/ui-shared-deps-npm'; +import * as UiSharedDepsSrc from '@kbn/ui-shared-deps-src'; import { Bundle, BundleRefs, WorkerConfig } from '../common'; import { BundleRefsPlugin } from './bundle_refs_plugin'; diff --git a/packages/kbn-storybook/src/lib/run_storybook_cli.ts b/packages/kbn-storybook/src/lib/run_storybook_cli.ts index 93197a1f2b318..fa0df75035812 100644 --- a/packages/kbn-storybook/src/lib/run_storybook_cli.ts +++ b/packages/kbn-storybook/src/lib/run_storybook_cli.ts @@ -11,7 +11,7 @@ import { logger } from '@storybook/node-logger'; import buildStandalone from '@storybook/react/standalone'; import { Flags, run } from '@kbn/dev-utils'; import UiSharedDepsNpm from '@kbn/ui-shared-deps-npm'; -import UiSharedDepsSrc from '@kbn/ui-shared-deps-src'; +import * as UiSharedDepsSrc from '@kbn/ui-shared-deps-src'; import * as constants from './constants'; // Convert the flags to a Storybook loglevel diff --git a/src/core/server/core_app/bundle_routes/register_bundle_routes.ts b/src/core/server/core_app/bundle_routes/register_bundle_routes.ts index 4fdf6da00e7ab..d27add39687f9 100644 --- a/src/core/server/core_app/bundle_routes/register_bundle_routes.ts +++ b/src/core/server/core_app/bundle_routes/register_bundle_routes.ts @@ -10,7 +10,7 @@ import { join } from 'path'; import { PackageInfo } from '@kbn/config'; import { fromRoot } from '@kbn/utils'; import UiSharedDepsNpm from '@kbn/ui-shared-deps-npm'; -import UiSharedDepsSrc from '@kbn/ui-shared-deps-src'; +import * as UiSharedDepsSrc from '@kbn/ui-shared-deps-src'; import { IRouter } from '../../http'; import { UiPlugins } from '../../plugins'; import { FileHashCache } from './file_hash_cache'; diff --git a/src/core/server/rendering/bootstrap/get_js_dependency_paths.ts b/src/core/server/rendering/bootstrap/get_js_dependency_paths.ts index 54a901964c3fb..b04c407e5a516 100644 --- a/src/core/server/rendering/bootstrap/get_js_dependency_paths.ts +++ b/src/core/server/rendering/bootstrap/get_js_dependency_paths.ts @@ -7,7 +7,7 @@ */ import UiSharedDepsNpm from '@kbn/ui-shared-deps-npm'; -import UiSharedDepsSrc from '@kbn/ui-shared-deps-src'; +import * as UiSharedDepsSrc from '@kbn/ui-shared-deps-src'; import type { PluginInfo } from './get_plugin_bundle_paths'; export const getJsDependencyPaths = ( diff --git a/src/core/server/rendering/render_utils.ts b/src/core/server/rendering/render_utils.ts index 65cedda7ad489..b24f5968e4ee9 100644 --- a/src/core/server/rendering/render_utils.ts +++ b/src/core/server/rendering/render_utils.ts @@ -7,7 +7,7 @@ */ import UiSharedDepsNpm from '@kbn/ui-shared-deps-npm'; -import UiSharedDepsSrc from '@kbn/ui-shared-deps-src'; +import * as UiSharedDepsSrc from '@kbn/ui-shared-deps-src'; import { PublicUiSettingsParams, UserProvidedValues } from '../ui_settings'; export const getSettingValue = ( diff --git a/x-pack/plugins/security/server/prompt_page.tsx b/x-pack/plugins/security/server/prompt_page.tsx index bcb2dcf810f30..b3052c6e8db63 100644 --- a/x-pack/plugins/security/server/prompt_page.tsx +++ b/x-pack/plugins/security/server/prompt_page.tsx @@ -19,7 +19,7 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; import { I18nProvider } from '@kbn/i18n-react'; import UiSharedDepsNpm from '@kbn/ui-shared-deps-npm'; -import UiSharedDepsSrc from '@kbn/ui-shared-deps-src'; +import * as UiSharedDepsSrc from '@kbn/ui-shared-deps-src'; import type { IBasePath } from 'src/core/server'; // eslint-disable-next-line @kbn/eslint/no-restricted-paths