Remove source files before rebuilding

This commit is contained in:
Luke Childs 2019-05-13 16:35:02 +07:00
parent 3bee658bec
commit 68339fda4d
2 changed files with 28 additions and 1 deletions

25
package-lock.json generated
View file

@ -1845,6 +1845,31 @@
"path-parse": "^1.0.5" "path-parse": "^1.0.5"
} }
}, },
"rimraf": {
"version": "2.6.3",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
"integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
"dev": true,
"requires": {
"glob": "^7.1.3"
},
"dependencies": {
"glob": {
"version": "7.1.4",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz",
"integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==",
"dev": true,
"requires": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
"inherits": "2",
"minimatch": "^3.0.4",
"once": "^1.3.0",
"path-is-absolute": "^1.0.0"
}
}
}
},
"ripemd160": { "ripemd160": {
"version": "2.0.2", "version": "2.0.2",
"resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz",

View file

@ -15,7 +15,8 @@
"bitcoinjs" "bitcoinjs"
], ],
"scripts": { "scripts": {
"build": "tsc -p ./tsconfig.json", "clean": "rimraf src",
"build": "npm run clean && tsc -p ./tsconfig.json",
"coverage-report": "npm run build && npm run nobuild:coverage-report", "coverage-report": "npm run build && npm run nobuild:coverage-report",
"coverage-html": "npm run build && npm run nobuild:coverage-html", "coverage-html": "npm run build && npm run nobuild:coverage-html",
"coverage": "npm run build && npm run nobuild:coverage", "coverage": "npm run build && npm run nobuild:coverage",
@ -71,6 +72,7 @@
"nyc": "^13.3.0", "nyc": "^13.3.0",
"prettier": "1.16.4", "prettier": "1.16.4",
"proxyquire": "^2.0.1", "proxyquire": "^2.0.1",
"rimraf": "^2.6.3",
"tslint": "5.13.1", "tslint": "5.13.1",
"typescript": "3.2.2" "typescript": "3.2.2"
}, },