vite-plus 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/LICENSE +59 -6
  2. package/README.md +7 -7
  3. package/binding/index.cjs +54 -55
  4. package/binding/index.d.cts +53 -12
  5. package/dist/{agent-CKMI1a8W.js → agent-KeDc6vmg.js} +2 -2
  6. package/dist/bin.js +14 -11
  7. package/dist/command-DaRqSNpP.js +1 -0
  8. package/dist/comparison-CmVirWIW-DUGaiYqF.js +121 -0
  9. package/dist/config/bin.js +4 -4
  10. package/dist/{constants-BqJiMVVU.js → constants-BW3g7VnD.js} +3 -3
  11. package/dist/create/bin.d.ts +2 -1
  12. package/dist/create/bin.js +126 -26
  13. package/dist/{define-config-Cf_5GHmY.d.ts → define-config-Bexdd6RZ.d.ts} +25 -9
  14. package/dist/{define-config-DhEJaYRc.js → define-config-CIlk9scU.js} +111 -6
  15. package/dist/{define-config-C_KGDLUZ.cjs → define-config-Dq_23Eyr.cjs} +89 -3
  16. package/dist/define-config.cjs +1 -1
  17. package/dist/define-config.d.ts +1 -1
  18. package/dist/define-config.js +1 -2
  19. package/dist/{dist-BsAzy8OW.js → dist-Bi7ZEK3c.js} +1 -2
  20. package/dist/dist-CBWGibx8.js +3 -0
  21. package/dist/{dist-DfmT__Aw.js → dist-Cqz8OtiO.js} +24 -21
  22. package/dist/{editor-CHfGUhxP.js → editor-b1XUwt9v.js} +114 -65
  23. package/dist/fmt.js +1 -2
  24. package/dist/hooks/bin.js +1 -1
  25. package/dist/{hooks-C-4gykWR.js → hooks-DhwsWb46.js} +34 -22
  26. package/dist/index.cjs +1 -1
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.js +1 -1
  29. package/dist/lint-plugins-dev.js +1 -2
  30. package/dist/lint-plugins.cjs +1 -1
  31. package/dist/lint-plugins.js +1 -2
  32. package/dist/migration/bin.js +63 -57
  33. package/dist/{oxlint-plugin-config-lMMD5fAC.js → oxlint-plugin-config-Dx-ZY2MN.js} +1 -1
  34. package/dist/oxlint-plugin.js +2 -2
  35. package/dist/pack-bin.js +4 -3
  36. package/dist/{package-Cgdlhamw.js → package-BP16iQby.js} +7 -2
  37. package/dist/package-overrides-D1RcXSFl.js +411 -0
  38. package/dist/{prompts-jMH8S4Wp.js → prompts-BGpQtC5z.js} +548 -262
  39. package/dist/resolve-vite-config-CGzlyhGr.js +1 -0
  40. package/dist/{resolve-vite-config-BJYYtfY3.js → resolve-vite-config-x47JetlI.js} +2 -2
  41. package/dist/staged/bin.js +792 -743
  42. package/dist/sync-versions/bin.js +4761 -3373
  43. package/dist/sync-versions/bin.mjs +5304 -5083
  44. package/dist/test/browser/providers/playwright.d.ts +7 -2
  45. package/dist/test/browser-playwright.d.ts +7 -2
  46. package/dist/toolchain.js +12 -12
  47. package/dist/toolchain.json +12 -12
  48. package/dist/tsconfig-C5PnJfW4.js +1 -0
  49. package/dist/{tsconfig-BoYTBNX_.js → tsconfig-D2DzAQ_D.js} +2 -2
  50. package/dist/version.js +2 -2
  51. package/dist/versions.js +7 -7
  52. package/docs/config/run.md +9 -5
  53. package/docs/config/staged.md +1 -1
  54. package/docs/guide/automatic-data-tracking.md +7 -6
  55. package/docs/guide/cache.md +3 -3
  56. package/docs/guide/check.md +7 -7
  57. package/docs/guide/ci.md +3 -4
  58. package/docs/guide/commit-hooks.md +3 -1
  59. package/docs/guide/create.md +14 -4
  60. package/docs/guide/env.md +19 -7
  61. package/docs/guide/github-actions-cache.md +2 -4
  62. package/docs/guide/global-cli.md +36 -10
  63. package/docs/guide/ide-integration.md +4 -2
  64. package/docs/guide/implode.md +2 -0
  65. package/docs/guide/index.md +8 -8
  66. package/docs/guide/local-cli.md +27 -11
  67. package/docs/guide/migrate-rules.md +11 -3
  68. package/docs/guide/migrate.md +11 -11
  69. package/docs/guide/{install.md → package-management.md} +28 -4
  70. package/docs/guide/run.md +10 -8
  71. package/docs/guide/test.md +3 -1
  72. package/docs/guide/troubleshooting.md +9 -7
  73. package/docs/guide/upgrade-project.md +2 -6
  74. package/docs/guide/upgrade.md +6 -0
  75. package/docs/guide/vitest-v5.md +2 -2
  76. package/docs/guide/vpx.md +5 -5
  77. package/package.json +37 -33
  78. package/templates/generator/bin/index.ts +0 -0
  79. package/templates/generator/package.json +2 -2
  80. package/templates/generator/src/template.ts +1 -0
  81. package/dist/command-CLJK5jGW.js +0 -2
  82. package/dist/dist-BWiANxFS.js +0 -8052
  83. package/dist/package-overrides-Dpn4scvN.js +0 -17
  84. package/dist/resolve-vite-config-BPgpYMYp.js +0 -2
  85. package/dist/tsconfig-CmKidmRD.js +0 -2
