diff --git a/package-lock.json b/package-lock.json index 99ecc44..3b560dc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2368,6 +2368,17 @@ "flatted": "^2.0.0", "rimraf": "2.6.3", "write": "1.0.3" + }, + "dependencies": { + "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" + } + } } }, "flatted": { @@ -3615,9 +3626,9 @@ "optional": true }, "rimraf": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", - "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "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" diff --git a/package.json b/package.json index f1a7509..620792f 100644 --- a/package.json +++ b/package.json @@ -16,9 +16,11 @@ }, "scripts": { "babel": "babel *.js --out-dir dist --source-maps inline", - "build": "npm run gen-ver && npm run lint && rm -rf dist && npm run babel", "gen-ver": "printf \"// generated code, please see package.json\nexport default {\n name: '%s',\n number: '%s'\n}\n\" ${npm_package_name} ${npm_package_version} > version.js", - "lint": "eslint *.js" + "lint": "eslint *.js", + "prebuild": "rimraf dist", + "build": "npm run gen-ver && npm run lint && rm -rf dist && npm run babel", + "prepare": "npm run build" }, "bin": { "bunny-migrate": "bin/bunny-migrate" @@ -43,7 +45,8 @@ "eslint-plugin-import": "2.22.0", "eslint-plugin-node": "11.1.0", "eslint-plugin-promise": "4.2.1", - "eslint-plugin-standard": "4.0.1" + "eslint-plugin-standard": "4.0.1", + "rimraf": "3.0.2" }, "dependencies": { "amqplib": "^0.5.5",