fix(build): use rimraf (#9851)

This commit is contained in:
Sepush 2021-11-13 17:08:18 +08:00 committed by GitHub
parent b163d87064
commit d5be481eab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View File

@ -23,6 +23,7 @@
"husky": "^7.0.4", "husky": "^7.0.4",
"lint-staged": "^11.2.6", "lint-staged": "^11.2.6",
"prettier": "^2.4.1", "prettier": "^2.4.1",
"rimraf": "^3.0.2",
"stylelint": "^13.13.1" "stylelint": "^13.13.1"
} }
} }

View File

@ -14,7 +14,7 @@
"registry": "https://registry.npmjs.org/" "registry": "https://registry.npmjs.org/"
}, },
"scripts": { "scripts": {
"clean": "rm -rf ./dist", "clean": "rimraf ./dist",
"dev": "rollup --config rollup.config.js --watch", "dev": "rollup --config rollup.config.js --watch",
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly", "build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly",
"build:bundle": "rollup --config rollup.config.js", "build:bundle": "rollup --config rollup.config.js",

View File

@ -10,7 +10,7 @@
"dist" "dist"
], ],
"scripts": { "scripts": {
"clean": "rm -rf ./dist", "clean": "rimraf ./dist",
"dev": "rollup --config rollup.config.js --watch", "dev": "rollup --config rollup.config.js --watch",
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly", "build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly",
"build:bundle": "rollup --config rollup.config.js", "build:bundle": "rollup --config rollup.config.js",

4
pnpm-lock.yaml generated
View File

@ -11,6 +11,7 @@ importers:
husky: ^7.0.4 husky: ^7.0.4
lint-staged: ^11.2.6 lint-staged: ^11.2.6
prettier: ^2.4.1 prettier: ^2.4.1
rimraf: ^3.0.2
stylelint: ^13.13.1 stylelint: ^13.13.1
devDependencies: devDependencies:
'@vant/cli': link:packages/vant-cli '@vant/cli': link:packages/vant-cli
@ -20,6 +21,7 @@ importers:
husky: 7.0.4 husky: 7.0.4
lint-staged: 11.2.6 lint-staged: 11.2.6
prettier: 2.4.1 prettier: 2.4.1
rimraf: 3.0.2
stylelint: 13.13.1 stylelint: 13.13.1
packages/create-vant-cli-app: packages/create-vant-cli-app:
@ -7302,7 +7304,7 @@ packages:
engines: {iojs: '>=1.0.0', node: '>=0.10.0'} engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
/rimraf/3.0.2: /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 hasBin: true
dependencies: dependencies:
glob: 7.2.0 glob: 7.2.0