Skip to content

Commit

Permalink
chore: upgrade del to 7.x esm
Browse files Browse the repository at this point in the history
  • Loading branch information
sonofmagic committed Jul 27, 2023
1 parent 1dd516f commit 4e30a3f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 68 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
"@vitest/coverage-v8": "^0.33.0",
"cross-env": "^7.0.3",
"defu": "^6.1.2",
"del": "^6.1.1",
"del": "^7.0.0",
"eslint": "8.45.0",
"eslint-config-icebreaker": "^1.2.2",
"eslint-config-prettier": "^8.8.0",
"eslint-config-prettier": "^8.9.0",
"eslint-plugin-prettier": "^5.0.0",
"klaw": "^4.1.0",
"lodash": "^4.17.21",
Expand Down
97 changes: 33 additions & 64 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions scripts/clean.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const deleteAsync = require('del')

// 同时兼容 `yarn clean` and `yarn clean xxx yyy zzz`
;(async () => {
const { deleteAsync } = await import('del')
const dirs = process.argv.slice(2)
if (dirs.length === 0) {
dirs.push('dist')
Expand Down

0 comments on commit 4e30a3f

Please sign in to comment.