Skip to content

Commit

Permalink
fix: remove generateThemeIndexPluginsContent
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurTriis1 committed Jan 22, 2025
1 parent a0fbd79 commit 721cebc
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions packages/cli/src/utils/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,27 +267,6 @@ export async function addPluginsOverrides(basePath: string, plugins: Plugin[]) {
})
}

export const generateThemeIndexPluginsContent = async (
basePath: string,
...customImports: string[]
) => {
const { getPackagePath } = withBasePath(basePath)

const plugins = await getPluginsList(basePath)

const pluginImports = plugins
.filter((plugin) =>
existsSync(
getPackagePath(getPluginName(plugin), 'src', 'themes', 'index.scss')
)
)
.map(
(plugin) => `@import "${getPluginName(plugin)}/src/themes/index.scss";`
)

return [...pluginImports, ...customImports].join('\n')
}

const addPluginsTheme = async (basePath: string, plugins: Plugin[]) => {
const { getPackagePath, tmpThemesPluginsFile } = withBasePath(basePath)

Expand Down

0 comments on commit 721cebc

Please sign in to comment.