vite-plus 0.0.0-0bfcc90f.20260209-0731

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 (148) hide show
  1. package/LICENSE +41 -0
  2. package/README.md +117 -0
  3. package/bin/vite +7 -0
  4. package/binding/index.cjs +764 -0
  5. package/binding/index.d.cts +31 -0
  6. package/binding/index.d.ts +1 -0
  7. package/binding/index.js +1 -0
  8. package/dist/bin.d.ts +11 -0
  9. package/dist/bin.js +38 -0
  10. package/dist/client/client.mjs +1 -0
  11. package/dist/client/env.mjs +1 -0
  12. package/dist/client.d.ts +1 -0
  13. package/dist/define-config.cjs +47 -0
  14. package/dist/define-config.d.ts +12 -0
  15. package/dist/define-config.js +44 -0
  16. package/dist/index.cjs +8 -0
  17. package/dist/index.d.cts +1 -0
  18. package/dist/index.d.ts +23 -0
  19. package/dist/index.js +5 -0
  20. package/dist/internal.d.ts +1 -0
  21. package/dist/internal.js +1 -0
  22. package/dist/lib-bin.d.ts +2 -0
  23. package/dist/lib-bin.js +98 -0
  24. package/dist/lib.d.ts +10 -0
  25. package/dist/lib.js +1 -0
  26. package/dist/module-runner.d.ts +1 -0
  27. package/dist/module-runner.js +1 -0
  28. package/dist/oxfmt-config.d.ts +1 -0
  29. package/dist/oxfmt-config.js +0 -0
  30. package/dist/oxlint-config.d.ts +498 -0
  31. package/dist/oxlint-config.js +301 -0
  32. package/dist/resolve-doc.d.ts +23 -0
  33. package/dist/resolve-doc.js +33 -0
  34. package/dist/resolve-fmt.d.ts +26 -0
  35. package/dist/resolve-fmt.js +34 -0
  36. package/dist/resolve-lib.d.ts +22 -0
  37. package/dist/resolve-lib.js +31 -0
  38. package/dist/resolve-lint.d.ts +26 -0
  39. package/dist/resolve-lint.js +58 -0
  40. package/dist/resolve-test.d.ts +24 -0
  41. package/dist/resolve-test.js +37 -0
  42. package/dist/resolve-vite-config.d.ts +1 -0
  43. package/dist/resolve-vite-config.js +19 -0
  44. package/dist/resolve-vite.d.ts +25 -0
  45. package/dist/resolve-vite.js +40 -0
  46. package/dist/run-config.d.ts +49 -0
  47. package/dist/run-config.js +0 -0
  48. package/dist/test/browser/context.d.ts +2 -0
  49. package/dist/test/browser/context.js +1 -0
  50. package/dist/test/browser/providers/playwright.d.ts +2 -0
  51. package/dist/test/browser/providers/playwright.js +1 -0
  52. package/dist/test/browser/providers/preview.d.ts +2 -0
  53. package/dist/test/browser/providers/preview.js +1 -0
  54. package/dist/test/browser/providers/webdriverio.d.ts +2 -0
  55. package/dist/test/browser/providers/webdriverio.js +1 -0
  56. package/dist/test/browser-compat.js +1 -0
  57. package/dist/test/browser-playwright.d.ts +2 -0
  58. package/dist/test/browser-playwright.js +1 -0
  59. package/dist/test/browser-preview.d.ts +2 -0
  60. package/dist/test/browser-preview.js +1 -0
  61. package/dist/test/browser-webdriverio.d.ts +2 -0
  62. package/dist/test/browser-webdriverio.js +1 -0
  63. package/dist/test/browser.d.ts +2 -0
  64. package/dist/test/browser.js +1 -0
  65. package/dist/test/client.js +1 -0
  66. package/dist/test/config.cjs +1 -0
  67. package/dist/test/config.d.ts +2 -0
  68. package/dist/test/config.js +1 -0
  69. package/dist/test/context.d.ts +2 -0
  70. package/dist/test/context.js +1 -0
  71. package/dist/test/coverage.d.ts +2 -0
  72. package/dist/test/coverage.js +1 -0
  73. package/dist/test/environments.d.ts +2 -0
  74. package/dist/test/environments.js +1 -0
  75. package/dist/test/globals.d.ts +2 -0
  76. package/dist/test/import-meta.d.ts +2 -0
  77. package/dist/test/importMeta.d.ts +2 -0
  78. package/dist/test/index.cjs +1 -0
  79. package/dist/test/index.d.cts +2 -0
  80. package/dist/test/index.d.ts +2 -0
  81. package/dist/test/index.js +1 -0
  82. package/dist/test/internal/browser.d.ts +2 -0
  83. package/dist/test/internal/browser.js +1 -0
  84. package/dist/test/internal/module-runner.d.ts +2 -0
  85. package/dist/test/internal/module-runner.js +1 -0
  86. package/dist/test/jsdom.d.ts +2 -0
  87. package/dist/test/locators.js +1 -0
  88. package/dist/test/matchers.js +1 -0
  89. package/dist/test/mocker.d.ts +2 -0
  90. package/dist/test/mocker.js +1 -0
  91. package/dist/test/node.d.ts +2 -0
  92. package/dist/test/node.js +1 -0
  93. package/dist/test/optional-types.js.d.ts +2 -0
  94. package/dist/test/plugins/browser-client.js +1 -0
  95. package/dist/test/plugins/browser-context.js +1 -0
  96. package/dist/test/plugins/browser-locators.js +1 -0
  97. package/dist/test/plugins/browser-playwright.js +1 -0
  98. package/dist/test/plugins/browser-preview.js +1 -0
  99. package/dist/test/plugins/browser-webdriverio.js +1 -0
  100. package/dist/test/plugins/browser.js +1 -0
  101. package/dist/test/plugins/expect.js +1 -0
  102. package/dist/test/plugins/mocker-automock.js +1 -0
  103. package/dist/test/plugins/mocker-browser.js +1 -0
  104. package/dist/test/plugins/mocker-node.js +1 -0
  105. package/dist/test/plugins/mocker-redirect.js +1 -0
  106. package/dist/test/plugins/mocker-register.js +1 -0
  107. package/dist/test/plugins/mocker.js +1 -0
  108. package/dist/test/plugins/pretty-format.js +1 -0
  109. package/dist/test/plugins/runner-types.js +1 -0
  110. package/dist/test/plugins/runner-utils.js +1 -0
  111. package/dist/test/plugins/runner.js +1 -0
  112. package/dist/test/plugins/snapshot-environment.js +1 -0
  113. package/dist/test/plugins/snapshot-manager.js +1 -0
  114. package/dist/test/plugins/snapshot.js +1 -0
  115. package/dist/test/plugins/spy.js +1 -0
  116. package/dist/test/plugins/utils-constants.js +1 -0
  117. package/dist/test/plugins/utils-diff.js +1 -0
  118. package/dist/test/plugins/utils-display.js +1 -0
  119. package/dist/test/plugins/utils-error.js +1 -0
  120. package/dist/test/plugins/utils-helpers.js +1 -0
  121. package/dist/test/plugins/utils-highlight.js +1 -0
  122. package/dist/test/plugins/utils-offset.js +1 -0
  123. package/dist/test/plugins/utils-resolver.js +1 -0
  124. package/dist/test/plugins/utils-serialize.js +1 -0
  125. package/dist/test/plugins/utils-source-map.js +1 -0
  126. package/dist/test/plugins/utils-timers.js +1 -0
  127. package/dist/test/plugins/utils.js +1 -0
  128. package/dist/test/reporters.d.ts +2 -0
  129. package/dist/test/reporters.js +1 -0
  130. package/dist/test/runners.d.ts +2 -0
  131. package/dist/test/runners.js +1 -0
  132. package/dist/test/snapshot.d.ts +2 -0
  133. package/dist/test/snapshot.js +1 -0
  134. package/dist/test/suite.d.ts +2 -0
  135. package/dist/test/suite.js +1 -0
  136. package/dist/test/utils.js +1 -0
  137. package/dist/test/worker.d.ts +2 -0
  138. package/dist/test/worker.js +1 -0
  139. package/dist/types/customEvent.d.ts +1 -0
  140. package/dist/types/hmrPayload.d.ts +1 -0
  141. package/dist/types/hot.d.ts +1 -0
  142. package/dist/types/import-meta.d.ts +1 -0
  143. package/dist/types/importGlob.d.ts +1 -0
  144. package/dist/types/importMeta.d.ts +1 -0
  145. package/dist/types/metadata.d.ts +1 -0
  146. package/dist/utils.d.ts +6 -0
  147. package/dist/utils.js +14 -0
  148. package/package.json +333 -0
