@trackunit/migrations 0.2.39-alpha-a3b7922eaab.0 → 0.2.39
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/CHANGELOG.md +4 -0
- package/README.md +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -69,6 +69,10 @@ flowchart LR
|
|
|
69
69
|
rccMig --> pending
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
+
## Writing classname-aware migrations
|
|
73
|
+
|
|
74
|
+
If a migration needs to detect or rewrite Tailwind/classname strings in source files (e.g. renaming or removing a utility class), don't reimplement detection logic — import `@trackunit/css-classname-utils` (`libs/css/classname-utils`) directly. It has no `eslint`/`@typescript-eslint/utils` runtime dependency, so it's safe to use outside an ESLint rule context, and it's already the basis for the equivalent ESLint rules in `plugin-trackunit`. See the ["Shared classname utilities" section](../../docs/tech/TAILWIND-ARCHITECTURE.md#shared-classname-utilities) of the Tailwind architecture doc for what it exposes, notably `replaceClassToken()` for word-boundary-safe token replace/remove.
|
|
75
|
+
|
|
72
76
|
## Usage
|
|
73
77
|
|
|
74
78
|
### Step 1: Discover and collect migrations
|