diff --git a/package.json b/package.json index df8a60c36..fb494a7b8 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "husky": "^7.0.4", "lint-staged": "^11.2.6", "prettier": "^2.4.1", + "rimraf": "^3.0.2", "stylelint": "^13.13.1" } } diff --git a/packages/vant-popperjs/package.json b/packages/vant-popperjs/package.json index ebd14d8cb..a29052e96 100644 --- a/packages/vant-popperjs/package.json +++ b/packages/vant-popperjs/package.json @@ -14,7 +14,7 @@ "registry": "https://registry.npmjs.org/" }, "scripts": { - "clean": "rm -rf ./dist", + "clean": "rimraf ./dist", "dev": "rollup --config rollup.config.js --watch", "build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly", "build:bundle": "rollup --config rollup.config.js", diff --git a/packages/vant-use/package.json b/packages/vant-use/package.json index d1f21283f..6d7a0a862 100644 --- a/packages/vant-use/package.json +++ b/packages/vant-use/package.json @@ -10,7 +10,7 @@ "dist" ], "scripts": { - "clean": "rm -rf ./dist", + "clean": "rimraf ./dist", "dev": "rollup --config rollup.config.js --watch", "build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly", "build:bundle": "rollup --config rollup.config.js", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0a752aa50..3e8a7c749 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,7 @@ importers: husky: ^7.0.4 lint-staged: ^11.2.6 prettier: ^2.4.1 + rimraf: ^3.0.2 stylelint: ^13.13.1 devDependencies: '@vant/cli': link:packages/vant-cli @@ -20,6 +21,7 @@ importers: husky: 7.0.4 lint-staged: 11.2.6 prettier: 2.4.1 + rimraf: 3.0.2 stylelint: 13.13.1 packages/create-vant-cli-app: @@ -7302,7 +7304,7 @@ packages: engines: {iojs: '>=1.0.0', node: '>=0.10.0'} /rimraf/3.0.2: - resolution: {integrity: sha1-8aVAK6YiCtUswSgrrBrjqkn9Bho=, tarball: rimraf/download/rimraf-3.0.2.tgz?cache=0&sync_timestamp=1632822764504&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Frimraf%2Fdownload%2Frimraf-3.0.2.tgz} + resolution: {integrity: sha1-8aVAK6YiCtUswSgrrBrjqkn9Bho=, tarball: rimraf/download/rimraf-3.0.2.tgz} hasBin: true dependencies: glob: 7.2.0