commit
75bc92dc78
|
@ -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)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue