From e547bacebaae4d80e86b6484c1bc87925dc20cf0 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Tue, 1 Aug 2023 12:06:04 +0800 Subject: [PATCH] build: use rimraf to clean the build output --- package-lock.json | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index a5427829..3a743d52 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,7 @@ "eslint": "^8.46.0", "jest": "^29.6.2", "prettier": "^3.0.0", + "rimraf": "^5.0.1", "typescript": "^5.1.6" } }, diff --git a/package.json b/package.json index 2af6f446..b9632e75 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "repository": "github:threeal/google-rank.git", "scripts": { "build": "tsc && chmod-cli lib/google-rank.js -m 0o777", - "clean": "dev clean", + "clean": "rimraf lib", "format": "prettier --write .", "lint": "eslint src", "test": "jest" @@ -44,6 +44,7 @@ "eslint": "^8.46.0", "jest": "^29.6.2", "prettier": "^3.0.0", + "rimraf": "^5.0.1", "typescript": "^5.1.6" } }