File tree 1 file changed +6
-2
lines changed
packages/js/src/plugins/jest
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -49,24 +49,28 @@ export function startLocalRegistry({
49
49
) ;
50
50
51
51
const registry = `http://${ listenAddress } :${ port } ` ;
52
+ const authToken = 'secretVerdaccioToken' ;
52
53
53
54
console . log ( `Local registry started on ${ registry } ` ) ;
54
55
55
56
process . env . npm_config_registry = registry ;
56
57
execSync (
57
- `npm config set //${ listenAddress } :${ port } /:_authToken "secretVerdaccioToken " --ws=false` ,
58
+ `npm config set //${ listenAddress } :${ port } /:_authToken "${ authToken } " --ws=false` ,
58
59
{
59
60
windowsHide : false ,
60
61
}
61
62
) ;
62
63
64
+ // bun
65
+ process . env . BUN_CONFIG_REGISTRY = registry ;
66
+ process . env . BUN_CONFIG_TOKEN = authToken ;
63
67
// yarnv1
64
68
process . env . YARN_REGISTRY = registry ;
65
69
// yarnv2
66
70
process . env . YARN_NPM_REGISTRY_SERVER = registry ;
67
71
process . env . YARN_UNSAFE_HTTP_WHITELIST = listenAddress ;
68
72
69
- console . log ( 'Set npm and yarn config registry to ' + registry ) ;
73
+ console . log ( 'Set npm, bun, and yarn config registry to ' + registry ) ;
70
74
71
75
resolve ( ( ) => {
72
76
childProcess . kill ( ) ;
You can’t perform that action at this time.
0 commit comments