Add cleaning the build directory to the build process

This commit is contained in:
Jonas Lochmann 2020-09-28 02:00:00 +02:00
parent 8ebeadad5a
commit b17bc42a1e
No known key found for this signature in database
GPG key ID: 8B8C9AEE10FA5B36
2 changed files with 20 additions and 24 deletions

40
package-lock.json generated
View file

@ -1851,7 +1851,6 @@
"version": "7.1.6",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
"integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
"dev": true,
"requires": {
"fs.realpath": "1.0.0",
"inflight": "1.0.6",
@ -2818,9 +2817,20 @@
"npm-packlist": "1.4.1",
"npmlog": "4.1.2",
"rc": "1.2.8",
"rimraf": "2.6.3",
"rimraf": "2.7.1",
"semver": "5.5.0",
"tar": "4.4.8"
},
"dependencies": {
"rimraf": {
"version": "2.7.1",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
"integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
"optional": true,
"requires": {
"glob": "7.1.6"
}
}
}
},
"nodemailer": {
@ -3559,28 +3569,12 @@
}
},
"rimraf": {
"version": "2.6.3",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
"integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
"optional": true,
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
"integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
"dev": true,
"requires": {
"glob": "7.1.3"
},
"dependencies": {
"glob": {
"version": "7.1.3",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz",
"integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
"optional": true,
"requires": {
"fs.realpath": "1.0.0",
"inflight": "1.0.6",
"inherits": "2.0.3",
"minimatch": "3.0.4",
"once": "1.4.0",
"path-is-absolute": "1.0.1"
}
}
"glob": "7.1.6"
}
},
"safe-buffer": {

View file

@ -8,7 +8,8 @@
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "tslint --project .",
"lint:fix": "tslint --project . --fix",
"build": "npm run build:json && npm run build:ts && npm run lint && npm run build:doc",
"build": "npm run build:clean && npm run build:json && npm run build:ts && npm run lint && npm run build:doc",
"build:clean": "rimraf build",
"build:json": "node ./scripts/build-schemas.js",
"build:ts": "tsc",
"build:doc": "npm run build:doc:json",
@ -39,6 +40,7 @@
"@types/socket.io": "^2.1.4",
"@types/tokgen": "^1.0.0",
"@types/umzug": "^2.2.3",
"rimraf": "^3.0.2",
"tslint": "^6.1.3",
"tslint-config-standard": "^9.0.0",
"typescript": "^3.8.3",