@ttskch/prettier-plugin-tailwindcss-anywhere 0.0.4 → 0.0.8
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 +4 -0
- package/dist/parser.js +1 -1
- package/package.json +4 -6
- package/src/parser.ts +1 -1
package/README.md
CHANGED
package/dist/parser.js
CHANGED
|
@@ -16,7 +16,7 @@ export const parse = async (text, options) => {
|
|
|
16
16
|
map.set(original, fixed);
|
|
17
17
|
}
|
|
18
18
|
for (const [original, fixed] of map) {
|
|
19
|
-
formattedText = formattedText.
|
|
19
|
+
formattedText = formattedText.replaceAll(original, fixed);
|
|
20
20
|
}
|
|
21
21
|
return {
|
|
22
22
|
body: formattedText,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttskch/prettier-plugin-tailwindcss-anywhere",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "A Prettier plugin for sorting TailwindCSS classes in any HTML-like language, like Twig etc.",
|
|
5
5
|
"keywords": ["prettier", "tailwindcss", "formatter", "html", "twig"],
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">= 20.9 <
|
|
8
|
+
"node": ">= 20.9 < 23"
|
|
9
9
|
},
|
|
10
10
|
"packageManager": "pnpm@9.12.3",
|
|
11
11
|
"main": "dist/index.js",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"build": "tsc -d -p tsconfig.json",
|
|
42
42
|
"build:watch": "tsc -w -d -p tsconfig.json",
|
|
43
43
|
"build:release": "npm run clean && tsc -d -p tsconfig.release.json",
|
|
44
|
+
"prepublishOnly": "npm run build:release",
|
|
44
45
|
"check": "biome check",
|
|
45
46
|
"check:fix": "biome check --write",
|
|
46
47
|
"test": "vitest run unit",
|
|
@@ -48,8 +49,5 @@
|
|
|
48
49
|
"test:watch": "vitest unit"
|
|
49
50
|
},
|
|
50
51
|
"author": "Takashi Kanemoto <ttskch@gmail.com>",
|
|
51
|
-
"license": "MIT"
|
|
52
|
-
"volta": {
|
|
53
|
-
"node": "20.17.0"
|
|
54
|
-
}
|
|
52
|
+
"license": "MIT"
|
|
55
53
|
}
|