package/docs/guide/vpx.md CHANGED
@@ -8,8 +8,8 @@ Use `vpx`, `vp exec`, and `vp dlx` to run binaries without switching between loc
8
8
 
9
9
  Use the other binary commands when you need stricter control:
10
10
 
11
- - `vpx` resolves a package binary locally first by default and downloads it if not found; with `pkg@version`, `--package/-p`, or `--shell-mode`, it runs via `vp dlx`
12
- - `vp exec` runs a binary from the current project's `node_modules/.bin`
11
+ - `vpx` looks for a binary in local `node_modules/.bin` directories, Vite+-managed global packages, and system `PATH`, in that order, then falls back to `vp dlx`. With `pkg@version`, `--package/-p`, or `--shell-mode`, it runs via `vp dlx` directly.
12
+ - `vp exec` runs a command from local `node_modules/.bin` directories, falling back to `PATH` if not found
13
13
  - `vp dlx` runs a package binary without adding it as a dependency
14
14
 
15
15
  ## `vpx`
@@ -31,13 +31,13 @@ vpx <pkg[@version]> [args...]
31
31
  ```bash
32
32
  vpx eslint .
33
33
  vpx create-vue my-app
34
- vpx typescript@5.5.4 tsc --version
34
+ vpx oxlint@1.85.0 --version
35
35
  vpx -p cowsay -c 'echo "hi" | cowsay'
36
36
  ```
37
37
 
38
38
  ## `vp exec`
39
39
 
40
- Use `vp exec` when the binary must come from the current project, for example a binary from a dependency installed in `node_modules/.bin`.
40
+ Use `vp exec` to run tools already installed in your project or available in your environment.
41
41
 
42
42
  ```bash
43
43
  vp exec <command> [args...]
@@ -62,5 +62,5 @@ Examples:
62
62
 
63
63
  ```bash
64
64
  vp dlx create-vite
65
- vp dlx typescript tsc --version
65
+ vp dlx oxlint@1.85.0 --version
66
66
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plus",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "The Unified Toolchain for the Web",
5
5
  "homepage": "https://viteplus.dev/guide",
6
6
  "bugs": {
@@ -338,20 +338,20 @@
338
338
  }
339
339
  },
340
340
  "dependencies": {
341
- "@oxc-project/types": "=0.151.0",
342
- "@oxlint/plugins": "=1.79.0",
343
- "@vitest/browser": "5.0.1",
344
- "@vitest/browser-preview": "5.0.1",
345
- "@vitest/mocker": "5.0.1",
346
- "@vitest/pretty-format": "5.0.1",
347
- "@vitest/snapshot": "5.0.1",
348
- "@vitest/spy": "5.0.1",
349
- "@vitest/utils": "5.0.1",
350
- "oxfmt": "=0.70.0",
351
- "oxlint": "=1.85.0",
352
- "oxlint-tsgolint": "=7.0.2003",
353
- "vite": "npm:@voidzero-dev/vite-plus-core@1.0.0",
354
- "vitest": "5.0.1"
341
+ "@oxc-project/types": "=0.154.0",
342
+ "@oxlint/plugins": "=1.88.0",
343
+ "@vitest/browser": "5.0.4",
344
+ "@vitest/browser-preview": "5.0.4",
345
+ "@vitest/mocker": "5.0.4",
346
+ "@vitest/pretty-format": "5.0.4",
347
+ "@vitest/snapshot": "5.0.4",
348
+ "@vitest/spy": "5.0.4",
349
+ "@vitest/utils": "5.0.4",
350
+ "oxfmt": "=0.73.0",
351
+ "oxlint": "=1.88.0",
352
+ "oxlint-tsgolint": "=7.0.2004",
353
+ "vite": "npm:@voidzero-dev/vite-plus-core@1.2.0",
354
+ "vitest": "5.0.4"
355
355
  },
