From b43966f0eaa281d2f344b12221fe3c9d0f8e9ef5 Mon Sep 17 00:00:00 2001 From: elycruz <603428+elycruz@users.noreply.github.com> Date: Wed, 20 Jul 2022 02:00:55 -0400 Subject: [PATCH] #97, #98 - Updated 'clean-and-run*' script's 'completed successfully' message. - Ran auto format on 'clean-and-run' script. --- scripts/clean-and-run-downlevel-dts.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/clean-and-run-downlevel-dts.js b/scripts/clean-and-run-downlevel-dts.js index 9bd9b93..96efdc6 100644 --- a/scripts/clean-and-run-downlevel-dts.js +++ b/scripts/clean-and-run-downlevel-dts.js @@ -3,7 +3,7 @@ * @description Removes '{repo-root}/ts3.5' directory, re-creates it, runs * `npm run downlevel-dts` from repo-root, and copies the root tsconfig.json file into new directory. */ - const fs = require('fs').promises, +const fs = require('fs').promises, path = require('path'), {spawn} = require('child_process'), @@ -15,6 +15,7 @@ tsConfigFilePath = path.join(rootDir, 'tsconfig.json'), tsConfigOutFilePath = path.join(outputDir, 'tsconfig.json'); +// Run 'clean-and-run' process (async () => fs.rmdir(outputDir, {recursive: true}) @@ -37,7 +38,7 @@ // Handle process end subProcess.on('close', (code) => code !== 0 ? reject(`Child process existed with code ${code}.\n`) : - resolve('Process completed successfully.\n') + resolve('"clean-and-run-downlevel-dts" completed successfully.\n') ); // Catch process start errors