From 2b6637b1fc501995d10675369f6559d5ea68aff5 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Wed, 12 Jun 2019 00:25:53 +0800 Subject: [PATCH] feat: clean before build --- package.json | 1 - packages/cc-server-core/package.json | 5 +++-- packages/cc-server-db-mongo/package.json | 5 +++-- packages/cc-server-db/package.json | 7 +++++-- packages/cc-server-ioc/package.json | 7 +++++-- 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 18b14de..518119a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,6 @@ "author": "MiaoWoo ", "license": "MIT", "scripts": { - "prepublish": "npx lerna run build", "lp": "npx lerna publish" }, "workspaces": [ diff --git a/packages/cc-server-core/package.json b/packages/cc-server-core/package.json index 779b680..c3ddfc2 100644 --- a/packages/cc-server-core/package.json +++ b/packages/cc-server-core/package.json @@ -11,7 +11,7 @@ }, "scripts": { "dev": "npx ts-node src/index.ts", - "build": "npx tsc", + "build": "rimraf dist && npx tsc", "test": "echo \"Error: run tests from root\" && exit 1" }, "dependencies": { @@ -26,7 +26,8 @@ "devDependencies": { "@types/body-parser": "^1.17.0", "@types/express": "^4.17.0", + "rimraf": "^2.6.3", "ts-node": "^8.2.0" }, "gitHead": "7d84393a3cb6be6be9ed51d71f12677d2d7d0728" -} +} \ No newline at end of file diff --git a/packages/cc-server-db-mongo/package.json b/packages/cc-server-db-mongo/package.json index abf8cef..4352a7b 100644 --- a/packages/cc-server-db-mongo/package.json +++ b/packages/cc-server-db-mongo/package.json @@ -10,7 +10,7 @@ "registry": "https://repo.yumc.pw/repository/npm-hosted/" }, "scripts": { - "build": "npx tsc", + "build": "rimraf dist && npx tsc", "test": "echo \"Error: run tests from root\" && exit 1" }, "dependencies": { @@ -22,7 +22,8 @@ "typescript": "^3.5.1" }, "devDependencies": { + "rimraf": "^2.6.3", "@types/mongodb": "^3.1.28" }, "gitHead": "7d84393a3cb6be6be9ed51d71f12677d2d7d0728" -} +} \ No newline at end of file diff --git a/packages/cc-server-db/package.json b/packages/cc-server-db/package.json index 41a221f..23cccd1 100644 --- a/packages/cc-server-db/package.json +++ b/packages/cc-server-db/package.json @@ -14,7 +14,7 @@ "url": "git+https://github.com/502647092/cc-server-parent.git" }, "scripts": { - "build": "npx tsc", + "build": "rimraf dist && npx tsc", "test": "echo \"Error: run tests from root\" && exit 1" }, "bugs": { @@ -23,5 +23,8 @@ "homepage": "https://github.com/502647092/cc-server-parent#readme", "dependencies": { "typescript": "^3.5.1" + }, + "devDependencies": { + "rimraf": "^2.6.3" } -} +} \ No newline at end of file diff --git a/packages/cc-server-ioc/package.json b/packages/cc-server-ioc/package.json index 4905610..0cdce6a 100644 --- a/packages/cc-server-ioc/package.json +++ b/packages/cc-server-ioc/package.json @@ -10,7 +10,7 @@ "registry": "https://repo.yumc.pw/repository/npm-hosted/" }, "scripts": { - "build": "npx tsc", + "build": "rimraf dist && npx tsc", "test": "echo \"Error: run tests from root\" && exit 1" }, "dependencies": { @@ -19,5 +19,8 @@ "reflect-metadata": "^0.1.13", "typescript": "^3.5.1" }, + "devDependencies": { + "rimraf": "^2.6.3" + }, "gitHead": "7d84393a3cb6be6be9ed51d71f12677d2d7d0728" -} +} \ No newline at end of file