356
356
  "devDependencies": {
357
357
  "@emnapi/core": "2.0.0-alpha.5",
@@ -359,31 +359,32 @@
359
359
  "@napi-rs/cli": "^3.10.0",
360
360
  "@nkzw/safe-word-list": "^3.1.0",
361
361
  "@types/cross-spawn": "^6.0.6",
362
- "@types/semver": "^7.8.0",
363
362
  "@types/validate-npm-package-name": "^4.0.2",
364
- "@vitest/browser-playwright": "5.0.1",
363
+ "@vitest/browser-playwright": "5.0.4",
365
364
  "@vitest/browser-webdriverio": "5.0.0",
366
- "@voidzero-dev/vite-plus-prompts": "1.0.0",
367
- "bingo": "^0.9.3",
365
+ "@voidzero-dev/vite-plus-prompts": "1.2.0",
366
+ "@voidzero-dev/vite-task-client": "0.2.0",
367
+ "bingo": "^0.13.2",
368
368
  "cac": "^7.0.0",
369
369
  "cross-spawn": "^7.0.5",
370
370
  "detect-indent": "^7.0.2",
371
371
  "detect-newline": "^4.0.1",
372
372
  "glob": "^13.0.0",
373
373
  "jsonc-parser": "^3.3.1",
374
- "lint-staged": "^17.5.1",
374
+ "lint-staged": "^17.6.0",
375
375
  "minimatch": "^10.0.3",
376
376
  "nanotar": "^0.3.0",
377
377
  "picocolors": "^1.1.1",
378
- "semver": "^7.8.0",
379
- "tsdown": "^0.23.0",
378
+ "tsdown": "^0.23.1",
380
379
  "validate-npm-package-name": "^7.0.2",
380
+ "verkit": "^0.5.0",
381
381
  "yaml": "^2.8.1",
382
- "zod": "^3.25.76"
382
+ "zod": "^4.4.3"
383
383
  },
384
384
  "peerDependencies": {
385
- "@vitest/browser-playwright": "5.0.1",
386
- "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0"
385
+ "@vitest/browser-playwright": "5.0.4",
386
+ "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0",
387
+ "playwright": "*"
387
388
  },
388
389
  "peerDependenciesMeta": {
389
390
  "@vitest/browser-playwright": {
@@ -391,6 +392,9 @@
391
392
  },
392
393
  "@vitest/browser-webdriverio": {
393
394
  "optional": true
395
+ },
396
+ "playwright": {
397
+ "optional": true
394
398
  }
395
399
  },
396
400
  "napi": {
@@ -411,14 +415,14 @@
411
415
  "node": "^22.18.0 || ^24.11.0 || >=26.0.0"
412
416
  },
413
417
  "optionalDependencies": {
414
- "@voidzero-dev/vite-plus-darwin-arm64": "1.0.0",
415
- "@voidzero-dev/vite-plus-darwin-x64": "1.0.0",
416
- "@voidzero-dev/vite-plus-linux-arm64-gnu": "1.0.0",
417
- "@voidzero-dev/vite-plus-linux-arm64-musl": "1.0.0",
418
- "@voidzero-dev/vite-plus-linux-x64-gnu": "1.0.0",
419
- "@voidzero-dev/vite-plus-linux-x64-musl": "1.0.0",
420
- "@voidzero-dev/vite-plus-win32-x64-msvc": "1.0.0",
421
- "@voidzero-dev/vite-plus-win32-arm64-msvc": "1.0.0"
418
+ "@voidzero-dev/vite-plus-darwin-arm64": "1.2.0",
419
+ "@voidzero-dev/vite-plus-darwin-x64": "1.2.0",
420
+ "@voidzero-dev/vite-plus-linux-arm64-gnu": "1.2.0",
421
+ "@voidzero-dev/vite-plus-linux-arm64-musl": "1.2.0",
422
+ "@voidzero-dev/vite-plus-linux-x64-gnu": "1.2.0",
423
+ "@voidzero-dev/vite-plus-linux-x64-musl": "1.2.0",
424
+ "@voidzero-dev/vite-plus-win32-x64-msvc": "1.2.0",
425
+ "@voidzero-dev/vite-plus-win32-arm64-msvc": "1.2.0"
422
426
  },
423
427
  "scripts": {
424
428
  "build": "oxnode -C dev ./build.ts",
File without changes
@@ -13,8 +13,8 @@
13
13
  "dev": "node bin/index.ts"
14
14
  },
15
15
  "dependencies": {
16
- "bingo": "^0.9.3",
17
- "zod": "^3.25.76"
16
+ "bingo": "^0.13.2",
17
+ "zod": "^4.4.3"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/node": "catalog:",
@@ -42,6 +42,7 @@ export default createTemplate({
42
42
  module: 'NodeNext',
43
43
  moduleResolution: 'NodeNext',
44
44
  outDir: 'lib',
45
+ rootDir: 'src',
45
46
  skipLibCheck: true,
46
47
  strict: true,
47
48
  target: 'ES2022',
@@ -1,2 +0,0 @@
1
- import { n as runCommandSilently } from "./command-CguLh2KL.js";
2
- export { runCommandSilently };