diff --git a/scripts/compile-scss.js b/scripts/compile-scss.js index ef36b3386a..11510a7b0e 100755 --- a/scripts/compile-scss.js +++ b/scripts/compile-scss.js @@ -82,9 +82,9 @@ async function compileScssFiles( const { name } = path.parse(inputFilename); const outputFilenames = await compileScssFile( inputFilename, - path.join(destinationDirectory, `eui_${name.replace('next', 'amsterdam')}.css`), - path.join(destinationDirectory, `eui_${name.replace('next', 'amsterdam')}.json`), - path.join(destinationDirectory, `eui_${name.replace('next', 'amsterdam')}.json.d.ts`), + path.join(destinationDirectory, `eui_${name}.css`), + path.join(destinationDirectory, `eui_${name}.json`), + path.join(destinationDirectory, `eui_${name}.json.d.ts`), packageName, true ); diff --git a/scripts/postinstall.js b/scripts/postinstall.js index e5f4a2bf5b..9ca68e3177 100644 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -26,7 +26,7 @@ const { INIT_CWD, PWD = process.cwd() } = process.env; if (!INIT_CWD?.startsWith?.(PWD)) { // Clean up and recreate the folders fs.rmSync('src/themes/eui', { recursive: true, force: true }); - fs.rmSync('src/themes/eui-amsterdam', { recursive: true, force: true }); + fs.rmSync('src/themes/eui-next', { recursive: true, force: true }); const copyDirectory = (src, dest) => { fs.mkdirSync(dest, { recursive: true }); @@ -35,8 +35,7 @@ if (!INIT_CWD?.startsWith?.(PWD)) { const srcItem = path.join(src, entry.name); const destItem = path .join(dest, entry.name) - .replace('oui', 'eui') - .replace('next', 'amsterdam'); + .replace('oui', 'eui'); if (entry.isDirectory()) copyDirectory(srcItem, destItem); else fs.copyFileSync(srcItem, destItem); @@ -44,6 +43,6 @@ if (!INIT_CWD?.startsWith?.(PWD)) { }; copyDirectory('src/themes/oui', 'src/themes/eui'); - copyDirectory('src/themes/oui-next', 'src/themes/eui-amsterdam'); + copyDirectory('src/themes/oui-next', 'src/themes/eui-next'); } /* End of Aliases */