11 Commits

Author SHA1 Message Date
217410a507 fix(cli): use checkComponentInstalled and getDirComponentRequiredFiles 2024-06-15 03:29:18 +09:00
1902b9606a refactor(cli): rename files to requiredFiles of component 2024-06-15 03:01:48 +09:00
d721aa290f fix(cli): check installed check with required files 2024-06-15 02:59:23 +09:00
66232b2b9a feat(cli): add command handles directory library & component installation 2024-06-15 02:33:30 +09:00
7d2453b4cf feat(cli): make getRegistry take custom branch 2024-06-15 01:45:00 +09:00
Shinwoo PARK
d8d61aceaa feat: add registry override flag 2024-06-13 19:43:24 +00:00
99773f11cc refactor(cli): simplify library installation process
Consolidated the process of installing the library in the "add" command. Simplified the path handling by using the dirname function. Also, the shared-file version dependent part has been removed. Library installation is now based on a singular registry url path instead of component specific versions.
2024-06-11 18:01:51 +09:00
8062f02a78 refactor(cli): update import statement in add command
The import statement in the add.tsx file of the CLI package has been updated to use the correct library name and version. This change ensures accurate reference to shared libraries, leading to better stability and interoperability.
2024-06-11 16:31:23 +09:00
556556251f feat(cli): refactor add command and improve module handling
Import additional helper methods in add.tsx. Remove forceShared flag as it could potentially break components. Instead of planning for a shared module, this commit plans for version-specific libraries, which exist in a separate lib folder. This ensures that the right version of the library required by the component is installed. Also, handle potential errors related to absence of lib version in the registry. Fixed component installation path.
2024-06-11 13:40:45 +09:00
0c79f86d80 refactor(cli): streamline component selection and overwrite process
Refactored the 'cli add' command to streamline the process of component selection and the decision to overwrite an already installed one. The task has been split into two separate interactive choices to enhance the user experience and simplify the codebase. The force option is now also evaluated separately which results in cleaner code.
2024-06-08 04:10:13 +09:00
ec9dfb9f40 feat(cli): migrate add command to react and implement search functionality
Renamed 'add.ts' to 'add.tsx' and converted it to a React component. This change includes implementing search functionality through installed components and handling the case if the component is already installed. Added search options and overwriting prompt in CLI interface.
2024-06-08 03:53:15 +09:00