codemod 0.10.2 → 0.10.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "codemod",
3
3
  "author": "Codemod, Inc.",
4
- "version": "0.10.2",
4
+ "version": "0.10.5",
5
5
  "description": "A codemod engine for Node.js libraries (jscodeshift, ts-morph, etc.)",
6
6
  "type": "module",
7
7
  "exports": null,
@@ -74,7 +74,7 @@
74
74
  "valibot": "^0.24.1",
75
75
  "vitest": "^1.0.1",
76
76
  "yargs": "^17.6.2",
77
- "@codemod-com/filemod": "2.0.2",
77
+ "@codemod-com/filemod": "2.0.3",
78
78
  "@codemod-com/utilities": "1.1.0"
79
79
  },
80
80
  "packageManager": "pnpm@8.6.7",
@@ -88,22 +88,27 @@
88
88
  "files": [
89
89
  "./dist/index.cjs",
90
90
  "LICENSE",
91
- "README.md"
91
+ "README.md",
92
+ "scripts/postinstall.js"
92
93
  ],
93
94
  "publishConfig": {
94
95
  "access": "public"
95
96
  },
96
97
  "dependencies": {
98
+ "@vue/compiler-sfc": "^3.4.21",
97
99
  "exponential-backoff": "^3.1.1",
98
100
  "inquirer": "^9.2.16",
99
101
  "js-yaml": "4.1.0",
102
+ "keytar": "^7.9.0",
100
103
  "ms": "^2.1.3",
101
- "prettier": "^3.2.5"
104
+ "prettier": "^3.2.5",
105
+ "vue-sfc-descriptor-to-string": "^2.0.0"
102
106
  },
103
107
  "scripts": {
104
- "build": "esbuild ./src/index.ts --bundle --platform=node --target=node18 --minify --format=cjs --legal-comments=inline --outfile=./dist/index.cjs --external:esbuild",
108
+ "build": "node ./build.js",
105
109
  "package": "pkg --compress GZip .",
106
110
  "test": "TEST=1 vitest run",
107
- "coverage": "TEST=1 vitest run --coverage"
111
+ "coverage": "TEST=1 vitest run --coverage",
112
+ "postinstall": "node scripts/postinstall.js"
108
113
  }
109
114
  }
@@ -0,0 +1,10 @@
1
+ import { exec } from "child_process";
2
+
3
+ exec("npm install -g esbuild --no-audit", (error, stdout, stderr) => {
4
+ if (error) {
5
+ console.error(`codemod (postinstall error) - ${error}`);
6
+ return;
7
+ }
8
+
9
+ console.log("codemod - esbuild installed globally");
10
+ });