vite-plus 0.1.22 → 0.1.24

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 (67) hide show
  1. package/binding/index.cjs +119 -52
  2. package/binding/index.d.cts +3222 -2
  3. package/dist/agent-Nuk-9l77.js +2470 -0
  4. package/dist/bin.js +13 -8
  5. package/dist/cli-truncate-CWsmbK3p.js +867 -0
  6. package/dist/{compat-OlmU9EQz.js → compat-DXZgnEyq.js} +1 -1
  7. package/dist/config/bin.js +18 -5
  8. package/dist/{constants-kDaYqyWd.js → constants-DCBWlNrn.js} +7 -2
  9. package/dist/create/bin.d.ts +1 -1
  10. package/dist/create/bin.js +194 -87
  11. package/dist/{define-config-IMCGDS2K.d.ts → define-config-COdn-tsn.d.ts} +7 -5
  12. package/dist/define-config.cjs +1 -1
  13. package/dist/define-config.d.ts +1 -1
  14. package/dist/define-config.js +1 -1
  15. package/dist/dist-Bapm49IR.js +3 -0
  16. package/dist/{dist-owlRxmBM.js → dist-BgQuvbtq.js} +136 -110
  17. package/dist/fmt.d.ts +1 -1
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/is-fullwidth-code-point-BUNlIICg.js +8 -0
  22. package/dist/lint.d.ts +1 -1
  23. package/dist/{log-update-NRrY6krx.js → log-update-lyIiuflf.js} +111 -24
  24. package/dist/migration/bin.js +81 -39
  25. package/dist/{oxlint-plugin-config-BkQeR4FR.js → oxlint-plugin-config-B89iKTKN.js} +1 -1
  26. package/dist/oxlint-plugin.d.ts +2 -4
  27. package/dist/oxlint-plugin.js +1 -1
  28. package/dist/pack-bin.js +1 -1
  29. package/dist/pack.d.ts +1 -1
  30. package/dist/{package-BoLLED6j.js → package-PmBUZ-ve.js} +2 -2
  31. package/dist/staged/bin.js +157 -424
  32. package/dist/strip-ansi-C3wrWz9t.js +853 -0
  33. package/dist/{agent-BWLe0i9g.js → tsconfig-DFb5BKyT.js} +681 -2114
  34. package/dist/version.js +5 -5
  35. package/dist/versions.js +7 -7
  36. package/dist/{workspace-Bi_9spVt.js → workspace-NL-m9wgM.js} +22 -21
  37. package/dist/wrap-ansi-CeQuiQ31.js +2 -0
  38. package/dist/{wrap-ansi-DtUeUCjE.js → wrap-ansi-k7Dn4VtV.js} +1 -1
  39. package/docs/_data/team.ts +3 -3
  40. package/docs/config/run.md +39 -4
  41. package/docs/guide/cache.md +10 -1
  42. package/docs/guide/env.md +3 -0
  43. package/docs/guide/ide-integration.md +2 -2
  44. package/docs/guide/index.md +4 -0
  45. package/docs/guide/install.md +19 -0
  46. package/docs/guide/migrate.md +1 -1
  47. package/docs/guide/run.md +2 -0
  48. package/docs/guide/troubleshooting.md +6 -29
  49. package/docs/guide/upgrade.md +12 -1
  50. package/package.json +20 -20
  51. package/templates/monorepo/_gitignore +1 -0
  52. package/dist/cli-truncate-B62YnW2m.js +0 -138
  53. package/dist/dist-DZfItHAr.js +0 -3
  54. package/dist/slice-ansi-e4todZeH.js +0 -113
  55. package/dist/strip-ansi-D-eYYcD2.js +0 -198
  56. package/dist/tsconfig-BVyzXJ_o.js +0 -517
  57. package/dist/wrap-ansi-3S3qJ7j8.js +0 -2
  58. /package/dist/{chunk-q7NCDQ7-.js → chunk-DnnnRqeS.js} +0 -0
  59. /package/dist/{define-config-GqLoRwH9.cjs → define-config-BR1Y88zz.cjs} +0 -0
  60. /package/dist/{define-config-CzWdQTt2.js → define-config-BRC7qPNE.js} +0 -0
  61. /package/dist/{help-DK5wuu34.js → help-YP84FSEz.js} +0 -0
  62. /package/dist/{lib-DpwyUJWo.js → lib-L3DWSRQp.js} +0 -0
  63. /package/dist/{main-DhsO6ndq.js → main-DpJl3LoU.js} +0 -0
  64. /package/dist/{pack-K7H72Cum.d.ts → pack-Ciiho0Tq.d.ts} +0 -0
  65. /package/dist/{report-CYPv1VK1.js → report-DgSBQUdz.js} +0 -0
  66. /package/dist/{resolve-vite-config-C5AjksTj.js → resolve-vite-config-TTvhycU1.js} +0 -0
  67. /package/dist/{terminal-D_Kg-AA6.js → terminal-uTv0ZaMr.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { n as addMigrationWarning } from "./report-CYPv1VK1.js";
1
+ import { n as addMigrationWarning } from "./report-DgSBQUdz.js";
2
2
  //#region src/migration/compat.ts
3
3
  /**
4
4
  * Check for Rolldown-incompatible manualChunks config patterns.
@@ -1,7 +1,8 @@
1
- import { a as printHeader, r as log } from "../terminal-D_Kg-AA6.js";
2
- import { L as defaultInteractive, _ as hasStagedConfigInViteConfig, h as ensurePreCommitHook, i as updateExistingAgentInstructions, z as promptGitHooks } from "../agent-BWLe0i9g.js";
3
- import { t as lib_default } from "../lib-DpwyUJWo.js";
4
- import { t as renderCliDoc } from "../help-DK5wuu34.js";
1
+ import { c as defaultInteractive, d as promptGitHooks } from "../tsconfig-DFb5BKyT.js";
2
+ import { a as printHeader, r as log } from "../terminal-uTv0ZaMr.js";
3
+ import { t as lib_default } from "../lib-L3DWSRQp.js";
4
+ import { o as updateExistingAgentInstructions, x as hasStagedConfigInViteConfig, y as ensurePreCommitHook } from "../agent-Nuk-9l77.js";
5
+ import { t as renderCliDoc } from "../help-YP84FSEz.js";
5
6
  import { join } from "node:path";
6
7
  import { existsSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
7
8
  import { spawnSync } from "node:child_process";
@@ -42,8 +43,20 @@ i="\${XDG_CONFIG_HOME:-$HOME/.config}/vite-plus/hooks-init.sh"
42
43
  { [ "\${HUSKY-}" = "0" ] || [ "\${VITE_GIT_HOOKS-}" = "0" ]; } && exit 0
43
44
 
44
45
  d=${nestedDirname(dir.split("/").filter((s) => s !== "" && s !== ".").length + 2)}
46
+ __vp_shell=/bin/sh
47
+ [ -x "$__vp_shell" ] || __vp_shell=$(command -v sh)
48
+
49
+ if [ -n "\${VP_HOME-}" ]; then
50
+ __vp_bin="$VP_HOME/bin"
51
+ elif [ -n "\${HOME-}" ]; then
52
+ __vp_bin="$HOME/.vite-plus/bin"
53
+ else
54
+ __vp_bin=""
55
+ fi
56
+ [ -n "$__vp_bin" ] && [ -d "$__vp_bin" ] && export PATH="$PATH:$__vp_bin"
57
+
45
58
  export PATH="$d/node_modules/.bin:$PATH"
46
- sh -e "$s" "$@"
59
+ "$__vp_shell" -e "$s" "$@"
47
60
  c=$?
48
61
 
49
62
  [ $c != 0 ] && echo "VITE+ - $n script failed (code $c)"
@@ -18,11 +18,16 @@ const require = createRequire(import.meta.url);
18
18
  function resolve(path) {
19
19
  return require.resolve(path, { paths: [process.cwd(), import.meta.dirname] });
20
20
  }
21
- const BASEURL_TSCONFIG_WARNING = "Skipped typeAware/typeCheck: tsconfig.json contains baseUrl which is not yet supported by the oxlint type checker.\n Run `npx @andrewbranch/ts5to6 --fixBaseUrl .` to remove baseUrl from your tsconfig.";
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
+ }
22
27
  const DEFAULT_ENVS = {
23
28
  JS_RUNTIME_VERSION: process.versions.node,
24
29
  JS_RUNTIME_NAME: process.release.name,
25
30
  NODE_PACKAGE_MANAGER: "vite-plus"
26
31
  };
27
32
  //#endregion
28
- export { VITE_PLUS_VERSION as a, VITE_PLUS_OVERRIDE_PACKAGES as i, DEFAULT_ENVS as n, isForceOverrideMode as o, VITE_PLUS_NAME as r, resolve as s, BASEURL_TSCONFIG_WARNING as t };
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 };
@@ -6,7 +6,7 @@ interface Options {
6
6
  help: boolean;
7
7
  verbose: boolean;
8
8
  agent?: string | string[] | false;
9
- editor?: string;
9
+ editor?: string | false;
10
10
  hooks?: boolean;
11
11
  packageManager?: string;
12
12
  }