File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -68,31 +68,31 @@ export async function createNpmConfigForAuthentication(
6868 invalidToken = false ,
6969) : Promise < void > {
7070 const token = invalidToken ? `invalid=` : VALID_TOKEN ;
71- const registry = ( getGlobalVariable ( 'package-secure-registry' ) as string ) . replace ( / ^ \w + : / , '' ) ;
71+ const registry = getGlobalVariable ( 'package-secure-registry' ) as string ;
7272
7373 await writeFile (
7474 '.npmrc' ,
7575 scopedAuthentication
7676 ? `
77- ${ registry } /:_auth="${ token } "
78- registry=http: ${ registry }
77+ // ${ registry } /:_auth="${ token } "
78+ registry=${ registry }
7979`
8080 : `
8181_auth="${ token } "
82- registry=http: ${ registry }
82+ registry=${ registry }
8383` ,
8484 ) ;
8585
8686 await writeFile (
8787 '.yarnrc' ,
8888 scopedAuthentication
8989 ? `
90- ${ registry } /:_auth "${ token } "
91- registry http: ${ registry }
90+ // ${ registry } /:_auth "${ token } "
91+ registry ${ registry }
9292`
9393 : `
9494_auth "${ token } "
95- registry http: ${ registry }
95+ registry ${ registry }
9696` ,
9797 ) ;
9898}
You can’t perform that action at this time.
0 commit comments