vite-plus 0.1.17-alpha.3 → 0.1.17-alpha.4

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.
package/bin/oxfmt CHANGED
@@ -13,9 +13,13 @@ if (!process.argv.includes('--lsp')) {
13
13
  import { createRequire } from 'node:module';
14
14
  import { dirname, join } from 'node:path';
15
15
  import { pathToFileURL } from 'node:url';
16
+ import pkg from '../package.json' with { type: 'json' };
16
17
 
17
18
  const require = createRequire(import.meta.url);
18
19
  const oxfmtMainPath = require.resolve('oxfmt');
19
20
  const oxfmtBin = join(dirname(dirname(oxfmtMainPath)), 'bin', 'oxfmt');
20
21
 
22
+ // This allows oxfmt to load vite.config.ts
23
+ // For `vp check` and `vp fmt`, it is injected by `merge_resolved_envs_with_version()` in `cli.rs`
24
+ process.env.VP_VERSION = pkg.version;
21
25
  await import(pathToFileURL(oxfmtBin).href);
package/bin/oxlint CHANGED
@@ -13,9 +13,13 @@ if (!process.argv.includes('--lsp')) {
13
13
  import { createRequire } from 'node:module';
14
14
  import { dirname, join } from 'node:path';
15
15
  import { pathToFileURL } from 'node:url';
16
+ import pkg from '../package.json' with { type: 'json' };
16
17
 
17
18
  const require = createRequire(import.meta.url);
18
19
  const oxlintMainPath = require.resolve('oxlint');
19
20
  const oxlintBin = join(dirname(dirname(oxlintMainPath)), 'bin', 'oxlint');
20
21
 
22
+ // This allows oxlint to load vite.config.ts
23
+ // For `vp check` and `vp lint`, it is injected by `merge_resolved_envs_with_version()` in `cli.rs`
24
+ process.env.VP_VERSION = pkg.version;
21
25
  await import(pathToFileURL(oxlintBin).href);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plus",
3
- "version": "0.1.17-alpha.3",
3
+ "version": "0.1.17-alpha.4",
4
4
  "description": "The Unified Toolchain for the Web",
5
5
  "homepage": "https://viteplus.dev/guide",
6
6
  "bugs": {
@@ -322,8 +322,8 @@
322
322
  "oxfmt": "=0.44.0",
323
323
  "oxlint": "=1.59.0",
324
324
  "oxlint-tsgolint": "=0.20.0",
325
- "@voidzero-dev/vite-plus-core": "0.1.17-alpha.3",
326
- "@voidzero-dev/vite-plus-test": "0.1.17-alpha.3"
325
+ "@voidzero-dev/vite-plus-test": "0.1.17-alpha.4",
326
+ "@voidzero-dev/vite-plus-core": "0.1.17-alpha.4"
327
327
  },
328
328
  "devDependencies": {
329
329
  "@napi-rs/cli": "^3.6.1",
@@ -349,7 +349,7 @@
349
349
  "validate-npm-package-name": "^7.0.2",
350
350
  "yaml": "^2.8.1",
351
351
  "@voidzero-dev/vite-plus-prompts": "0.0.0",
352
- "vite": "npm:@voidzero-dev/vite-plus-core@0.1.17-alpha.3"
352
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.1.17-alpha.4"
353
353
  },
354
354
  "napi": {
355
355
  "binaryName": "vite-plus",
@@ -369,14 +369,14 @@
369
369
  "node": "^20.19.0 || >=22.12.0"
370
370
  },
371
371
  "optionalDependencies": {
372
- "@voidzero-dev/vite-plus-darwin-arm64": "0.1.17-alpha.3",
373
- "@voidzero-dev/vite-plus-darwin-x64": "0.1.17-alpha.3",
374
- "@voidzero-dev/vite-plus-linux-arm64-gnu": "0.1.17-alpha.3",
375
- "@voidzero-dev/vite-plus-linux-arm64-musl": "0.1.17-alpha.3",
376
- "@voidzero-dev/vite-plus-linux-x64-gnu": "0.1.17-alpha.3",
377
- "@voidzero-dev/vite-plus-linux-x64-musl": "0.1.17-alpha.3",
378
- "@voidzero-dev/vite-plus-win32-x64-msvc": "0.1.17-alpha.3",
379
- "@voidzero-dev/vite-plus-win32-arm64-msvc": "0.1.17-alpha.3"
372
+ "@voidzero-dev/vite-plus-darwin-arm64": "0.1.17-alpha.4",
373
+ "@voidzero-dev/vite-plus-darwin-x64": "0.1.17-alpha.4",
374
+ "@voidzero-dev/vite-plus-linux-arm64-gnu": "0.1.17-alpha.4",
375
+ "@voidzero-dev/vite-plus-linux-arm64-musl": "0.1.17-alpha.4",
376
+ "@voidzero-dev/vite-plus-linux-x64-gnu": "0.1.17-alpha.4",
377
+ "@voidzero-dev/vite-plus-linux-x64-musl": "0.1.17-alpha.4",
378
+ "@voidzero-dev/vite-plus-win32-x64-msvc": "0.1.17-alpha.4",
379
+ "@voidzero-dev/vite-plus-win32-arm64-msvc": "0.1.17-alpha.4"
380
380
  },
381
381
  "scripts": {
382
382
  "build": "oxnode -C dev ./build.ts",
@@ -42,6 +42,7 @@ This switches to system-first mode, where the shims prefer your system Node.js a
42
42
  - `vp env install` installs a Node.js version
43
43
  - `vp env uninstall` removes an installed Node.js version
44
44
  - `vp env exec` runs a command with a specific Node.js version
45
+ - `vp node` runs a Node.js script — shorthand for `vp env exec node`
45
46
 
46
47
  ### Inspect
47
48
 
@@ -81,6 +82,8 @@ vp env list-remote --lts # List only LTS versions
81
82
  # Execute
82
83
  vp env exec --node lts npm i # Execute npm with latest LTS
83
84
  vp env exec node -v # Use shim mode with automatic version resolution
85
+ vp node script.js # Shorthand: run a Node.js script with the resolved version
86
+ vp node -e "console.log(1+1)" # Shorthand: forward any node flag or argument
84
87
  ```
85
88
 
86
89
  ## Custom Node.js Mirror