diff --git a/scripts/compile-oui.js b/scripts/compile-oui.js index 1746eb6ee2..96b9a02ed6 100755 --- a/scripts/compile-oui.js +++ b/scripts/compile-oui.js @@ -308,55 +308,6 @@ function compileBundle() { } }); console.log(chalk.green('✔ Finished test utils files')); - - console.log('Building chart theme module...'); - execSync( - 'webpack src/themes/charts/themes.ts -o dist/oui_charts_theme.js --output-library-target="commonjs" --config=src/webpack.config.js', - { - stdio: 'inherit', - } - ); - dtsGenerator({ - prefix: '', - out: 'dist/oui_charts_theme.d.ts', - baseDir: path.resolve(__dirname, '..', 'src/themes/charts/'), - files: ['themes.ts'], - resolveModuleId() { - return '@opensearch-project/oui/dist/oui_charts_theme'; - }, - resolveModuleImport(params) { - if (params.importedModuleId === '../../components/common') { - return '@opensearch-project/oui/src/components/common'; - } - return null; - } - }); - - /* OUI -> EUI Aliases */ - execSync( - 'webpack src/themes/charts/themes.ts -o dist/eui_charts_theme.js --output-library-target="commonjs" --config=src/webpack.config.js', - { - stdio: 'inherit', - } - ); - dtsGenerator({ - prefix: '', - out: 'dist/eui_charts_theme.d.ts', - baseDir: path.resolve(__dirname, '..', 'src/themes/charts/'), - files: ['themes.ts'], - resolveModuleId() { - return '@elastic/eui/dist/eui_charts_theme'; - }, - resolveModuleImport(params) { - if (params.importedModuleId === '../../components/common') { - return '@elastic/eui/src/components/common'; - } - return null; - } - }); - /* End of Aliases */ - - console.log(chalk.green('✔ Finished chart theme module')); } /* OUI -> EUI Aliases */ diff --git a/scripts/dtsgenerator.js b/scripts/dtsgenerator.js index 399ff749ee..c31976a46b 100644 --- a/scripts/dtsgenerator.js +++ b/scripts/dtsgenerator.js @@ -46,7 +46,6 @@ const generator = dtsGenerator({ '**/*.test.tsx', '**/*.testenv.ts', '**/*.testenv.tsx', - 'src/themes/charts/*', // A separate d.ts file is generated for the charts theme file 'src/test/*', // A separate d.ts file is generated for test utils 'src-docs/**/*', // Don't include src-docs ], diff --git a/src-docs/src/theme_cascadia_dark.scss b/src-docs/src/theme_cascadia_dark.scss index 4ade42cd98..e627c40573 100644 --- a/src-docs/src/theme_cascadia_dark.scss +++ b/src-docs/src/theme_cascadia_dark.scss @@ -19,4 +19,3 @@ // Elastic charts @import '~@elastic/charts/dist/theme'; -@import '../../src/themes/charts/theme'; diff --git a/src-docs/src/theme_cascadia_light.scss b/src-docs/src/theme_cascadia_light.scss index fbe33f98da..152856f99f 100644 --- a/src-docs/src/theme_cascadia_light.scss +++ b/src-docs/src/theme_cascadia_light.scss @@ -19,4 +19,3 @@ // Elastic charts @import '~@elastic/charts/dist/theme'; -@import '../../src/themes/charts/theme'; diff --git a/src-docs/src/theme_dark.scss b/src-docs/src/theme_dark.scss index 0cfed9c329..44296a9d92 100644 --- a/src-docs/src/theme_dark.scss +++ b/src-docs/src/theme_dark.scss @@ -20,4 +20,3 @@ // Elastic charts @import '~@elastic/charts/dist/theme'; -@import '../../src/themes/charts/theme'; diff --git a/src-docs/src/theme_light.scss b/src-docs/src/theme_light.scss index b88c094394..f32f76dc86 100644 --- a/src-docs/src/theme_light.scss +++ b/src-docs/src/theme_light.scss @@ -20,4 +20,3 @@ // Elastic charts @import '~@elastic/charts/dist/theme'; -@import '../../src/themes/charts/theme';