@vite-hub/codemods 0.5.1 → 0.6.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.
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as runCli } from "./cli-main-BPr3LL6y.js";
2
+ import { t as runCli } from "./cli-main-ICe6yfP7.js";
3
3
  // src/cli.ts
4
4
  process.exitCode = await runCli(process.argv.slice(2));
5
5
  export {};
package/dist/index.d.ts CHANGED
@@ -112,6 +112,8 @@ interface MigrationStep {
112
112
  result?: CodemodResult;
113
113
  /** Why the codemod could not migrate. Its edits are not applied. */
114
114
  error?: string;
115
+ /** How to fix the problem before retrying the codemod. */
116
+ fix?: string;
115
117
  }
116
118
  interface Migration {
117
119
  cwd: string;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { l as codemods, n as detectCodemods, a as findCodemod, o as formatDiff, r as formatMigrationReport, s as formatReport, d as isCodemodError, t as runCli, c as runCodemod, i as runMigration, u as upgradeCodemods } from "./cli-main-BPr3LL6y.js";
1
+ export { l as codemods, n as detectCodemods, a as findCodemod, o as formatDiff, r as formatMigrationReport, s as formatReport, d as isCodemodError, t as runCli, c as runCodemod, i as runMigration, u as upgradeCodemods } from "./cli-main-ICe6yfP7.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vite-hub/codemods",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "Codemods that move applications to ViteHub.",
5
5
  "keywords": [
6
6
  "codemod",
@@ -54,7 +54,7 @@
54
54
  "@babel/types": "^8.1.3",
55
55
  "@types/node": "^24.19.2",
56
56
  "@types/semver": "^7.8.0",
57
- "@vite-hub/env": "0.5.1",
57
+ "@vite-hub/env": "0.6.0",
58
58
  "@vite-hub/internal": "0.0.1",
59
59
  "publint": "^0.3.25",
60
60
  "typescript": "^6.0.3",