tailwindcss-patch 8.4.2 → 8.5.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/README.md +5 -0
- package/dist/{chunk-6WXBENUZ.js → chunk-CGQTZTVO.js} +963 -690
- package/dist/{chunk-K5JHLM3J.mjs → chunk-V4NW4IGL.mjs} +815 -542
- package/dist/cli.js +2 -2
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +33 -4
- package/dist/index.d.ts +33 -4
- package/dist/index.js +4 -2
- package/dist/index.mjs +3 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -37,6 +37,9 @@ pnpm dlx tw-patch extract
|
|
|
37
37
|
|
|
38
38
|
# Capture every token (candidate) with file/position metadata
|
|
39
39
|
pnpm dlx tw-patch tokens --format lines
|
|
40
|
+
|
|
41
|
+
# Check which patches are applied
|
|
42
|
+
pnpm dlx tw-patch status --json
|
|
40
43
|
```
|
|
41
44
|
|
|
42
45
|
### Embed into another CLI
|
|
@@ -154,6 +157,8 @@ const groupedTokens = await patcher.collectContentTokensByFile()
|
|
|
154
157
|
console.log(groupedTokens['src/button.tsx'][0].rawCandidate)
|
|
155
158
|
// Preserve absolute file paths:
|
|
156
159
|
// await patcher.collectContentTokensByFile({ key: 'absolute', stripAbsolutePaths: false })
|
|
160
|
+
const patchStatus = await patcher.getPatchStatus()
|
|
161
|
+
console.log(patchStatus.entries)
|
|
157
162
|
```
|
|
158
163
|
|
|
159
164
|
The constructor accepts either the new object shown above or the historical `patch`/`cache` shape. Conversions happen internally so existing configs remain backwards compatible.
|