vite-plus 0.1.24 → 0.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 (174) hide show
  1. package/LICENSE +30 -0
  2. package/README.md +8 -6
  3. package/bin/oxfmt +5 -2
  4. package/bin/oxlint +12 -2
  5. package/binding/index.cjs +84 -67
  6. package/binding/index.d.cts +155 -4
  7. package/dist/{agent-Nuk-9l77.js → agent-BD31CsvU.js} +941 -70
  8. package/dist/bin.js +22 -30
  9. package/dist/{compat-DXZgnEyq.js → compat-Cql3K40m.js} +1 -1
  10. package/dist/config/bin.js +30 -14
  11. package/dist/constants-CrfJQIUX.js +66 -0
  12. package/dist/create/bin.d.ts +6 -0
  13. package/dist/create/bin.js +508 -232
  14. package/dist/define-config-2tfJoXr1.d.ts +305 -0
  15. package/dist/define-config-BGSjF6Xp.cjs +488 -0
  16. package/dist/define-config-DJUehepE.js +445 -0
  17. package/dist/define-config.cjs +8 -1
  18. package/dist/define-config.d.ts +2 -2
  19. package/dist/define-config.js +2 -2
  20. package/dist/dist-DRJUd9bL.js +3 -0
  21. package/dist/{dist-BgQuvbtq.js → dist-Oxo16Y0q.js} +4 -4
  22. package/dist/index.cjs +9 -4
  23. package/dist/index.d.ts +3 -3
  24. package/dist/index.js +3 -3
  25. package/dist/{main-DpJl3LoU.js → json-Dn87fvjk.js} +137 -1
  26. package/dist/migration/bin.js +292 -76
  27. package/dist/{oxlint-plugin-config-B89iKTKN.js → oxlint-plugin-config-q8a5PFch.js} +1 -1
  28. package/dist/oxlint-plugin.js +11 -3
  29. package/dist/pack-bin.js +44 -15
  30. package/dist/{package-PmBUZ-ve.js → package-BHirM1_v.js} +3 -138
  31. package/dist/{report-DgSBQUdz.js → report-BHSkWqRR.js} +2 -0
  32. package/dist/{resolve-vite-config-TTvhycU1.js → resolve-vite-config-CmdsfQzS.js} +13 -4
  33. package/dist/staged/bin.js +3 -3
  34. package/dist/test/_at-vitest-browser/context.d.ts +2 -0
  35. package/dist/test/_at-vitest-browser.d.ts +2 -0
  36. package/dist/test/browser/context.d.ts +2 -2
  37. package/dist/test/browser/context.js +1 -1
  38. package/dist/test/browser/providers/playwright/context.d.ts +1 -0
  39. package/dist/test/browser/providers/playwright/context.js +1 -0
  40. package/dist/test/browser/providers/playwright.d.ts +124 -2
  41. package/dist/test/browser/providers/playwright.js +1 -1
  42. package/dist/test/browser/providers/preview/context.d.ts +1 -0
  43. package/dist/test/browser/providers/preview/context.js +1 -0
  44. package/dist/test/browser/providers/preview.d.ts +32 -2
  45. package/dist/test/browser/providers/preview.js +1 -1
  46. package/dist/test/browser/providers/webdriverio/context.d.ts +1 -0
  47. package/dist/test/browser/providers/webdriverio/context.js +1 -0
  48. package/dist/test/browser/providers/webdriverio.d.ts +77 -2
  49. package/dist/test/browser/providers/webdriverio.js +1 -1
  50. package/dist/test/browser-compat.d.ts +2 -0
  51. package/dist/test/browser-compat.js +1 -1
  52. package/dist/test/browser-playwright/context.d.ts +1 -0
  53. package/dist/test/browser-playwright/context.js +1 -0
  54. package/dist/test/browser-playwright.d.ts +124 -2
  55. package/dist/test/browser-playwright.js +1 -1
  56. package/dist/test/browser-preview/context.d.ts +1 -0
  57. package/dist/test/browser-preview/context.js +1 -0
  58. package/dist/test/browser-preview.d.ts +32 -2
  59. package/dist/test/browser-preview.js +1 -1
  60. package/dist/test/browser-webdriverio/context.d.ts +1 -0
  61. package/dist/test/browser-webdriverio/context.js +1 -0
  62. package/dist/test/browser-webdriverio.d.ts +77 -2
  63. package/dist/test/browser-webdriverio.js +1 -1
  64. package/dist/test/browser.d.ts +2 -2
  65. package/dist/test/browser.js +1 -1
  66. package/dist/test/client.js +1 -1
  67. package/dist/test/config.cjs +1 -1
  68. package/dist/test/config.d.ts +2 -2
  69. package/dist/test/config.js +1 -1
  70. package/dist/test/context.d.ts +942 -2
  71. package/dist/test/context.js +1 -1
  72. package/dist/test/coverage.d.ts +2 -2
  73. package/dist/test/coverage.js +1 -1
  74. package/dist/test/environments.d.ts +2 -2
  75. package/dist/test/environments.js +1 -1
  76. package/dist/test/globals.d.ts +2 -2
  77. package/dist/test/import-meta.d.ts +2 -2
  78. package/dist/test/importMeta.d.ts +2 -2
  79. package/dist/test/index.cjs +1 -1
  80. package/dist/test/index.d.cts +2 -2
  81. package/dist/test/index.d.ts +2 -2
  82. package/dist/test/index.js +1 -1
  83. package/dist/test/internal/browser.d.ts +2 -2
  84. package/dist/test/internal/browser.js +1 -1
  85. package/dist/test/jsdom.d.ts +2 -2
  86. package/dist/test/locators.d.ts +294 -0
  87. package/dist/test/locators.js +1 -1
  88. package/dist/test/matchers.d.ts +29 -0
  89. package/dist/test/matchers.js +1 -1
  90. package/dist/test/node.d.ts +2 -2
  91. package/dist/test/node.js +1 -1
  92. package/dist/test/optional-runtime-types.js.d.ts +2 -2
  93. package/dist/test/optional-types.js.d.ts +2 -2
  94. package/dist/test/plugins/browser-client.js +1 -1
  95. package/dist/test/plugins/browser-context.js +1 -1
  96. package/dist/test/plugins/browser-locators.js +1 -1
  97. package/dist/test/plugins/browser-playwright.js +1 -1
  98. package/dist/test/plugins/browser-preview.js +1 -1
  99. package/dist/test/plugins/browser-webdriverio.js +1 -1
  100. package/dist/test/plugins/browser.js +1 -1
  101. package/dist/test/plugins/expect.js +1 -1
  102. package/dist/test/plugins/mocker-automock.js +1 -1
  103. package/dist/test/plugins/mocker-browser.js +1 -1
  104. package/dist/test/plugins/mocker-node.js +1 -1
  105. package/dist/test/plugins/mocker-redirect.js +1 -1
  106. package/dist/test/plugins/mocker-register.js +1 -1
  107. package/dist/test/plugins/mocker-transforms.js +1 -1
  108. package/dist/test/plugins/mocker.js +1 -1
  109. package/dist/test/plugins/pretty-format.js +1 -1
  110. package/dist/test/plugins/runner-types.js +1 -1
  111. package/dist/test/plugins/runner-utils.js +1 -1
  112. package/dist/test/plugins/runner.js +1 -1
  113. package/dist/test/plugins/snapshot-environment.js +1 -1
  114. package/dist/test/plugins/snapshot-manager.js +1 -1
  115. package/dist/test/plugins/snapshot.js +1 -1
  116. package/dist/test/plugins/spy.js +1 -1
  117. package/dist/test/plugins/utils-constants.js +1 -1
  118. package/dist/test/plugins/utils-diff.js +1 -1
  119. package/dist/test/plugins/utils-display.js +1 -1
  120. package/dist/test/plugins/utils-error.js +1 -1
  121. package/dist/test/plugins/utils-helpers.js +1 -1
  122. package/dist/test/plugins/utils-offset.js +1 -1
  123. package/dist/test/plugins/utils-resolver.js +1 -1
  124. package/dist/test/plugins/utils-serialize.js +1 -1
  125. package/dist/test/plugins/utils-source-map-node.js +1 -1
  126. package/dist/test/plugins/utils-source-map.js +1 -1
  127. package/dist/test/plugins/utils-timers.js +1 -1
  128. package/dist/test/plugins/utils.js +1 -1
  129. package/dist/test/reporters.d.ts +2 -2
  130. package/dist/test/reporters.js +1 -1
  131. package/dist/test/runners.d.ts +2 -2
  132. package/dist/test/runners.js +1 -1
  133. package/dist/test/runtime.d.ts +2 -2
  134. package/dist/test/runtime.js +1 -1
  135. package/dist/test/snapshot.d.ts +2 -2
  136. package/dist/test/snapshot.js +1 -1
  137. package/dist/test/suite.d.ts +2 -2
  138. package/dist/test/suite.js +1 -1
  139. package/dist/test/utils.js +1 -1
  140. package/dist/test/worker.d.ts +2 -2
  141. package/dist/test/worker.js +1 -1
  142. package/dist/{tsconfig-DFb5BKyT.js → tsconfig-CJ_StdFc.js} +563 -229
  143. package/dist/tsgolint-path-B-yOos8p.js +32 -0
  144. package/dist/tsgolint-path.d.ts +8 -0
  145. package/dist/tsgolint-path.js +2 -0
  146. package/dist/version.js +3 -3
  147. package/dist/versions.d.ts +1 -1
  148. package/dist/versions.js +6 -6
  149. package/dist/{workspace-NL-m9wgM.js → workspace-Cjoc1c_A.js} +11 -9
  150. package/docs/_data/team.ts +2 -1
  151. package/docs/config/create.md +36 -1
  152. package/docs/config/index.md +7 -5
  153. package/docs/guide/commit-hooks.md +9 -0
  154. package/docs/guide/create.md +106 -2
  155. package/docs/guide/env.md +33 -5
  156. package/docs/guide/index.md +5 -3
  157. package/docs/guide/install.md +31 -12
  158. package/docs/guide/migrate.md +13 -3
  159. package/docs/guide/troubleshooting.md +2 -2
  160. package/docs/guide/upgrade.md +26 -7
  161. package/docs/package.json +3 -3
  162. package/docs/pnpm-lock.yaml +298 -395
  163. package/package.json +103 -55
  164. package/templates/generator/bin/index.ts +6 -3
  165. package/templates/generator/package.json +2 -3
  166. package/templates/generator/src/template.ts +0 -2
  167. package/templates/monorepo/package.json +1 -1
  168. package/dist/constants-DCBWlNrn.js +0 -33
  169. package/dist/define-config-BR1Y88zz.cjs +0 -84
  170. package/dist/define-config-BRC7qPNE.js +0 -21
  171. package/dist/define-config-COdn-tsn.d.ts +0 -177
  172. package/dist/dist-Bapm49IR.js +0 -3
  173. package/dist/test/plugins/utils-highlight.js +0 -1
  174. /package/dist/{chunk-DnnnRqeS.js → rolldown-runtime-DnnnRqeS.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plus",
3
- "version": "0.1.24",
3
+ "version": "0.2.0",
4
4
  "description": "The Unified Toolchain for the Web",
5
5
  "homepage": "https://viteplus.dev/guide",
6
6
  "bugs": {
@@ -96,7 +96,6 @@
96
96
  "./test": {
97
97
  "import": {
98
98
  "types": "./dist/test/index.d.ts",
99
- "node": "./dist/test/index.js",
100
99
  "default": "./dist/test/index.js"
101
100
  },
102
101
  "require": {
@@ -148,8 +147,8 @@
148
147
  },
149
148
  "./test/config": {
150
149
  "types": "./dist/test/config.d.ts",
151
- "default": "./dist/test/config.js",
152
- "require": "./dist/test/config.cjs"
150
+ "require": "./dist/test/config.cjs",
151
+ "default": "./dist/test/config.js"
153
152
  },
154
153
  "./test/coverage": {
155
154
  "types": "./dist/test/coverage.d.ts",
@@ -171,8 +170,57 @@
171
170
  "types": "./dist/test/worker.d.ts",
172
171
  "default": "./dist/test/worker.js"
173
172
  },
174
- "./test/browser-compat": {
175
- "default": "./dist/test/browser-compat.js"
173
+ "./test/browser-playwright": {
174
+ "types": "./dist/test/browser-playwright.d.ts",
175
+ "default": "./dist/test/browser-playwright.js"
176
+ },
177
+ "./test/browser/providers/playwright": {
178
+ "types": "./dist/test/browser/providers/playwright.d.ts",
179
+ "default": "./dist/test/browser/providers/playwright.js"
180
+ },
181
+ "./test/browser-playwright/context": {
182
+ "types": "./dist/test/browser-playwright/context.d.ts",
183
+ "default": "./dist/test/browser-playwright/context.js"
184
+ },
185
+ "./test/browser/providers/playwright/context": {
186
+ "types": "./dist/test/browser/providers/playwright/context.d.ts",
187
+ "default": "./dist/test/browser/providers/playwright/context.js"
188
+ },
189
+ "./test/browser-preview": {
190
+ "types": "./dist/test/browser-preview.d.ts",
191
+ "default": "./dist/test/browser-preview.js"
192
+ },
193
+ "./test/browser/providers/preview": {
194
+ "types": "./dist/test/browser/providers/preview.d.ts",
195
+ "default": "./dist/test/browser/providers/preview.js"
196
+ },
197
+ "./test/browser-preview/context": {
198
+ "types": "./dist/test/browser-preview/context.d.ts",
199
+ "default": "./dist/test/browser-preview/context.js"
200
+ },
201
+ "./test/browser/providers/preview/context": {
202
+ "types": "./dist/test/browser/providers/preview/context.d.ts",
203
+ "default": "./dist/test/browser/providers/preview/context.js"
204
+ },
205
+ "./test/browser-webdriverio": {
206
+ "types": "./dist/test/browser-webdriverio.d.ts",
207
+ "default": "./dist/test/browser-webdriverio.js"
208
+ },
209
+ "./test/browser/providers/webdriverio": {
210
+ "types": "./dist/test/browser/providers/webdriverio.d.ts",
211
+ "default": "./dist/test/browser/providers/webdriverio.js"
212
+ },
213
+ "./test/browser-webdriverio/context": {
214
+ "types": "./dist/test/browser-webdriverio/context.d.ts",
215
+ "default": "./dist/test/browser-webdriverio/context.js"
216
+ },
217
+ "./test/browser/providers/webdriverio/context": {
218
+ "types": "./dist/test/browser/providers/webdriverio/context.d.ts",
219
+ "default": "./dist/test/browser/providers/webdriverio/context.js"
220
+ },
221
+ "./test/browser/context": {
222
+ "types": "./dist/test/browser/context.d.ts",
223
+ "default": "./dist/test/browser/context.js"
176
224
  },
177
225
  "./test/client": {
178
226
  "default": "./dist/test/client.js"
@@ -181,42 +229,20 @@
181
229
  "types": "./dist/test/context.d.ts",
182
230
  "default": "./dist/test/context.js"
183
231
  },
184
- "./test/browser/context": {
185
- "types": "./dist/test/browser/context.d.ts",
186
- "default": "./dist/test/browser/context.js"
187
- },
188
232
  "./test/locators": {
233
+ "types": "./dist/test/locators.d.ts",
189
234
  "default": "./dist/test/locators.js"
190
235
  },
191
236
  "./test/matchers": {
237
+ "types": "./dist/test/matchers.d.ts",
192
238
  "default": "./dist/test/matchers.js"
193
239
  },
194
240
  "./test/utils": {
195
241
  "default": "./dist/test/utils.js"
196
242
  },
197
- "./test/browser-playwright": {
198
- "types": "./dist/test/browser-playwright.d.ts",
199
- "default": "./dist/test/browser-playwright.js"
200
- },
201
- "./test/browser-webdriverio": {
202
- "types": "./dist/test/browser-webdriverio.d.ts",
203
- "default": "./dist/test/browser-webdriverio.js"
204
- },
205
- "./test/browser-preview": {
206
- "types": "./dist/test/browser-preview.d.ts",
207
- "default": "./dist/test/browser-preview.js"
208
- },
209
- "./test/browser/providers/playwright": {
210
- "types": "./dist/test/browser/providers/playwright.d.ts",
211
- "default": "./dist/test/browser/providers/playwright.js"
212
- },
213
- "./test/browser/providers/webdriverio": {
214
- "types": "./dist/test/browser/providers/webdriverio.d.ts",
215
- "default": "./dist/test/browser/providers/webdriverio.js"
216
- },
217
- "./test/browser/providers/preview": {
218
- "types": "./dist/test/browser/providers/preview.d.ts",
219
- "default": "./dist/test/browser/providers/preview.js"
243
+ "./test/browser-compat": {
244
+ "types": "./dist/test/browser-compat.d.ts",
245
+ "default": "./dist/test/browser-compat.js"
220
246
  },
221
247
  "./test/plugins/runner": {
222
248
  "default": "./dist/test/plugins/runner.js"
@@ -248,9 +274,6 @@
248
274
  "./test/plugins/utils-timers": {
249
275
  "default": "./dist/test/plugins/utils-timers.js"
250
276
  },
251
- "./test/plugins/utils-highlight": {
252
- "default": "./dist/test/plugins/utils-highlight.js"
253
- },
254
277
  "./test/plugins/utils-offset": {
255
278
  "default": "./dist/test/plugins/utils-offset.js"
256
279
  },
@@ -328,21 +351,33 @@
328
351
  }
329
352
  },
330
353
  "dependencies": {
331
- "@oxc-project/types": "=0.133.0",
332
- "@oxlint/plugins": "=1.61.0",
333
- "oxfmt": "=0.52.0",
334
- "oxlint": "=1.67.0",
354
+ "@oxc-project/types": "=0.136.0",
355
+ "@oxlint/plugins": "=1.68.0",
356
+ "@vitest/browser": "4.1.9",
357
+ "@vitest/browser-preview": "4.1.9",
358
+ "@vitest/expect": "4.1.9",
359
+ "@vitest/mocker": "4.1.9",
360
+ "@vitest/pretty-format": "4.1.9",
361
+ "@vitest/runner": "4.1.9",
362
+ "@vitest/snapshot": "4.1.9",
363
+ "@vitest/spy": "4.1.9",
364
+ "@vitest/utils": "4.1.9",
365
+ "oxfmt": "=0.55.0",
366
+ "oxlint": "=1.70.0",
335
367
  "oxlint-tsgolint": "=0.23.0",
336
- "@voidzero-dev/vite-plus-core": "0.1.24",
337
- "@voidzero-dev/vite-plus-test": "0.1.24"
368
+ "vitest": "4.1.9",
369
+ "@voidzero-dev/vite-plus-core": "0.2.0"
338
370
  },
339
371
  "devDependencies": {
340
- "@napi-rs/cli": "^3.6.1",
372
+ "@napi-rs/cli": "^3.7.1",
341
373
  "@nkzw/safe-word-list": "^3.1.0",
342
374
  "@oxc-node/core": "^0.1.0",
343
375
  "@types/cross-spawn": "^6.0.6",
344
376
  "@types/semver": "^7.7.1",
345
377
  "@types/validate-npm-package-name": "^4.0.2",
378
+ "@vitest/browser-playwright": "4.1.9",
379
+ "@vitest/browser-webdriverio": "4.1.9",
380
+ "bingo": "^0.9.3",
346
381
  "cac": "^7.0.0",
347
382
  "cross-spawn": "^7.0.5",
348
383
  "detect-indent": "^7.0.2",
@@ -354,14 +389,27 @@
354
389
  "mri": "^1.2.0",
355
390
  "nanotar": "^0.3.0",
356
391
  "picocolors": "^1.1.1",
357
- "rolldown-plugin-dts": "^0.25.1",
392
+ "rolldown-plugin-dts": "^0.25.2",
358
393
  "semver": "^7.8.0",
359
- "tsdown": "^0.22.1",
394
+ "tsdown": "^0.22.3",
360
395
  "validate-npm-package-name": "^7.0.2",
361
396
  "yaml": "^2.8.1",
397
+ "zod": "^3.25.76",
362
398
  "@voidzero-dev/vite-plus-prompts": "0.0.0",
363
399
  "@voidzero-dev/vite-plus-tools": "0.0.0",
364
- "vite": "npm:@voidzero-dev/vite-plus-core@0.1.24"
400
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.2.0"
401
+ },
402
+ "peerDependencies": {
403
+ "@vitest/browser-playwright": "4.1.9",
404
+ "@vitest/browser-webdriverio": "4.1.9"
405
+ },
406
+ "peerDependenciesMeta": {
407
+ "@vitest/browser-playwright": {
408
+ "optional": true
409
+ },
410
+ "@vitest/browser-webdriverio": {
411
+ "optional": true
412
+ }
365
413
  },
366
414
  "napi": {
367
415
  "binaryName": "vite-plus",
@@ -378,17 +426,17 @@
378
426
  ]
379
427
  },
380
428
  "engines": {
381
- "node": "^20.19.0 || >=22.12.0"
429
+ "node": "^22.18.0 || >=24.11.0"
382
430
  },
383
431
  "optionalDependencies": {
384
- "@voidzero-dev/vite-plus-darwin-arm64": "0.1.24",
385
- "@voidzero-dev/vite-plus-darwin-x64": "0.1.24",
386
- "@voidzero-dev/vite-plus-linux-arm64-gnu": "0.1.24",
387
- "@voidzero-dev/vite-plus-linux-arm64-musl": "0.1.24",
388
- "@voidzero-dev/vite-plus-linux-x64-gnu": "0.1.24",
389
- "@voidzero-dev/vite-plus-linux-x64-musl": "0.1.24",
390
- "@voidzero-dev/vite-plus-win32-x64-msvc": "0.1.24",
391
- "@voidzero-dev/vite-plus-win32-arm64-msvc": "0.1.24"
432
+ "@voidzero-dev/vite-plus-darwin-arm64": "0.2.0",
433
+ "@voidzero-dev/vite-plus-darwin-x64": "0.2.0",
434
+ "@voidzero-dev/vite-plus-linux-arm64-gnu": "0.2.0",
435
+ "@voidzero-dev/vite-plus-linux-arm64-musl": "0.2.0",
436
+ "@voidzero-dev/vite-plus-linux-x64-gnu": "0.2.0",
437
+ "@voidzero-dev/vite-plus-linux-x64-musl": "0.2.0",
438
+ "@voidzero-dev/vite-plus-win32-x64-msvc": "0.2.0",
439
+ "@voidzero-dev/vite-plus-win32-arm64-msvc": "0.2.0"
392
440
  },
393
441
  "scripts": {
394
442
  "build": "oxnode -C dev ./build.ts",
@@ -1,7 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { runTemplateCLI } from 'bingo';
3
+ import { runTemplateCLI, type Template } from 'bingo';
4
4
 
5
- import template from '../src/template.js';
5
+ import template from '../src/template.ts';
6
6
 
7
- process.exitCode = await runTemplateCLI(template);
7
+ // runTemplateCLI accepts the base `Template` type, which is wider than the
8
+ // strongly typed template returned by createTemplate(). Cast through `unknown`
9
+ // to bridge the two.
10
+ process.exitCode = await runTemplateCLI(template as unknown as Template);
@@ -4,7 +4,6 @@
4
4
  "private": true,
5
5
  "description": "A starter for creating a Vite+ code generator.",
6
6
  "keywords": [
7
- "bingo-template",
8
7
  "vite-plus-generator"
9
8
  ],
10
9
  "bin": "./bin/index.ts",
@@ -14,7 +13,7 @@
14
13
  "dev": "node bin/index.ts"
15
14
  },
16
15
  "dependencies": {
17
- "bingo": "^0.7.0",
16
+ "bingo": "^0.9.3",
18
17
  "zod": "^3.25.76"
19
18
  },
20
19
  "devDependencies": {
@@ -22,6 +21,6 @@
22
21
  "typescript": "catalog:"
23
22
  },
24
23
  "engines": {
25
- "node": ">=22.12.0"
24
+ "node": ">=22.18.0"
26
25
  }
27
26
  }
@@ -22,7 +22,6 @@ export default createTemplate({
22
22
  files: {
23
23
  'package.json': JSON.stringify(
24
24
  {
25
- // @ts-expect-error
26
25
  name: options.name,
27
26
  version: '0.0.0',
28
27
  type: 'module',
@@ -32,7 +31,6 @@ export default createTemplate({
32
31
  2,
33
32
  ),
34
33
  src: {
35
- // @ts-expect-error
36
34
  'index.ts': `export const name = '${options.name}';
37
35
  `,
38
36
  },
@@ -13,6 +13,6 @@
13
13
  "dev": "vp run website#dev"
14
14
  },
15
15
  "engines": {
16
- "node": ">=22.12.0"
16
+ "node": ">=22.18.0"
17
17
  }
18
18
  }
@@ -1,33 +0,0 @@
1
- import { createRequire } from "node:module";
2
- //#region src/utils/constants.ts
3
- const VITE_PLUS_NAME = "vite-plus";
4
- const VITE_PLUS_VERSION = process.env.VP_VERSION || "latest";
5
- const VITE_PLUS_OVERRIDE_PACKAGES = process.env.VP_OVERRIDE_PACKAGES ? JSON.parse(process.env.VP_OVERRIDE_PACKAGES) : {
6
- vite: "npm:@voidzero-dev/vite-plus-core@latest",
7
- vitest: "npm:@voidzero-dev/vite-plus-test@latest"
8
- };
9
- /**
10
- * When VP_FORCE_MIGRATE is set, force full dependency rewriting
11
- * even for projects already using vite-plus. Used by ecosystem CI to
12
- * override dependencies with locally built tgz packages.
13
- */
14
- function isForceOverrideMode() {
15
- return process.env.VP_FORCE_MIGRATE === "1";
16
- }
17
- const require = createRequire(import.meta.url);
18
- function resolve(path) {
19
- return require.resolve(path, { paths: [process.cwd(), import.meta.dirname] });
20
- }
21
- const BASEURL_TSCONFIG_WARNING = "Skipped typeAware/typeCheck: a tsconfig file contains baseUrl which is not yet supported by the oxlint type checker.\n Run `vp dlx @andrewbranch/ts5to6 --fixBaseUrl <tsconfig path>` to remove baseUrl from your tsconfig.";
22
- const BASEURL_TSCONFIG_FIX_PACKAGE = "@andrewbranch/ts5to6";
23
- const BASEURL_TSCONFIG_FIX_FLAG = "--fixBaseUrl";
24
- function createBaseUrlTsconfigFixArgs(target = ".") {
25
- return [BASEURL_TSCONFIG_FIX_FLAG, target];
26
- }
27
- const DEFAULT_ENVS = {
28
- JS_RUNTIME_VERSION: process.versions.node,
29
- JS_RUNTIME_NAME: process.release.name,
30
- NODE_PACKAGE_MANAGER: "vite-plus"
31
- };
32
- //#endregion
33
- export { VITE_PLUS_OVERRIDE_PACKAGES as a, isForceOverrideMode as c, VITE_PLUS_NAME as i, resolve as l, BASEURL_TSCONFIG_WARNING as n, VITE_PLUS_VERSION as o, DEFAULT_ENVS as r, createBaseUrlTsconfigFixArgs as s, BASEURL_TSCONFIG_FIX_PACKAGE as t };
@@ -1,84 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
7
- var __exportAll = (all, no_symbols) => {
8
- let target = {};
9
- for (var name in all) __defProp(target, name, {
10
- get: all[name],
11
- enumerable: true
12
- });
13
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
14
- return target;
15
- };
16
- var __copyProps = (to, from, except, desc) => {
17
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
18
- key = keys[i];
19
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
20
- get: ((k) => from[k]).bind(null, key),
21
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
22
- });
23
- }
24
- return to;
25
- };
26
- var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
- //#endregion
28
- let _voidzero_dev_vite_plus_test_config = require("@voidzero-dev/vite-plus-test/config");
29
- //#region src/define-config.ts
30
- var define_config_exports = /* @__PURE__ */ __exportAll({
31
- defineConfig: () => defineConfig,
32
- lazyPlugins: () => lazyPlugins
33
- });
34
- function defineConfig(config) {
35
- return (0, _voidzero_dev_vite_plus_test_config.defineConfig)(config);
36
- }
37
- function lazyPlugins(cb) {
38
- const cmd = process.env.VP_COMMAND;
39
- if (!cmd || VITE_COMMANDS.has(cmd)) {
40
- const result = cb();
41
- if (result instanceof Promise) return [result];
42
- return result;
43
- }
44
- }
45
- var VITE_COMMANDS;
46
- var init_define_config = __esmMin((() => {
47
- VITE_COMMANDS = new Set([
48
- "dev",
49
- "build",
50
- "test",
51
- "preview"
52
- ]);
53
- }));
54
- //#endregion
55
- Object.defineProperty(exports, "__toCommonJS", {
56
- enumerable: true,
57
- get: function() {
58
- return __toCommonJS;
59
- }
60
- });
61
- Object.defineProperty(exports, "defineConfig", {
62
- enumerable: true,
63
- get: function() {
64
- return defineConfig;
65
- }
66
- });
67
- Object.defineProperty(exports, "define_config_exports", {
68
- enumerable: true,
69
- get: function() {
70
- return define_config_exports;
71
- }
72
- });
73
- Object.defineProperty(exports, "init_define_config", {
74
- enumerable: true,
75
- get: function() {
76
- return init_define_config;
77
- }
78
- });
79
- Object.defineProperty(exports, "lazyPlugins", {
80
- enumerable: true,
81
- get: function() {
82
- return lazyPlugins;
83
- }
84
- });
@@ -1,21 +0,0 @@
1
- import { defineConfig } from "@voidzero-dev/vite-plus-test/config";
2
- //#region src/define-config.ts
3
- function defineConfig$1(config) {
4
- return defineConfig(config);
5
- }
6
- const VITE_COMMANDS = new Set([
7
- "dev",
8
- "build",
9
- "test",
10
- "preview"
11
- ]);
12
- function lazyPlugins(cb) {
13
- const cmd = process.env.VP_COMMAND;
14
- if (!cmd || VITE_COMMANDS.has(cmd)) {
15
- const result = cb();
16
- if (result instanceof Promise) return [result];
17
- return result;
18
- }
19
- }
20
- //#endregion
21
- export { lazyPlugins as n, defineConfig$1 as t };
@@ -1,177 +0,0 @@
1
- import { t as PackUserConfig } from "./pack-Ciiho0Tq.js";
2
- import { ConfigEnv } from "@voidzero-dev/vite-plus-test/config";
3
- import { PluginOption, UserConfig } from "@voidzero-dev/vite-plus-core";
4
- import { OxfmtConfig } from "oxfmt";
5
- import { OxlintConfig } from "oxlint";
6
-
7
- //#region src/run-config.d.ts
8
- type AutoInput = {
9
- /**
10
- * Automatically track which files the task reads
11
- */
12
- auto: boolean;
13
- };
14
- type Command = string | Array<string>;
15
- type GlobWithBase = {
16
- /**
17
- * The glob pattern (positive or negative starting with `!`)
18
- */
19
- pattern: string;
20
- /**
21
- * The base directory for resolving the pattern
22
- */
23
- base: InputBase;
24
- };
25
- type InputBase = "package" | "workspace";
26
- type Task = {
27
- /**
28
- * Command to run, or an array of commands to run in order.
29
- */
30
- command: Command;
31
- /**
32
- * The working directory for the task, relative to the package root (not workspace root).
33
- */
34
- cwd?: string;
35
- /**
36
- * Dependencies of this task. Use `package-name#task-name` to refer to tasks in other packages.
37
- */
38
- dependsOn?: Array<string>;
39
- } & ({
40
- /**
41
- * Whether to cache the task
42
- */
43
- cache?: true;
44
- /**
45
- * Environment variable names to be fingerprinted and passed to the task.
46
- */
47
- env?: Array<string>;
48
- /**
49
- * Environment variable names to be passed to the task without fingerprinting.
50
- */
51
- untrackedEnv?: Array<string>;
52
- /**
53
- * Files to include in the cache fingerprint.
54
- *
55
- * - Omitted: automatically tracks which files the task reads
56
- * - `[]` (empty): disables file tracking entirely
57
- * - Glob patterns (e.g. `"src/**"`) select specific files, relative to the package directory
58
- * - `{pattern: "...", base: "workspace" | "package"}` specifies a glob with an explicit base directory
59
- * - `{auto: true}` enables automatic file tracking
60
- * - Negative patterns (e.g. `"!dist/**"`) exclude matched files
61
- */
62
- input?: Array<string | GlobWithBase | AutoInput>;
63
- /**
64
- * Output files to archive after a successful run and restore on cache hit.
65
- *
66
- * - Omitted or `[]` (empty): no output archiving (default)
67
- * - Glob patterns (e.g. `"dist/**"`) select specific output files, relative to the package directory
68
- * - `{pattern: "...", base: "workspace" | "package"}` specifies a glob with an explicit base directory
69
- * - Negative patterns (e.g. `"!dist/cache/**"`) exclude matched files
70
- */
71
- output?: Array<string | GlobWithBase>;
72
- } | {
73
- /**
74
- * Whether to cache the task
75
- */
76
- cache: false;
77
- });
78
- type TaskDefinition = Task | Command;
79
- type UserGlobalCacheConfig = boolean | {
80
- /**
81
- * Enable caching for package.json scripts not defined in the `tasks` map.
82
- *
83
- * When `false`, package.json scripts will not be cached.
84
- * When `true`, package.json scripts will be cached with default settings.
85
- *
86
- * Default: `false`
87
- */
88
- scripts?: boolean;
89
- /**
90
- * Global cache kill switch for task entries.
91
- *
92
- * When `false`, overrides all tasks to disable caching, even tasks with `cache: true`.
93
- * When `true`, respects each task's individual `cache` setting
94
- * (each task's `cache` defaults to `true` if omitted).
95
- *
96
- * Default: `true`
97
- */
98
- tasks?: boolean;
99
- };
100
- type RunConfig = {
101
- /**
102
- * Root-level cache configuration.
103
- *
104
- * This option can only be set in the workspace root's config file.
105
- * Setting it in a package's config will result in an error.
106
- */
107
- cache?: UserGlobalCacheConfig;
108
- /**
109
- * Task definitions: full task objects, command strings, or command string arrays.
110
- */
111
- tasks?: { [key in string]: TaskDefinition };
112
- /**
113
- * Whether to automatically run `preX`/`postX` package.json scripts as
114
- * lifecycle hooks when script `X` is executed.
115
- *
116
- * When `true` (the default), running script `test` will automatically
117
- * run `pretest` before and `posttest` after, if they exist.
118
- *
119
- * This option can only be set in the workspace root's config file.
120
- * Setting it in a package's config will result in an error.
121
- */
122
- enablePrePostScripts?: boolean;
123
- };
124
- //#endregion
125
- //#region ../../node_modules/.pnpm/lint-staged@16.4.0/node_modules/lint-staged/lib/index.d.ts
126
- type SyncGenerateTask = (stagedFileNames: readonly string[]) => string | string[];
127
- type AsyncGenerateTask = (stagedFileNames: readonly string[]) => Promise<string | string[]>;
128
- type GenerateTask = SyncGenerateTask | AsyncGenerateTask;
129
- type TaskFunction = {
130
- title: string;
131
- task: (stagedFileNames: readonly string[]) => void | Promise<void>;
132
- };
133
- type Configuration = Record<string, string | TaskFunction | GenerateTask | (string | GenerateTask)[]> | GenerateTask;
134
- //#endregion
135
- //#region src/staged-config.d.ts
136
- type StagedConfig = Configuration;
137
- //#endregion
138
- //#region src/define-config.d.ts
139
- declare module '@voidzero-dev/vite-plus-core' {
140
- interface UserConfig {
141
- /**
142
- * Options for oxlint
143
- */
144
- lint?: OxlintConfig;
145
- fmt?: OxfmtConfig;
146
- pack?: PackUserConfig | PackUserConfig[];
147
- run?: RunConfig;
148
- staged?: StagedConfig;
149
- /**
150
- * Options for `vp create`.
151
- *
152
- * See `rfcs/create-org-default-templates.md` for the full specification.
153
- */
154
- create?: {
155
- /**
156
- * When `vp create` is invoked with no template argument, use this
157
- * value as if the user had typed it — typically a scope like
158
- * `'@your-org'` paired with a `@your-org/create` package that exposes a
159
- * `createConfig.templates` manifest.
160
- */
161
- defaultTemplate?: string;
162
- };
163
- }
164
- }
165
- type ViteUserConfigFnObject = (env: ConfigEnv) => UserConfig;
166
- type ViteUserConfigFnPromise = (env: ConfigEnv) => Promise<UserConfig>;
167
- type ViteUserConfigFn = (env: ConfigEnv) => UserConfig | Promise<UserConfig>;
168
- type ViteUserConfigExport = UserConfig | Promise<UserConfig> | ViteUserConfigFnObject | ViteUserConfigFnPromise | ViteUserConfigFn;
169
- declare function defineConfig$1(config: UserConfig): UserConfig;
170
- declare function defineConfig$1(config: Promise<UserConfig>): Promise<UserConfig>;
171
- declare function defineConfig$1(config: ViteUserConfigFnObject): ViteUserConfigFnObject;
172
- declare function defineConfig$1(config: ViteUserConfigFnPromise): ViteUserConfigFnPromise;
173
- declare function defineConfig$1(config: ViteUserConfigExport): ViteUserConfigExport;
174
- declare function lazyPlugins(cb: () => PluginOption[]): PluginOption[] | undefined;
175
- declare function lazyPlugins(cb: () => Promise<PluginOption[]>): PluginOption[] | undefined;
176
- //#endregion
177
- export { lazyPlugins as n, defineConfig$1 as t };
@@ -1,3 +0,0 @@
1
- import { t as require_dist } from "./dist-BgQuvbtq.js";
2
- export default require_dist();
3
- export {};
@@ -1 +0,0 @@
1
- export * from '@voidzero-dev/vite-plus-test/plugins/utils-highlight';