Merge pull request #131 from pryme-svg/master

Fixes #130
This commit is contained in:
JeanOUINA 2020-12-08 16:56:48 +01:00 committed by GitHub
commit 75bc92dc78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -109,7 +109,12 @@ async function main(){
console.info("Starting build")
console.info("Reseting existent directory...")
await fs.promises.rmdir("./distApp", {"recursive": true})
try{
await fs.promises.rmdir("./distApp", {"recursive": true})
} catch (error) {
console.error(error);
}
await fs.promises.mkdir(PROJECT_DIR+"/distApp/dist", {"recursive": true})
console.info("Executing command `npm run compile`")
@ -278,4 +283,4 @@ main()
.catch(err => {
console.error(err)
process.exit(1)
})
})