@cmssy/codemod 7.0.0 → 7.0.1

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -164,6 +164,7 @@ function transform2(source) {
164
164
 
165
165
  // src/index.ts
166
166
  var TRANSFORMS = { v5: transform, v7: transform2 };
167
+ var PREVIOUS_MAJOR = { v5: "4.x", v7: "6.x" };
167
168
  var SKIP = /* @__PURE__ */ new Set(["node_modules", "dist", "build", "out", "coverage"]);
168
169
  var EXTENSIONS = [".ts", ".tsx", ".js", ".jsx", ".mjs"];
169
170
  function skipDirectory(name) {
@@ -207,7 +208,9 @@ async function main() {
207
208
  if (!dry) await writeFile(file, code);
208
209
  }
209
210
  if (touched.length === 0) {
210
- console.log("cmssy: nothing to migrate - no 4.x imports found.");
211
+ console.log(
212
+ `cmssy: nothing to migrate - no ${PREVIOUS_MAJOR[version]} imports found.`
213
+ );
211
214
  return;
212
215
  }
213
216
  console.log(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmssy/codemod",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Rewrites cmssy imports across major versions, so a breaking release costs minutes instead of an afternoon.",
5
5
  "keywords": [
6
6
  "cmssy",