@@ -4,17 +4,20 @@ import { uriRequest } from "../util.js";
44import path from "path" ;
55import { loadPackageJson , splitLibraryNameVersion } from "@jaculus/project/package" ;
66import { Project } from "@jaculus/project" ;
7- import { DevRegistryUrl , Registry } from "@jaculus/project/registry" ;
7+ import { Registry } from "@jaculus/project/registry" ;
88import { logger } from "../logger.js" ;
99
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 boolean ;
13+ const devRegistry = options [ "dev-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 ) ;
18+
19+ console . log ( "Using registry:" , devRegistry ) ;
20+
1821 const registry = new Registry ( pkg . jaculus ?. registry , uriRequest , logger , devRegistry ) ;
1922
2023 const { name, version } = splitLibraryNameVersion ( libraryName ) ;
@@ -34,8 +37,8 @@ const cmd = new Command("Install Jaculus libraries base on project's package.jso
3437 ) ,
3538 ] ,
3639 options : {
37- "dev-registry" : new Opt ( `Try to use ${ DevRegistryUrl } for library installation ` , {
38- isFlag : true ,
40+ "dev-registry" : new Opt ( `Force to use development registry (provided URI) ` , {
41+ required : false ,
3942 } ) ,
4043 } ,
4144 chainable : true ,
0 commit comments