7 Commits

Author SHA1 Message Date
4d33e78454 fix: fix errors with biomejs 2024-06-29 22:33:52 +09:00
aa074d16c1 fix: add everything for eslint fix 2024-06-14 22:47:39 +09:00
fcc35223d3 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'.
2024-06-11 15:30:23 +09:00
bad0c4f84e feat(cli): colorize log messages
Imported the colorize method from '@oclif/core/ux' to add color to the log messages in the 'validateConfig' function within 'config.ts' for improved readability. The messages that detail installation paths and import shared details are now displayed in gray.
2024-06-07 20:38:24 +09:00
c5bf5c69b3 feat(cli): add support for different config file formats
Modified the 'loadConfig' method to support '.cjs' and '.mjs' config files. Also, a 'changeExtension' function is added to helpers/path.ts to manipulate file extensions. An error will be thrown if a specified user config file is not found. The application defaults to the default config file if no user config file is provided.
2024-06-07 00:33:52 +09:00
be28704cb1 feat(cli): add logging to config validation
The validateConfig function in the cli module has been updated to include logging. The logs show the locations where the component and shared module will be installed, as well as the import path for the shared module.
2024-06-07 00:11:12 +09:00
c59c80007a feat(cli): add configuration and path management functionality
This commit introduces configuration and path management functionality in the CLI by adding the helper functions to load and validate configuration. It also provides the logic to retrieve available components from a given registry. Additionally, it exposes these functionalities in public API.
2024-06-06 22:07:19 +09:00