This repository was archived by the owner on Sep 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @intentui/cli" ,
33 "type" : " module" ,
4- "version" : " 2.9.8-beta-2 " ,
4+ "version" : " 2.9.8-beta-3 " ,
55 "description" : " The command line interface for Intent UI." ,
66 "main" : " dist/index.js" ,
77 "bin" : {
Original file line number Diff line number Diff line change @@ -37,8 +37,15 @@ export const addCommand = Command.make(
3737
3838 const componentPaths = yield * pipe (
3939 Effect . forEach ( componentNames , ( name ) =>
40- Effect . succeed ( `${ REGISTRY_URL } /r/${ type } -${ name } .json` ) ,
40+ Effect . succeed (
41+ name . startsWith ( "http" )
42+ ? name
43+ : name . startsWith ( "-" )
44+ ? null
45+ : `${ REGISTRY_URL } /r/${ type } -${ name } .json`
46+ ) ,
4147 ) ,
48+ Effect . map ( ( list ) => list . filter ( ( url ) : url is string => url !== null ) )
4249 )
4350
4451 if ( ! allComponents && componentPaths . length === 0 ) {
@@ -59,12 +66,14 @@ export const addCommand = Command.make(
5966 componentPaths . push ( ...components )
6067 }
6168
62- const args = [ "add" , ... componentPaths ]
69+ const args = [ "add" ]
6370
6471 if ( overwrite ) {
6572 args . push ( "--overwrite" )
6673 }
6774
75+ args . push ( ...componentPaths )
76+
6877 return yield * pipe (
6978 RawCommand . make ( "shadcnClone" , ...args ) . pipe (
7079 RawCommand . stdin ( "inherit" ) ,
You can’t perform that action at this time.
0 commit comments