-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40347b1
commit 33ff68a
Showing
4 changed files
with
27 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { execa, execaCommand } from 'execa'; | ||
import { execaCommand } from 'execa'; | ||
import { remove, pathExists, readJSON } from 'fs-extra'; | ||
import chalk from 'chalk'; | ||
import path from 'path'; | ||
|
@@ -123,7 +123,7 @@ const addUser = (url: string) => | |
|
||
try { | ||
await execaCommand( | ||
`npx npm-cli-adduser -r ${url} -a -u user -p password -e [email protected] -t legacy` | ||
`npx npm-cli-adduser -r ${url} -a -u foo -p s3cret -e [email protected] -t legacy` | ||
); | ||
res(); | ||
} catch (e) { | ||
|
@@ -169,15 +169,16 @@ const run = async () => { | |
await publish(packages, verdaccioUrl); | ||
} | ||
|
||
verdaccioServer.unref(); | ||
|
||
if (!program.open) { | ||
verdaccioServer.close(() => { | ||
process.exit(0); | ||
}); | ||
} else { | ||
process.exit(0); | ||
} | ||
return new Promise<void>((res) => { | ||
if (!program.open) { | ||
verdaccioServer.closeAllConnections(); | ||
verdaccioServer.close(() => { | ||
res(); | ||
}); | ||
} else { | ||
res(); | ||
} | ||
}); | ||
}; | ||
|
||
run().catch((e) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters