tailwindcss-patch 8.4.3 → 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 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.