Skip to content

Commit

Permalink
Merge pull request #156 from xtremespb/core_030821
Browse files Browse the repository at this point in the history
Ensure that "logs" directory exists during build
  • Loading branch information
xtremespb committed Aug 11, 2021
2 parents 222f822 + 3e6dc43 commit 396dd73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dev/npmi.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class NPMI {
const workerProcess = exec(cmd, (error, stdout, stderr) => {
if (exitCode === 0) {
// eslint-disable-next-line no-control-regex
fs.ensureDirSync(path.resolve(`${__dirname}/../logs`));
fs.writeFileSync(path.resolve(`${__dirname}/../logs/build_${format(new Date(), "yyyyMMdd_HHmmss")}.log`), stdout.replace(/[^\x00-\x7F]/g, ""));
resolve(stdout);
} else {
Expand Down

0 comments on commit 396dd73

Please sign in to comment.