vite-plus 0.3.0 → 0.3.2
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/LICENSE +29 -29
- package/README.md +3 -3
- package/bin/vp +1 -1
- package/binding/index.cjs +60 -56
- package/binding/index.d.cts +137 -14
- package/dist/{agent-Wqx0MPk0.js → agent-C59HKB4Y.js} +3 -2
- package/dist/bin.js +90 -58
- package/dist/cli-parse-DHE8NrBU.js +13 -0
- package/dist/client/bundledDevClient.mjs +1 -1
- package/dist/client/client.mjs +1 -1
- package/dist/client/env.mjs +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/config/bin.js +83 -55
- package/dist/{constants-Bn-U8o4v.js → constants-IhOditRA.js} +3 -3
- package/dist/create/bin.d.ts +13 -5
- package/dist/create/bin.js +50 -193
- package/dist/{define-config-GXUdVT-0.js → define-config-DAaCa0U_.js} +2 -2
- package/dist/{define-config-DWoAkNdp.d.ts → define-config-DPNEJxPz.d.ts} +5 -9
- package/dist/{define-config-WiVlryJ2.cjs → define-config-DpAPETDf.cjs} +1 -1
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.d.ts +1 -1
- package/dist/define-config.js +1 -1
- package/dist/dist-DfmT__Aw.js +619 -0
- package/dist/{editor-CC4DqODz.js → editor-QOIGtmH4.js} +205 -70
- package/dist/hooks/bin.js +9 -114
- package/dist/{hooks-DFqViZqZ.js → hooks-C-4gykWR.js} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/dist/lint-plugins-dev.d.ts +3 -0
- package/dist/lint-plugins-dev.js +2 -0
- package/dist/lint-plugins.cjs +21 -0
- package/dist/lint-plugins.d.ts +3 -0
- package/dist/lint-plugins.js +2 -0
- package/dist/migration/bin.js +25 -144
- package/dist/migration/compat/worker.js +1 -1
- package/dist/module-runner.d.ts +1 -1
- package/dist/module-runner.js +1 -1
- package/dist/{oxlint-plugin-config-DX5ezKbB.js → oxlint-plugin-config-BU42tr8y.js} +1 -1
- package/dist/oxlint-plugin.d.ts +2 -2
- package/dist/oxlint-plugin.js +93 -32
- package/dist/{pack-PvUg_xpv.d.ts → pack-BK38MLVZ.d.ts} +1 -1
- package/dist/pack-bin.d.ts +2 -3
- package/dist/pack-bin.js +5 -622
- package/dist/pack-client.d.ts +1 -1
- package/dist/pack.d.ts +2 -2
- package/dist/pack.js +1 -1
- package/dist/{package-CBe9EWPY.js → package-BB-Jh_z3.js} +1 -1
- package/dist/{prompts-DF3yU-eU.js → prompts-CujFOJXu.js} +3 -1400
- package/dist/{report-ZNR1Mk6h.js → report-CK5TnTsr.js} +1 -0
- package/dist/resolve-vite-config-6Nox70uP.js +2 -0
- package/dist/{resolve-vite-config-ipGb39Jo.js → resolve-vite-config-CHHjsjKJ.js} +3 -3
- package/dist/semver-CaDAb8vV.js +1400 -0
- package/dist/staged/bin.js +83 -218
- package/dist/sync-versions/bin.d.ts +1 -0
- package/dist/sync-versions/bin.js +3884 -0
- package/dist/sync-versions/bin.mjs +13323 -0
- package/dist/toolchain.js +10 -10
- package/dist/toolchain.json +10 -10
- package/dist/{tsconfig-LD2QhQ0O.js → tsconfig-DCtWfQPA.js} +2 -2
- package/dist/{tsconfig-BVHG3DpR.js → tsconfig-MXktI3SX.js} +1 -1
- package/dist/tsgolint-path.d.ts +3 -4
- package/dist/types/customEvent.d.ts +1 -1
- package/dist/types/hmrPayload.d.ts +1 -1
- package/dist/types/hot.d.ts +1 -1
- package/dist/types/import-meta.d.ts +1 -1
- package/dist/types/importGlob.d.ts +1 -1
- package/dist/types/importMeta.d.ts +1 -1
- package/dist/types/metadata.d.ts +1 -1
- package/dist/version.d.ts +2 -3
- package/dist/version.js +2 -2
- package/dist/versions.js +5 -5
- package/dist/vitest-ecosystem-BiRqcaRI.js +23 -0
- package/docs/config/fmt.md +4 -2
- package/docs/config/lint.md +4 -2
- package/docs/guide/check.md +1 -0
- package/docs/guide/ci.md +42 -2
- package/docs/guide/env.md +148 -52
- package/docs/guide/fmt.md +3 -1
- package/docs/guide/ide-integration.md +14 -2
- package/docs/guide/index.md +1 -1
- package/docs/guide/install.md +4 -1
- package/docs/guide/installer-env-vars.md +45 -1
- package/docs/guide/lint.md +58 -1
- package/docs/guide/migrate-rules.md +95 -2
- package/docs/guide/migrate.md +1 -1
- package/docs/guide/monorepo.md +2 -0
- package/docs/guide/troubleshooting.md +14 -0
- package/package.json +27 -20
- package/templates/generator/README.md +14 -0
- package/templates/generator/bin/index.ts +54 -5
- package/dist/lib-L3DWSRQp.js +0 -75
- package/dist/{log-update-DHZRyJ2m.js → log-update-CoW8Z4Dl.js} +1 -1
|
@@ -28,6 +28,20 @@ The Oxlint type checker path powered by `tsgolint` does not support `baseUrl`.
|
|
|
28
28
|
fix before enabling type-aware linting. If that fix fails or is declined, Vite+
|
|
29
29
|
skips `typeAware` and `typeCheck`.
|
|
30
30
|
|
|
31
|
+
## Nested lint or format config is not applied
|
|
32
|
+
|
|
33
|
+
Vite+ does not currently support nested lint or format configuration. When running `vp lint`, `vp fmt`, or `vp check` from the workspace root, do not rely on configs in subdirectories or on `lint` and `fmt` blocks in package-level `vite.config.ts` files to override the root settings.
|
|
34
|
+
|
|
35
|
+
Keep lint and format settings in the root `vite.config.ts`. Use [`lint.overrides`](/guide/monorepo#root-config-with-overrides) and [`fmt.overrides`](/guide/monorepo#format-overrides) for file- or package-specific settings. You can also [import configuration objects](/guide/monorepo#composing-configuration-files) into the root config to keep settings in separate files.
|
|
36
|
+
|
|
37
|
+
For IDE integration, we have `disableNestedConfig` and `fmt.disableNestedConfig` config to disable nested lint and format configs and keep editor behavior aligned with the root Vite+ config. See [IDE Integration](/guide/ide-integration) for setup instructions for your editor.
|
|
38
|
+
|
|
39
|
+
We're holding off on nested config support for now. Some of the factors we're considering are how implicit config discovery affects the predictability of linting and formatting, what context AI agents need to understand the settings that apply, and the potential performance cost of finding and loading multiple configs. At the same time, we recognize that keeping package-specific context close to the code may have benefits. The use cases we've heard so far haven't given us a strong enough reason to commit to those semantics. Waiting leaves room to add support later, and we'd like to hear why your project needs nested configs, especially where root-level overrides fall short.
|
|
40
|
+
|
|
41
|
+
Do you need nested configs? [Share your use case and opinion on GitHub](https://github.com/voidzero-dev/vite-plus/discussions/2669), including your project structure, the reason why you want them and whether root-level overrides meet your needs.
|
|
42
|
+
|
|
43
|
+
We sincerely hope to hear your feedback. This will help us decide whether to improve the current situation in the future.
|
|
44
|
+
|
|
31
45
|
## VS Code extension does not read `vite.config.ts`
|
|
32
46
|
|
|
33
47
|
If VS Code has multiple folders open, the shared Oxc language server may pick a different workspace than expected. That can make it look like `vite.config.ts` support is missing.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plus",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "The Unified Toolchain for the Web",
|
|
5
5
|
"homepage": "https://viteplus.dev/guide",
|
|
6
6
|
"bugs": {
|
|
@@ -69,6 +69,15 @@
|
|
|
69
69
|
"types": "./dist/lint.d.ts",
|
|
70
70
|
"import": "./dist/lint.js"
|
|
71
71
|
},
|
|
72
|
+
"./lint/plugins": {
|
|
73
|
+
"types": "./dist/lint-plugins.d.ts",
|
|
74
|
+
"import": "./dist/lint-plugins.js",
|
|
75
|
+
"require": "./dist/lint-plugins.cjs"
|
|
76
|
+
},
|
|
77
|
+
"./lint/plugins-dev": {
|
|
78
|
+
"types": "./dist/lint-plugins-dev.d.ts",
|
|
79
|
+
"default": "./dist/lint-plugins-dev.js"
|
|
80
|
+
},
|
|
72
81
|
"./oxlint-plugin": {
|
|
73
82
|
"module-sync": "./dist/oxlint-plugin.js",
|
|
74
83
|
"node": "./dist/oxlint-plugin.js",
|
|
@@ -350,7 +359,7 @@
|
|
|
350
359
|
}
|
|
351
360
|
},
|
|
352
361
|
"dependencies": {
|
|
353
|
-
"@oxc-project/types": "=0.
|
|
362
|
+
"@oxc-project/types": "=0.149.0",
|
|
354
363
|
"@oxlint/plugins": "=1.79.0",
|
|
355
364
|
"@vitest/browser": "4.1.11",
|
|
356
365
|
"@vitest/browser-preview": "4.1.11",
|
|
@@ -361,22 +370,23 @@
|
|
|
361
370
|
"@vitest/snapshot": "4.1.11",
|
|
362
371
|
"@vitest/spy": "4.1.11",
|
|
363
372
|
"@vitest/utils": "4.1.11",
|
|
364
|
-
"oxfmt": "=0.
|
|
365
|
-
"oxlint": "=1.
|
|
373
|
+
"oxfmt": "=0.67.0",
|
|
374
|
+
"oxlint": "=1.82.0",
|
|
366
375
|
"oxlint-tsgolint": "=7.0.2001",
|
|
367
|
-
"
|
|
368
|
-
"
|
|
376
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.2",
|
|
377
|
+
"vitest": "4.1.11"
|
|
369
378
|
},
|
|
370
379
|
"devDependencies": {
|
|
371
380
|
"@emnapi/core": "2.0.0-alpha.4",
|
|
372
381
|
"@emnapi/runtime": "2.0.0-alpha.4",
|
|
373
|
-
"@napi-rs/cli": "^3.
|
|
382
|
+
"@napi-rs/cli": "^3.9.0",
|
|
374
383
|
"@nkzw/safe-word-list": "^3.1.0",
|
|
375
384
|
"@types/cross-spawn": "^6.0.6",
|
|
376
385
|
"@types/semver": "^7.8.0",
|
|
377
386
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
378
387
|
"@vitest/browser-playwright": "4.1.11",
|
|
379
388
|
"@vitest/browser-webdriverio": "4.1.11",
|
|
389
|
+
"@voidzero-dev/vite-plus-prompts": "0.0.0",
|
|
380
390
|
"bingo": "^0.9.3",
|
|
381
391
|
"cac": "^7.0.0",
|
|
382
392
|
"cross-spawn": "^7.0.5",
|
|
@@ -386,16 +396,13 @@
|
|
|
386
396
|
"jsonc-parser": "^3.3.1",
|
|
387
397
|
"lint-staged": "^16.2.6",
|
|
388
398
|
"minimatch": "^10.0.3",
|
|
389
|
-
"mri": "^1.2.0",
|
|
390
399
|
"nanotar": "^0.3.0",
|
|
391
400
|
"picocolors": "^1.1.1",
|
|
392
401
|
"semver": "^7.8.0",
|
|
393
|
-
"tsdown": "^0.
|
|
402
|
+
"tsdown": "^0.23.0",
|
|
394
403
|
"validate-npm-package-name": "^7.0.2",
|
|
395
404
|
"yaml": "^2.8.1",
|
|
396
|
-
"zod": "^3.25.76"
|
|
397
|
-
"@voidzero-dev/vite-plus-prompts": "0.0.0",
|
|
398
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.0"
|
|
405
|
+
"zod": "^3.25.76"
|
|
399
406
|
},
|
|
400
407
|
"peerDependencies": {
|
|
401
408
|
"@vitest/browser-playwright": "4.1.11",
|
|
@@ -427,14 +434,14 @@
|
|
|
427
434
|
"node": "^20.19.0 || ^22.18.0 || >=24.11.0"
|
|
428
435
|
},
|
|
429
436
|
"optionalDependencies": {
|
|
430
|
-
"@voidzero-dev/vite-plus-darwin-arm64": "0.3.
|
|
431
|
-
"@voidzero-dev/vite-plus-darwin-x64": "0.3.
|
|
432
|
-
"@voidzero-dev/vite-plus-linux-arm64-gnu": "0.3.
|
|
433
|
-
"@voidzero-dev/vite-plus-linux-arm64-musl": "0.3.
|
|
434
|
-
"@voidzero-dev/vite-plus-linux-x64-gnu": "0.3.
|
|
435
|
-
"@voidzero-dev/vite-plus-linux-x64-musl": "0.3.
|
|
436
|
-
"@voidzero-dev/vite-plus-win32-x64-msvc": "0.3.
|
|
437
|
-
"@voidzero-dev/vite-plus-win32-arm64-msvc": "0.3.
|
|
437
|
+
"@voidzero-dev/vite-plus-darwin-arm64": "0.3.2",
|
|
438
|
+
"@voidzero-dev/vite-plus-darwin-x64": "0.3.2",
|
|
439
|
+
"@voidzero-dev/vite-plus-linux-arm64-gnu": "0.3.2",
|
|
440
|
+
"@voidzero-dev/vite-plus-linux-arm64-musl": "0.3.2",
|
|
441
|
+
"@voidzero-dev/vite-plus-linux-x64-gnu": "0.3.2",
|
|
442
|
+
"@voidzero-dev/vite-plus-linux-x64-musl": "0.3.2",
|
|
443
|
+
"@voidzero-dev/vite-plus-win32-x64-msvc": "0.3.2",
|
|
444
|
+
"@voidzero-dev/vite-plus-win32-arm64-msvc": "0.3.2"
|
|
438
445
|
},
|
|
439
446
|
"scripts": {
|
|
440
447
|
"build": "oxnode -C dev ./build.ts",
|
|
@@ -11,6 +11,20 @@ From monorepo root:
|
|
|
11
11
|
vp create
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
For automation, provide the directory and every required template option:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
vp create <generator-name> --no-interactive -- --directory new-package --name new-package
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Vite+ sets `VP_CREATE_INTERACTIVE=0` for non-interactive local Bingo generators.
|
|
21
|
+
This starter then validates the arguments and runs Bingo's programmatic API.
|
|
22
|
+
Missing options and existing directories fail before any files are generated.
|
|
23
|
+
Existing generators are copied project files and are not updated by upgrading Vite+.
|
|
24
|
+
To adopt this behavior, update their entrypoint to match this starter.
|
|
25
|
+
Direct invocation uses the interactive CLI unless this variable is set to `0`.
|
|
26
|
+
When adding template options, also add their CLI types in `bin/index.ts`.
|
|
27
|
+
|
|
14
28
|
## Development
|
|
15
29
|
|
|
16
30
|
```bash
|
|
@@ -1,10 +1,59 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
import { parseArgs } from 'node:util';
|
|
5
|
+
|
|
6
|
+
import { runTemplate, runTemplateCLI, type Template } from 'bingo';
|
|
7
|
+
import { z } from 'zod';
|
|
4
8
|
|
|
5
9
|
import template from '../src/template.ts';
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
process.
|
|
11
|
+
async function main() {
|
|
12
|
+
if (
|
|
13
|
+
process.env.VP_CREATE_INTERACTIVE !== '0' ||
|
|
14
|
+
process.argv.includes('--help') ||
|
|
15
|
+
process.argv.includes('--version')
|
|
16
|
+
) {
|
|
17
|
+
// runTemplateCLI accepts a wider type than createTemplate returns.
|
|
18
|
+
return await runTemplateCLI(template as unknown as Template);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Add CLI entries here when adding options to src/template.ts.
|
|
22
|
+
const { values } = parseArgs({
|
|
23
|
+
options: {
|
|
24
|
+
directory: { type: 'string' },
|
|
25
|
+
name: { type: 'string' },
|
|
26
|
+
offline: { type: 'boolean' },
|
|
27
|
+
'skip-requests': { type: 'boolean' },
|
|
28
|
+
'skip-files': { type: 'boolean' },
|
|
29
|
+
'skip-scripts': { type: 'boolean' },
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
if (!values.directory?.trim()) {
|
|
33
|
+
throw new Error('Missing --directory. Pass generator options after -- in vp create.');
|
|
34
|
+
}
|
|
35
|
+
const options = z.object(template.options).parse(values);
|
|
36
|
+
if (fs.existsSync(values.directory)) {
|
|
37
|
+
throw new Error(`Directory already exists: ${values.directory}`);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
await runTemplate(template, {
|
|
41
|
+
directory: values.directory,
|
|
42
|
+
mode: 'setup',
|
|
43
|
+
options,
|
|
44
|
+
offline: values.offline,
|
|
45
|
+
skips: {
|
|
46
|
+
requests: values['skip-requests'],
|
|
47
|
+
files: values['skip-files'],
|
|
48
|
+
scripts: values['skip-scripts'],
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
return 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
try {
|
|
55
|
+
process.exitCode = await main();
|
|
56
|
+
} catch (error) {
|
|
57
|
+
console.error(error instanceof Error ? error.message : String(error));
|
|
58
|
+
process.exitCode = 1;
|
|
59
|
+
}
|
package/dist/lib-L3DWSRQp.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/mri@1.2.0/node_modules/mri/lib/index.mjs
|
|
2
|
-
function toArr(any) {
|
|
3
|
-
return any == null ? [] : Array.isArray(any) ? any : [any];
|
|
4
|
-
}
|
|
5
|
-
function toVal(out, key, val, opts) {
|
|
6
|
-
var x, old = out[key], nxt = !!~opts.string.indexOf(key) ? val == null || val === true ? "" : String(val) : typeof val === "boolean" ? val : !!~opts.boolean.indexOf(key) ? val === "false" ? false : val === "true" || (out._.push((x = +val, x * 0 === 0) ? x : val), !!val) : (x = +val, x * 0 === 0) ? x : val;
|
|
7
|
-
out[key] = old == null ? nxt : Array.isArray(old) ? old.concat(nxt) : [old, nxt];
|
|
8
|
-
}
|
|
9
|
-
function lib_default(args, opts) {
|
|
10
|
-
args = args || [];
|
|
11
|
-
opts = opts || {};
|
|
12
|
-
var k, arr, arg, name, val, out = { _: [] };
|
|
13
|
-
var i = 0, j = 0, idx = 0, len = args.length;
|
|
14
|
-
const alibi = opts.alias !== void 0;
|
|
15
|
-
const strict = opts.unknown !== void 0;
|
|
16
|
-
const defaults = opts.default !== void 0;
|
|
17
|
-
opts.alias = opts.alias || {};
|
|
18
|
-
opts.string = toArr(opts.string);
|
|
19
|
-
opts.boolean = toArr(opts.boolean);
|
|
20
|
-
if (alibi) for (k in opts.alias) {
|
|
21
|
-
arr = opts.alias[k] = toArr(opts.alias[k]);
|
|
22
|
-
for (i = 0; i < arr.length; i++) (opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);
|
|
23
|
-
}
|
|
24
|
-
for (i = opts.boolean.length; i-- > 0;) {
|
|
25
|
-
arr = opts.alias[opts.boolean[i]] || [];
|
|
26
|
-
for (j = arr.length; j-- > 0;) opts.boolean.push(arr[j]);
|
|
27
|
-
}
|
|
28
|
-
for (i = opts.string.length; i-- > 0;) {
|
|
29
|
-
arr = opts.alias[opts.string[i]] || [];
|
|
30
|
-
for (j = arr.length; j-- > 0;) opts.string.push(arr[j]);
|
|
31
|
-
}
|
|
32
|
-
if (defaults) for (k in opts.default) {
|
|
33
|
-
name = typeof opts.default[k];
|
|
34
|
-
arr = opts.alias[k] = opts.alias[k] || [];
|
|
35
|
-
if (opts[name] !== void 0) {
|
|
36
|
-
opts[name].push(k);
|
|
37
|
-
for (i = 0; i < arr.length; i++) opts[name].push(arr[i]);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
const keys = strict ? Object.keys(opts.alias) : [];
|
|
41
|
-
for (i = 0; i < len; i++) {
|
|
42
|
-
arg = args[i];
|
|
43
|
-
if (arg === "--") {
|
|
44
|
-
out._ = out._.concat(args.slice(++i));
|
|
45
|
-
break;
|
|
46
|
-
}
|
|
47
|
-
for (j = 0; j < arg.length; j++) if (arg.charCodeAt(j) !== 45) break;
|
|
48
|
-
if (j === 0) out._.push(arg);
|
|
49
|
-
else if (arg.substring(j, j + 3) === "no-") {
|
|
50
|
-
name = arg.substring(j + 3);
|
|
51
|
-
if (strict && !~keys.indexOf(name)) return opts.unknown(arg);
|
|
52
|
-
out[name] = false;
|
|
53
|
-
} else {
|
|
54
|
-
for (idx = j + 1; idx < arg.length; idx++) if (arg.charCodeAt(idx) === 61) break;
|
|
55
|
-
name = arg.substring(j, idx);
|
|
56
|
-
val = arg.substring(++idx) || i + 1 === len || ("" + args[i + 1]).charCodeAt(0) === 45 || args[++i];
|
|
57
|
-
arr = j === 2 ? [name] : name;
|
|
58
|
-
for (idx = 0; idx < arr.length; idx++) {
|
|
59
|
-
name = arr[idx];
|
|
60
|
-
if (strict && !~keys.indexOf(name)) return opts.unknown("-".repeat(j) + name);
|
|
61
|
-
toVal(out, name, idx + 1 < arr.length || val, opts);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
if (defaults) {
|
|
66
|
-
for (k in opts.default) if (out[k] === void 0) out[k] = opts.default[k];
|
|
67
|
-
}
|
|
68
|
-
if (alibi) for (k in out) {
|
|
69
|
-
arr = opts.alias[k] || [];
|
|
70
|
-
while (arr.length > 0) out[arr.shift()] = out[k];
|
|
71
|
-
}
|
|
72
|
-
return out;
|
|
73
|
-
}
|
|
74
|
-
//#endregion
|
|
75
|
-
export { lib_default as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as ansiStyles, t as stripAnsi } from "./strip-ansi-C3wrWz9t.js";
|
|
2
2
|
import { t as isFullwidthCodePoint } from "./is-fullwidth-code-point-BUNlIICg.js";
|
|
3
3
|
import { t as wrapAnsi } from "./wrap-ansi-DNjkuBEp.js";
|
|
4
|
-
import process$1 from "node:process";
|
|
5
4
|
import os from "node:os";
|
|
5
|
+
import process$1 from "node:process";
|
|
6
6
|
//#region ../../node_modules/.pnpm/environment@1.1.0/node_modules/environment/index.js
|
|
7
7
|
const isBrowser = globalThis.window?.document !== void 0;
|
|
8
8
|
globalThis.process?.versions?.node;
|