@@ -10,15 +10,13 @@ import { logger } from "../logger.js";
1010const cmd = new Command ( "Install Jaculus libraries base on project's package.json" , {
1111 action : async ( options : Record < string , string | boolean > , args : Record < string , string > ) => {
1212 const libraryName = args [ "library" ] as string ;
13- const devRegistry = options [ "dev -registry" ] as string | undefined ;
13+ const userRegistry = options [ "user -registry" ] as string | undefined ;
1414 const projectPath = process . cwd ( ) ;
1515
1616 const pkg = await loadPackageJson ( fs , path . join ( projectPath , "package.json" ) ) ;
1717 const project = new Project ( fs , projectPath , logger ) ;
1818
19- console . log ( "Using registry:" , devRegistry ) ;
20-
21- const registry = new Registry ( pkg . jaculus ?. registry , uriRequest , logger , devRegistry ) ;
19+ const registry = new Registry ( pkg . jaculus ?. registry , uriRequest , logger , userRegistry ) ;
2220
2321 const { name, version } = splitLibraryNameVersion ( libraryName ) ;
2422 if ( name && version ) {
@@ -37,9 +35,12 @@ const cmd = new Command("Install Jaculus libraries base on project's package.jso
3735 ) ,
3836 ] ,
3937 options : {
40- "dev-registry" : new Opt ( `Force to use development registry (provided URI)` , {
41- required : false ,
42- } ) ,
38+ "user-registry" : new Opt (
39+ `Preferred registry URI. If a package exists in multiple registries, this one is used first.` ,
40+ {
41+ required : false ,
42+ }
43+ ) ,
4344 } ,
4445 chainable : true ,
4546} ) ;
0 commit comments