4 Commits

Author SHA1 Message Date
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
acca348e1e feat(cli): handle registry fetching errors
This commit adds error handling for fetching operations from the registry in the CLI 'list' command. Now, any failure in retrieving the registry results in a failed spinner with a clear descriptive message, thus making the failure more apparent to the user.
2024-06-07 00:11:01 +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