You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/cli/src/cli.ts
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,9 @@ Usage
22
22
23
23
Options
24
24
--transform, -t the transform to run, will prompt for a transform if not provided and no module is passed
25
-
--packages, runs transforms for the specified comma separated list of packages, optionally include a version for each package to run all transforms since that version
26
-
--parser, -p babel|babylon|flow|ts|tsx parser to use for parsing the source files (default: babel)
25
+
--packages -pkgs, Comma separated list of packages to run transforms for, @scope/package[@version]. If version is supplied, will only run transforms above that version
27
26
--version, -v version number
27
+
--parser, -p babel|babylon|flow|ts|tsx parser to use for parsing the source files (default: babel)
`Invalid version provided to the --packages flag. Package ${pkg} is missing version. Please try: "@[scope]/[package]@[version]" for example @atlaskit/avatar@10.0.0`,
47
+
);
48
+
}
39
49
40
-
console.log(
41
-
// codemod,
42
-
codemod.transform18_0_0,
43
-
codemod.transform19_0_0,
44
-
// packageManager.list(),
45
-
// packageManager.getInfo(packageName),
46
-
);
50
+
constcodemodName=`@codeshift/mod-${name}`;
47
51
48
-
// TODO: We'll have to uninstall the mod at some point
0 commit comments