@plumeria/codemod 18.2.16 → 18.2.17

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/README.md +17 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -75,7 +75,23 @@ Sibling combinators, `:global`, and a `composes` reaching into another file are
75
75
  named rather than guessed at, and the original rule is left in place. The exit
76
76
  code is 1 while anything remains, so the command composes with a script.
77
77
 
78
- Pass `-d, --dry-run` to see the stylesheets and consumer counts without writing.
78
+ Start with `-d, --dry-run` to inspect the migration without creating any
79
+ `*.styles.ts` files or rewriting their consumers:
80
+
81
+ ```sh
82
+ npx @plumeria/codemod migrate --from css-modules --dry-run [paths...]
83
+ ```
84
+
85
+ ```
86
+ src/Card.module.css -> src/Card.styles.ts
87
+
88
+ 1 stylesheet(s) would be converted, 1 consumer(s) rewritten.
89
+ Run without --dry-run to apply.
90
+ ```
91
+
92
+ Any rules that cannot be converted are reported in the same run, and the exit
93
+ code remains 1 while such rules are present. Remove `--dry-run` to write the
94
+ generated modules and consumer changes.
79
95
 
80
96
  ## `rename-prop`
81
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/codemod",
3
- "version": "18.2.16",
3
+ "version": "18.2.17",
4
4
  "description": "Codemods for migrating Plumeria APIs",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",