package/LICENSE ADDED
@@ -0,0 +1,41 @@
1
+ # Business Source License 1.1
2
+
3
+ License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved.
4
+
5
+ “Business Source License” is a trademark of MariaDB Corporation Ab.
6
+
7
+ ---
8
+
9
+ Licensor: VoidZero Inc.
10
+
11
+ Licensed Work: The Licensed Work is (c) 2025 VoidZero Inc.
12
+
13
+ Additional Use Grant: TBA
14
+
15
+ Change Date: Four years from the date the Licensed Work is published
16
+
17
+ Change License: TBA
18
+
19
+ ---
20
+
21
+ Business Source License 1.1
22
+
23
+ License text copyright © 2017 MariaDB Corporation Ab, All Rights Reserved. "Business Source License" is a trademark of MariaDB Corporation Ab.
24
+
25
+ Terms
26
+
27
+ The Licensor hereby grants you the right to copy, modify, create derivative works, redistribute, and make non-production use of the Licensed Work. The Licensor may make an Additional Use Grant, above, permitting limited production use.
28
+
29
+ Effective on the Change Date, or the fourth anniversary of the first publicly available distribution of a specific version of the Licensed Work under this License, whichever comes first, the Licensor hereby grants you rights under the terms of the Change License, and the rights granted in the paragraph above terminate.
30
+
31
+ If your use of the Licensed Work does not comply with the requirements currently in effect as described in this License, you must purchase a commercial license from the Licensor, its affiliated entities, or authorized resellers, or you must refrain from using the Licensed Work.
32
+
33
+ All copies of the original and modified Licensed Work, and derivative works of the Licensed Work, are subject to this License. This License applies separately for each version of the Licensed Work and the Change Date may vary for each version of the Licensed Work released by Licensor.
34
+
35
+ You must conspicuously display this License on each original or modified copy of the Licensed Work. If you receive the Licensed Work in original or modified form from a third party, the terms and conditions set forth in this License apply to your use of that work.
36
+
37
+ Any use of the Licensed Work in violation of this License will automatically terminate your rights under this License for the current and all other versions of the Licensed Work.
38
+
39
+ This License does not grant you any right in any trademark or logo of Licensor or its affiliates (provided that you may use a trademark or logo of Licensor as expressly required by this License).
40
+
41
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE.
package/README.md ADDED
@@ -0,0 +1,117 @@
1
+ # VITE+(⚡︎) Local CLI
2
+
3
+ **The Unified Toolchain for the Web**
4
+ _dev, build, test, lint, format, monorepo caching & more in a single dependency, built for scale, speed, and sanity_
5
+
6
+ This package provides the project-local version of Vite+. The global `vite` command automatically delegates to this package for all project-specific tasks.
7
+
8
+ ---
9
+
10
+ Vite+ combines [Vite](https://vite.dev/), [Vitest](https://vitest.dev/), [Oxlint](https://oxc.rs/docs/guide/usage/linter.html), [Oxfmt](https://oxc.rs/docs/guide/usage/formatter.html), [tsdown](https://tsdown.dev/) and [Rolldown](https://rolldown.rs/) as a single zero-config toolchain:
11
+
12
+ - **Dev Server:** Powered by Vite's fast development experience with native ES modules and instant HMR
13
+ - **Build Tool:** Optimized production builds using Rolldown and Oxc
14
+ - **Testing:** Seamless Vitest integration with fast feedback loops
15
+ - **Linting:** Ships with Oxlint for quick code quality checks
16
+ - **Task Runner:** Monorepo task execution with automated caching and dependency resolution
17
+ - **Package Management:** Vite+ wraps package managers to provide a unified interface
18
+
19
+ Vite+ is built to scale with your codebase while reducing your devtools to a single dependency.
20
+
21
+ ## Getting Started
22
+
23
+ Install Vite+ globally as `vp`:
24
+
25
+ For Linux or macOS:
26
+
27
+ ```bash
28
+ curl -fsSL https://viteplus.dev/install.sh | bash
29
+ ```
30
+
31
+ For Windows:
32
+
33
+ ```bash
34
+ irm https://viteplus.dev/install.ps1 | iex
35
+ ```
36
+
37
+ `vp` handles the full development lifecycle such as package management, development servers, linting, formatting, testing and building for production.
38
+
39
+ ### Vite+ Commands
40
+
41
+ - **dev** - Run the development server
42
+ - **build** - Build for production
43
+ - **lint** - Lint code
44
+ - **test** - Run tests
45
+ - **fmt** - Format code
46
+ - **lib** - Build library
47
+ - **migrate** - Migrate an existing project to Vite+
48
+ - **new** - Create a new monorepo package (in-project) or a new project (global)
49
+ - **run** - Run tasks from `package.json` scripts
50
+
51
+ ### Package Manager Commands
52
+
53
+ Vite+ automatically detects and wraps the underlying package manager such as pnpm, npm, or Yarn through the `packageManager` field in `package.json` or package manager-specific lockfiles.
54
+
55
+ - **install** - Install all dependencies, or add packages if package names are provided
56
+ - **add** - Add packages to dependencies
57
+ - **remove** - Remove packages from dependencies
58
+ - **dlx** - Execute a package binary without installing it as a dependency
59
+ - **info** - View package information from the registry, including latest versions
60
+ - **link** - Link packages for local development
61
+ - **outdated** - Check for outdated packages
62
+ - **pm** - Forward a command to the package manager
63
+ - **unlink** - Unlink packages
64
+ - **update** - Update packages to their latest versions
65
+ - **why** - Show why a package is installed
66
+
67
+ ### Scaffolding your first Vite+ project
68
+
69
+ Use `vp new` to create a new project:
70
+
71
+ ```bash
72
+ vp new
73
+ ```
74
+
75
+ You can run `vp new` inside of a project to add new apps or libraries to your project.
76
+
77
+ ### Migrating an existing project
78
+
79
+ You can migrate an existing project to Vite+:
80
+
81
+ ```bash
82
+ vp migrate
83
+ ```
84
+
85
+ #### Manual Installation & Migration
86
+
87
+ If you are manually migrating a project to Vite+, install these dev dependencies first:
88
+
89
+ ```bash
90
+ npm install -D vite-plus @voidzero-dev/vite-plus-core@latest
91
+ ```
92
+
93
+ You need to add overrides to your package manager for `vite` and `vitest` so that other packages depending on Vite and Vitest will use the Vite+ versions:
94
+
95
+ ```json
96
+ "overrides": {
97
+ "vite": "npm:@voidzero-dev/vite-plus-core@latest",
98
+ "vitest": "npm:@voidzero-dev/vite-plus-test@latest"
99
+ }
100
+ ```
101
+
102
+ If you are using `pnpm`, add this to your `pnpm-workspace.yaml`:
103
+
104
+ ```yaml
105
+ overrides:
106
+ vite: npm:@voidzero-dev/vite-plus-core@latest
107
+ vitest: npm:@voidzero-dev/vite-plus-test@latest
108
+ ```
109
+
110
+ Or, if you are using Yarn:
111
+
112
+ ```json
113
+ "resolutions": {
114
+ "vite": "npm:@voidzero-dev/vite-plus-core@latest",
115
+ "vitest": "npm:@voidzero-dev/vite-plus-test@latest"
116
+ }
117
+ ```
package/bin/vite ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+
3
+ import module from 'node:module';
4
+ if (module.enableCompileCache) {
5
+ module.enableCompileCache();
6
+ }
7
+ import '../dist/bin.js';