diff --git a/packages/create-vant-cli-app/package.json b/packages/create-vant-cli-app/package.json index cdd7c1d03..5443a7bd8 100644 --- a/packages/create-vant-cli-app/package.json +++ b/packages/create-vant-cli-app/package.json @@ -33,11 +33,11 @@ "devDependencies": { "@types/fs-extra": "^11.0.1", "release-it": "^15.4.1", - "rimraf": "^4.0.4", + "rimraf": "^5.0.0", "typescript": "^5.0.2" }, "dependencies": { - "consola": "^2.11.3", + "consola": "^3.0.2", "fast-glob": "^3.2.11", "fs-extra": "^11.1.0", "enquirer": "2.3.6", diff --git a/packages/create-vant-cli-app/src/generator.ts b/packages/create-vant-cli-app/src/generator.ts index 15b5ff7bd..d73885f53 100644 --- a/packages/create-vant-cli-app/src/generator.ts +++ b/packages/create-vant-cli-app/src/generator.ts @@ -1,7 +1,7 @@ import fs from 'fs-extra'; import glob from 'fast-glob'; import color from 'picocolors'; -import consola from 'consola'; +import { consola } from 'consola'; import { prompt } from 'enquirer'; import { sep, join } from 'node:path'; import { CWD, GENERATOR_DIR } from './constant'; diff --git a/packages/create-vant-cli-app/src/index.ts b/packages/create-vant-cli-app/src/index.ts index a1d45af39..831e079ed 100644 --- a/packages/create-vant-cli-app/src/index.ts +++ b/packages/create-vant-cli-app/src/index.ts @@ -1,6 +1,6 @@ #!/usr/bin/env node -import consola from 'consola'; +import { consola } from 'consola'; import { prompt } from 'enquirer'; import { ensureDir } from 'fs-extra'; import { VanGenerator } from './generator'; diff --git a/packages/vant-area-data/package.json b/packages/vant-area-data/package.json index fab48dbf3..78422ec1f 100644 --- a/packages/vant-area-data/package.json +++ b/packages/vant-area-data/package.json @@ -39,7 +39,7 @@ "devDependencies": { "esbuild": "^0.17.12", "release-it": "^15.4.1", - "rimraf": "^4.0.4", + "rimraf": "^5.0.0", "typescript": "^5.0.2" }, "release-it": { diff --git a/packages/vant-cli/package.json b/packages/vant-cli/package.json index 7d7373df7..a2b2d5afe 100644 --- a/packages/vant-cli/package.json +++ b/packages/vant-cli/package.json @@ -44,7 +44,7 @@ "@types/less": "^3.0.3", "@types/lodash": "^4.14.191", "@types/markdown-it": "^12.2.3", - "rimraf": "^4.0.4", + "rimraf": "^5.0.0", "vue": "^3.2.47" }, "dependencies": { @@ -58,7 +58,7 @@ "@vue/babel-plugin-jsx": "^1.1.1", "autoprefixer": "^10.4.8", "commander": "^10.0.0", - "consola": "^2.15.3", + "consola": "^3.0.2", "conventional-changelog": "^3.1.25", "esbuild": "^0.17.12", "eslint": "^8.31.0", @@ -80,7 +80,7 @@ "nanospinner": "^1.1.0", "picocolors": "^1.0.0", "postcss": "^8.4.16", - "postcss-load-config": "^3.1.4", + "postcss-load-config": "^4.0.1", "prettier": "^2.7.1", "release-it": "^15.4.1", "terser": "^5.16.1", diff --git a/packages/vant-cli/src/common/logger.ts b/packages/vant-cli/src/common/logger.ts index 809a5e199..f79e766db 100644 --- a/packages/vant-cli/src/common/logger.ts +++ b/packages/vant-cli/src/common/logger.ts @@ -1,6 +1,6 @@ import { createSpinner } from 'nanospinner'; import color from 'picocolors'; -import consola from 'consola'; +import { consola } from 'consola'; import { ROOT } from '../common/constant.js'; export function slimPath(path: string) { diff --git a/packages/vant-compat/package.json b/packages/vant-compat/package.json index 7b897ece2..b68492a54 100644 --- a/packages/vant-compat/package.json +++ b/packages/vant-compat/package.json @@ -41,7 +41,7 @@ "vue": "^3.2.47", "esbuild": "^0.17.12", "release-it": "^15.1.1", - "rimraf": "^4.0.4", + "rimraf": "^5.0.0", "typescript": "^5.0.2" }, "release-it": { diff --git a/packages/vant-popperjs/package.json b/packages/vant-popperjs/package.json index 6778a0429..dabaab034 100644 --- a/packages/vant-popperjs/package.json +++ b/packages/vant-popperjs/package.json @@ -40,7 +40,7 @@ "@popperjs/core": "^2.11.6", "esbuild": "^0.17.12", "release-it": "^15.4.1", - "rimraf": "^4.0.4", + "rimraf": "^5.0.0", "typescript": "^5.0.2" }, "release-it": { diff --git a/packages/vant-use/package.json b/packages/vant-use/package.json index 54157dd72..e32ee1809 100644 --- a/packages/vant-use/package.json +++ b/packages/vant-use/package.json @@ -39,7 +39,7 @@ "devDependencies": { "esbuild": "^0.17.12", "release-it": "^15.4.1", - "rimraf": "^4.0.4", + "rimraf": "^5.0.0", "typescript": "^5.0.2", "vue": "^3.2.47" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1251d75c8..a38434137 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,8 +26,8 @@ importers: packages/create-vant-cli-app: dependencies: consola: - specifier: ^2.11.3 - version: 2.15.3 + specifier: ^3.0.2 + version: 3.0.2 enquirer: specifier: 2.3.6 version: 2.3.6 @@ -48,8 +48,8 @@ importers: specifier: ^15.4.1 version: 15.5.0 rimraf: - specifier: ^4.0.4 - version: 4.0.4 + specifier: ^5.0.0 + version: 5.0.0 typescript: specifier: ^5.0.2 version: 5.0.2 @@ -106,8 +106,8 @@ importers: specifier: ^15.4.1 version: 15.5.0 rimraf: - specifier: ^4.0.4 - version: 4.0.4 + specifier: ^5.0.0 + version: 5.0.0 typescript: specifier: ^5.0.2 version: 5.0.2 @@ -145,8 +145,8 @@ importers: specifier: ^10.0.0 version: 10.0.0 consola: - specifier: ^2.15.3 - version: 2.15.3 + specifier: ^3.0.2 + version: 3.0.2 conventional-changelog: specifier: ^3.1.25 version: 3.1.25 @@ -211,8 +211,8 @@ importers: specifier: ^8.4.16 version: 8.4.20 postcss-load-config: - specifier: ^3.1.4 - version: 3.1.4(postcss@8.4.20) + specifier: ^4.0.1 + version: 4.0.1(postcss@8.4.20) prettier: specifier: ^2.7.1 version: 2.7.1 @@ -254,8 +254,8 @@ importers: specifier: ^12.2.3 version: 12.2.3 rimraf: - specifier: ^4.0.4 - version: 4.0.4 + specifier: ^5.0.0 + version: 5.0.0 vue: specifier: ^3.2.47 version: 3.2.47 @@ -272,8 +272,8 @@ importers: specifier: ^15.1.1 version: 15.5.0 rimraf: - specifier: ^4.0.4 - version: 4.0.4 + specifier: ^5.0.0 + version: 5.0.0 typescript: specifier: ^5.0.2 version: 5.0.2 @@ -336,8 +336,8 @@ importers: specifier: ^15.4.1 version: 15.5.0 rimraf: - specifier: ^4.0.4 - version: 4.0.4 + specifier: ^5.0.0 + version: 5.0.0 typescript: specifier: ^5.0.2 version: 5.0.2 @@ -353,8 +353,8 @@ importers: specifier: ^15.4.1 version: 15.5.0 rimraf: - specifier: ^4.0.4 - version: 4.0.4 + specifier: ^5.0.0 + version: 5.0.0 typescript: specifier: ^5.0.2 version: 5.0.2 @@ -2105,6 +2105,12 @@ packages: balanced-match: 1.0.2 concat-map: 0.0.1 + /brace-expansion@2.0.1: + resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + dependencies: + balanced-match: 1.0.2 + dev: true + /braces@3.0.2: resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} engines: {node: '>=8'} @@ -2329,8 +2335,8 @@ packages: resolution: {integrity: sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==} dev: false - /consola@2.15.3: - resolution: {integrity: sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==} + /consola@3.0.2: + resolution: {integrity: sha512-o/Wau2FmZKiQgyp3c3IULgN6J5yc0lwYMnoyiZdEpdGxKGBtt2ACbkulBZ6BUsHy1HlSJqoP4YOyPIJLgRJyKQ==} dev: false /conventional-changelog-angular@5.0.13: @@ -3521,6 +3527,16 @@ packages: dependencies: is-glob: 4.0.3 + /glob@10.1.0: + resolution: {integrity: sha512-daGobsYuT0G4hng24B5LbeLNvwKZYRhWyDl3RvqqAGZjJnCopWWK6PWnAGBY1M/vdA63QE+jddhZcYp+74Bq6Q==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + fs.realpath: 1.0.0 + minimatch: 9.0.0 + minipass: 5.0.0 + path-scurry: 1.7.0 + dev: true + /glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} dependencies: @@ -4802,6 +4818,11 @@ packages: dependencies: yallist: 4.0.0 + /lru-cache@9.0.3: + resolution: {integrity: sha512-cyjNRew29d4kbgnz1sjDqxg7qg8NW4s+HQzCGjeon7DV5T2yDije16W9HaUFV1dhVEMh+SjrOcK0TomBmf3Egg==} + engines: {node: 14 || >=16.14} + dev: true + /macos-release@3.1.0: resolution: {integrity: sha512-/M/R0gCDgM+Cv1IuBG1XGdfTFnMEG6PZeT+KGWHO/OG+imqmaD9CH5vHBTycEM3+Kc4uG2Il+tFAuUWLqQOeUA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -4942,6 +4963,13 @@ packages: dependencies: brace-expansion: 1.1.11 + /minimatch@9.0.0: + resolution: {integrity: sha512-0jJj8AvgKqWN05mrwuqi8QYKx1WmYSUoKSxu5Qhs9prezTz10sxAHGNZe9J9cqIJzta8DWsleh2KaVaLl6Ru2w==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + brace-expansion: 2.0.1 + dev: true + /minimist-options@4.1.0: resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} engines: {node: '>= 6'} @@ -4954,6 +4982,11 @@ packages: /minimist@1.2.7: resolution: {integrity: sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==} + /minipass@5.0.0: + resolution: {integrity: sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==} + engines: {node: '>=8'} + dev: true + /modify-values@1.0.1: resolution: {integrity: sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==} engines: {node: '>=0.10.0'} @@ -5373,6 +5406,14 @@ packages: /path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + /path-scurry@1.7.0: + resolution: {integrity: sha512-UkZUeDjczjYRE495+9thsgcVgsaCPkaw80slmfVFgllxY+IO8ubTsOpFVjDPROBqJdHfVPUFRHPBV/WciOVfWg==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + lru-cache: 9.0.3 + minipass: 5.0.0 + dev: true + /path-type@3.0.0: resolution: {integrity: sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==} engines: {node: '>=4'} @@ -5417,9 +5458,9 @@ packages: dependencies: find-up: 4.1.0 - /postcss-load-config@3.1.4(postcss@8.4.20): - resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==} - engines: {node: '>= 10'} + /postcss-load-config@4.0.1(postcss@8.4.20): + resolution: {integrity: sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==} + engines: {node: '>= 14'} peerDependencies: postcss: '>=8.0.9' ts-node: '>=9.0.0' @@ -5431,7 +5472,7 @@ packages: dependencies: lilconfig: 2.0.6 postcss: 8.4.20 - yaml: 1.10.2 + yaml: 2.2.1 dev: false /postcss-selector-parser@6.0.10: @@ -5793,10 +5834,12 @@ packages: dependencies: glob: 7.2.3 - /rimraf@4.0.4: - resolution: {integrity: sha512-R0hoVr9xTwemarQjoWlNt/nb5dEGVTBhVdkRmEX2zEkT8T6onH0XKiGjuaC7rNNj/gYzY2p4NVRJ3sjO1ascHQ==} + /rimraf@5.0.0: + resolution: {integrity: sha512-Jf9llaP+RvaEVS5nPShYFhtXIrb3LRKP281ib3So0KkeZKo2wIKyq0Re7TOSwanasA423PSr6CCIL4bP6T040g==} engines: {node: '>=14'} hasBin: true + dependencies: + glob: 10.1.0 dev: true /rollup@3.19.1: @@ -6717,6 +6760,11 @@ packages: resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} engines: {node: '>= 6'} + /yaml@2.2.1: + resolution: {integrity: sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw==} + engines: {node: '>= 14'} + dev: false + /yargs-parser@20.2.9: resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} engines: {node: '>=10'}