()
| 19 | |
| 20 | // This is the primary control function for this script. |
| 21 | async function main() { |
| 22 | clear(); |
| 23 | |
| 24 | await confirm('Have you run the build-and-test script?', () => { |
| 25 | const buildAndTestScriptPath = join(__dirname, 'build-and-test.js'); |
| 26 | const pathToPrint = relative(process.cwd(), buildAndTestScriptPath); |
| 27 | |
| 28 | console.log('Begin by running the build-and-test script:'); |
| 29 | console.log(chalk.bold.green(' ' + pathToPrint)); |
| 30 | }); |
| 31 | |
| 32 | const {archivePath, currentCommitHash} = readSavedBuildMetadata(); |
| 33 | |
| 34 | await checkNPMPermissions(); |
| 35 | |
| 36 | await publishToNPM(); |
| 37 | |
| 38 | await printFinalInstructions(currentCommitHash, archivePath); |
| 39 | } |
| 40 | |
| 41 | async function printFinalInstructions(currentCommitHash, archivePath) { |
| 42 | console.log(''); |
no test coverage detected