@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 CHANGED
@@ -7,6 +7,10 @@
7
7
 
8
8
  A Prettier plugin for sorting TailwindCSS classes **in any HTML-like language, like Twig etc**⚡
9
9
 
10
+ ## Requirements
11
+
12
+ * Node: `>= 20.9 < 23`
13
+
10
14
  ## Installation
11
15
 
12
16
  ```shell
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.replace(original, fixed);
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.4",
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 < 21"
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
  }
package/src/parser.ts CHANGED
@@ -30,7 +30,7 @@ export const parse = async (
30
30
  }
31
31
 
32
32
  for (const [original, fixed] of map) {
33
- formattedText = formattedText.replace(original, fixed);
33
+ formattedText = formattedText.replaceAll(original, fixed);
34
34
  }
35
35
 
36
36
  return {