@wallarm-org/migrator 1.0.1-rc-fix-data-display-category.1 → 2.0.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/index.js +11 -1
- package/package.json +1 -1
- package/versions.json +8 -1
package/dist/index.js
CHANGED
|
@@ -318,9 +318,19 @@ const numeric_badge_type_color_migration = {
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
|
+
const SUBPATH = '@wallarm-org/design-system/TreeBase';
|
|
322
|
+
const tree_base_removed_HINT = 'TreeBase was removed (it was never exported from the package root): rebuild this tree with TreeView (Ark tree-view) or Tree from @wallarm-org/design-system';
|
|
323
|
+
const tree_base_removed_migration = {
|
|
324
|
+
id: 'tree-base-removed',
|
|
325
|
+
title: 'TreeBase removed → use TreeView or Tree',
|
|
326
|
+
transform (file, ctx) {
|
|
327
|
+
for (const decl of file.getImportDeclarations())if (decl.getModuleSpecifierValue() === SUBPATH) ctx.report(decl, tree_base_removed_HINT);
|
|
328
|
+
}
|
|
329
|
+
};
|
|
321
330
|
const migrations_migrations = [
|
|
322
331
|
numeric_badge_type_color_migration,
|
|
323
|
-
avatar_size_rename_migration
|
|
332
|
+
avatar_size_rename_migration,
|
|
333
|
+
tree_base_removed_migration
|
|
324
334
|
];
|
|
325
335
|
const USAGE = `Usage: migrator --from <version> [--to <version>] [--dry-run] [paths...]
|
|
326
336
|
|
package/package.json
CHANGED
package/versions.json
CHANGED