File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
apps/cli/src/services/commands Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -53,18 +53,9 @@ class Add extends Effect.Service<Add>()("Add", {
53
53
? "http://localhost:3000/local/r/new-york"
54
54
: "https://reactnativereusables.com/r/new-york"
55
55
56
- const manifestComponentsSet = new Set (
57
- PROJECT_MANIFEST . components . map ( ( component ) => component . toLocaleLowerCase ( ) )
58
- )
59
-
60
56
const componentUrls = components . map ( ( component ) => {
61
57
const lowerCaseComponent = component . toLocaleLowerCase ( )
62
-
63
- if ( manifestComponentsSet . has ( lowerCaseComponent ) ) {
64
- return `${ baseUrl } /${ lowerCaseComponent } .json`
65
- }
66
-
67
- return component
58
+ return lowerCaseComponent . startsWith ( "http" ) ? lowerCaseComponent : `${ baseUrl } /${ lowerCaseComponent } .json`
68
59
} )
69
60
70
61
const shadcnOptions = toShadcnOptions ( options )
You can’t perform that action at this time.
0 commit comments