mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-15 05:02:24 +08:00
e2e: update command used to set registry to work with NPM and Yarn 1
There is no need to make it works with Yarn 2 as it now comes later in the process.
This commit is contained in:
parent
8ac0be88b2
commit
70cefbaa53
@ -58,9 +58,7 @@ const startVerdaccio = (port: number) => {
|
||||
};
|
||||
const registryUrl = (command: string, url?: string) =>
|
||||
new Promise<string>((res, rej) => {
|
||||
const args = url
|
||||
? ['config', 'set', 'npmRegistryServer', url]
|
||||
: ['config', 'get', 'npmRegistryServer'];
|
||||
const args = url ? ['config', 'set', 'registry', url] : ['config', 'get', 'registry'];
|
||||
exec(`${command} ${args.join(' ')}`, (e, stdout) => {
|
||||
if (e) {
|
||||
rej(e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user