|
@@ -10,7 +10,9 @@ import * as path from 'path';
|
|
|
import { handlePackage } from './update-dist-tag';
|
|
|
import * as utils from './utils';
|
|
|
|
|
|
-const sleep = (wait: number) => new Promise(resolve => setTimeout(resolve, wait));
|
|
|
+async function sleep(wait: number): Promise<void> {
|
|
|
+ return new Promise(resolve => setTimeout(resolve, wait));
|
|
|
+}
|
|
|
|
|
|
// Specify the program signature.
|
|
|
commander
|
|
@@ -57,7 +59,11 @@ commander
|
|
|
|
|
|
// Pause to allow npm some time to update their servers to list the published packages.
|
|
|
const pause = 10000;
|
|
|
- console.log(`Pausing ${pause/1000} seconds after publishing to allow npmjs.com to update their package listing.`)
|
|
|
+ console.log(
|
|
|
+ `Pausing ${
|
|
|
+ pause / 1000
|
|
|
+ } seconds after publishing to allow npmjs.com to update their package listing.`
|
|
|
+ );
|
|
|
await sleep(pause);
|
|
|
|
|
|
// Update core mode. This cannot be done until the JS packages are
|