Skip to content

Commit

Permalink
#97, #98 - Updated 'clean-and-run*' script's 'completed successfully'…
Browse files Browse the repository at this point in the history
… message.

- Ran auto format on 'clean-and-run' script.
  • Loading branch information
elycruz committed Jul 20, 2022
1 parent 029f101 commit b43966f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/clean-and-run-downlevel-dts.js
Expand Up @@ -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'),

Expand All @@ -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})

Expand All @@ -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
Expand Down

0 comments on commit b43966f

Please sign in to comment.