vite-plus 0.1.2 → 0.1.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/binding/index.cjs +2 -0
- package/binding/index.d.cts +32 -0
- package/dist/global/{prompts-CAIahN1u.js → agent-CpNB3GIY.js} +475 -1350
- package/dist/global/{browser-CY4NBwxR.js → browser-CBapUTD0.js} +579 -1023
- package/dist/global/{browser-DFpJ6sKb.js → browser-EZnNDcaO.js} +2 -3
- package/dist/global/{chunk-CtfvYSle.js → chunk-CgnkrU7a.js} +13 -22
- package/dist/global/{cli-truncate-BxinOqz5.js → cli-truncate-Da6Y8aM8.js} +25 -74
- package/dist/global/config.js +86 -166
- package/dist/global/create.js +626 -615
- package/dist/global/{terminal-Cb-NuRkb.js → help-BAGHa8fD.js} +22 -54
- package/dist/global/{json-Bfvtp2rL.js → json-BRdVJ52a.js} +24 -58
- package/dist/global/{lib-CibYHP32.js → lib-DxappLRQ.js} +19 -43
- package/dist/global/{log-update-DdU6_LCN.js → log-update-C8WCYCbc.js} +102 -281
- package/dist/global/mcp.js +97 -169
- package/dist/global/migrate.js +330 -86
- package/dist/global/{package-Pq2biU7_.js → package-YAMvX5PJ.js} +6 -13
- package/dist/global/{slice-ansi-BhwAwMdF.js → slice-ansi-Fap0ehe9.js} +21 -52
- package/dist/global/{src-C6aLHRsS.js → src-DwSJ0s0I.js} +28 -110
- package/dist/global/staged.js +1353 -2112
- package/dist/global/{strip-ansi-BL-dgd7n.js → strip-ansi-CE-VDMdw.js} +20 -67
- package/dist/global/version.js +16 -37
- package/dist/global/{workspace-MTwAF3M9.js → workspace-CiqQdO1L.js} +1711 -2834
- package/dist/global/wrap-ansi-Ou9oAs-a.js +3 -0
- package/dist/global/{wrap-ansi-Iww6Ak1s.js → wrap-ansi-eywLlPVQ.js} +29 -80
- package/dist/index.d.ts +1 -1
- package/dist/init-config.js +10 -2
- package/dist/utils/agent.d.ts +15 -1
- package/dist/utils/agent.js +104 -20
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +2 -0
- package/dist/utils/editor.d.ts +16 -3
- package/dist/utils/editor.js +55 -17
- package/dist/utils/prompts.d.ts +33 -4
- package/dist/utils/prompts.js +34 -10
- package/dist/utils/tsconfig.d.ts +6 -0
- package/dist/utils/tsconfig.js +16 -0
- package/package.json +14 -14
- package/templates/monorepo/package.json +1 -1
- package/dist/global/wrap-ansi-BJxjUEQR.js +0 -4
- package/dist/oxlint-config.d.ts +0 -498
- package/dist/oxlint-config.js +0 -309
package/binding/index.cjs
CHANGED
|
@@ -765,7 +765,9 @@ module.exports.detectWorkspace = nativeBinding.detectWorkspace;
|
|
|
765
765
|
module.exports.downloadPackageManager = nativeBinding.downloadPackageManager;
|
|
766
766
|
module.exports.mergeJsonConfig = nativeBinding.mergeJsonConfig;
|
|
767
767
|
module.exports.mergeTsdownConfig = nativeBinding.mergeTsdownConfig;
|
|
768
|
+
module.exports.rewriteEslint = nativeBinding.rewriteEslint;
|
|
768
769
|
module.exports.rewriteImportsInDirectory = nativeBinding.rewriteImportsInDirectory;
|
|
770
|
+
module.exports.rewritePrettier = nativeBinding.rewritePrettier;
|
|
769
771
|
module.exports.rewriteScripts = nativeBinding.rewriteScripts;
|
|
770
772
|
module.exports.run = nativeBinding.run;
|
|
771
773
|
module.exports.runCommand = nativeBinding.runCommand;
|
package/binding/index.d.cts
CHANGED
|
@@ -208,6 +208,22 @@ export interface PathAccess {
|
|
|
208
208
|
readDir: boolean;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
+
/**
|
|
212
|
+
* Rewrite ESLint scripts: rename `eslint` → `vp lint` and strip ESLint-only flags.
|
|
213
|
+
*
|
|
214
|
+
* Uses brush-parser to parse shell commands, so it correctly handles env var prefixes,
|
|
215
|
+
* compound commands (`&&`, `||`, `|`), and quoted arguments.
|
|
216
|
+
*
|
|
217
|
+
* # Arguments
|
|
218
|
+
*
|
|
219
|
+
* * `scripts_json` - The scripts section as a JSON string
|
|
220
|
+
*
|
|
221
|
+
* # Returns
|
|
222
|
+
*
|
|
223
|
+
* * `updated` - The updated scripts JSON string, or `null` if no changes were made
|
|
224
|
+
*/
|
|
225
|
+
export declare function rewriteEslint(scriptsJson: string): string | null;
|
|
226
|
+
|
|
211
227
|
/**
|
|
212
228
|
* Rewrite imports in all TypeScript/JavaScript files under a directory
|
|
213
229
|
*
|
|
@@ -237,6 +253,22 @@ export interface PathAccess {
|
|
|
237
253
|
*/
|
|
238
254
|
export declare function rewriteImportsInDirectory(root: string): BatchRewriteResult;
|
|
239
255
|
|
|
256
|
+
/**
|
|
257
|
+
* Rewrite Prettier scripts: rename `prettier` → `vp fmt` and strip Prettier-only flags.
|
|
258
|
+
*
|
|
259
|
+
* Uses brush-parser to parse shell commands, so it correctly handles env var prefixes,
|
|
260
|
+
* compound commands (`&&`, `||`, `|`), and quoted arguments.
|
|
261
|
+
*
|
|
262
|
+
* # Arguments
|
|
263
|
+
*
|
|
264
|
+
* * `scripts_json` - The scripts section as a JSON string
|
|
265
|
+
*
|
|
266
|
+
* # Returns
|
|
267
|
+
*
|
|
268
|
+
* * `updated` - The updated scripts JSON string, or `null` if no changes were made
|
|
269
|
+
*/
|
|
270
|
+
export declare function rewritePrettier(scriptsJson: string): string | null;
|
|
271
|
+
|
|
240
272
|
/**
|
|
241
273
|
* Rewrite scripts json content using rules from rules_yaml
|
|
242
274
|
*
|