@ttskch/prettier-plugin-tailwindcss-anywhere 0.0.3 → 0.0.7

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.
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttskch/prettier-plugin-tailwindcss-anywhere",
3
- "version": "0.0.3",
3
+ "version": "0.0.7",
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",
@@ -8,10 +8,10 @@
8
8
  "node": ">= 20.9 < 21"
9
9
  },
10
10
  "packageManager": "pnpm@9.12.3",
11
- "main": "dist/src/index.js",
11
+ "main": "dist/index.js",
12
12
  "exports": {
13
13
  ".": {
14
- "import": "./dist/src/index.js"
14
+ "import": "./dist/index.js"
15
15
  }
16
16
  },
17
17
  "files": ["dist", "src"],
@@ -35,12 +35,13 @@
35
35
  "prettier-plugin-tailwindcss": "^0.6"
36
36
  },
37
37
  "scripts": {
38
- "start": "node dist/src/main.js",
38
+ "start": "node dist/index.js",
39
39
  "clean": "rimraf coverage dist tmp",
40
40
  "prebuild": "biome lint",
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",
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 {
package/src/types.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /* v8 ignore next */
1
2
  export type AnywhereNode = {
2
3
  body: string;
3
4
  start: number;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes