refactor(cli): update shared module and import paths in config
The change includes an update to config.ts in CLI. The configuration paths for the shared module changed from 'shared' to 'lib'. Also, the import paths adjusted to reflect the path changes from 'shared' to 'lib'.
This commit is contained in:
parent
556556251f
commit
fcc35223d3
@ -34,7 +34,7 @@ export async function loadConfig(config?: string): Promise<unknown> {
|
|||||||
export async function validateConfig(log: (message: string) => void, config?: unknown): Promise<ResolvedConfig> {
|
export async function validateConfig(log: (message: string) => void, config?: unknown): Promise<ResolvedConfig> {
|
||||||
const parsedConfig: ResolvedConfig = await configZod.parseAsync(config)
|
const parsedConfig: ResolvedConfig = await configZod.parseAsync(config)
|
||||||
log(colorize('gray', `Install component to: ${join(process.cwd(), parsedConfig.paths.components)}`))
|
log(colorize('gray', `Install component to: ${join(process.cwd(), parsedConfig.paths.components)}`))
|
||||||
log(colorize('gray', `Install shared module to: ${join(process.cwd(), parsedConfig.paths.shared)}`))
|
log(colorize('gray', `Install shared module to: ${join(process.cwd(), parsedConfig.paths.lib)}`))
|
||||||
log(colorize('gray', `Import shared with: ${parsedConfig.import.shared}`))
|
log(colorize('gray', `Import shared with: ${parsedConfig.import.lib}`))
|
||||||
return parsedConfig
|
return parsedConfig
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user