@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.
- package/dist/index.js +4 -1
- 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(
|
|
211
|
+
console.log(
|
|
212
|
+
`cmssy: nothing to migrate - no ${PREVIOUS_MAJOR[version]} imports found.`
|
|
213
|
+
);
|
|
211
214
|
return;
|
|
212
215
|
}
|
|
213
216
|
console.log(
|