tailwint 1.0.3 → 1.0.4

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/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import { fixFile } from "./edits.js";
16
16
  import { c, setTitle, windTrail, braille, windWave, dots, tick, advanceTick, startSpinner, progressBar, banner, fileBadge, diagLine, rainbowText, celebrationAnimation, } from "./ui.js";
17
17
  // Re-export for tests
18
18
  export { applyEdits } from "./edits.js";
19
- const DEFAULT_PATTERNS = ["**/*.{tsx,jsx,html,vue,svelte,css}"];
19
+ const DEFAULT_PATTERNS = ["**/*.{tsx,jsx,html,vue,svelte,astro,mdx,css}"];
20
20
  export async function run(options = {}) {
21
21
  resetState();
22
22
  const t0 = Date.now();
@@ -29,7 +29,22 @@ export async function run(options = {}) {
29
29
  cwd,
30
30
  absolute: true,
31
31
  nodir: true,
32
- ignore: ["**/node_modules/**"],
32
+ ignore: [
33
+ "**/node_modules/**",
34
+ "**/dist/**",
35
+ "**/build/**",
36
+ "**/out/**",
37
+ "**/coverage/**",
38
+ "**/public/**",
39
+ "**/tmp/**",
40
+ "**/.tmp/**",
41
+ "**/.cache/**",
42
+ "**/vendor/**",
43
+ "**/storybook-static/**",
44
+ "**/.next/**",
45
+ "**/.nuxt/**",
46
+ "**/.svelte-kit/**",
47
+ ],
33
48
  });
34
49
  files.push(...matches);
35
50
  }
package/dist/lsp.js CHANGED
@@ -234,8 +234,10 @@ export function fileUri(absPath) {
234
234
  export function langId(filePath) {
235
235
  if (filePath.endsWith(".css"))
236
236
  return "css";
237
- if (filePath.endsWith(".html") || filePath.endsWith(".vue") || filePath.endsWith(".svelte"))
237
+ if (filePath.endsWith(".html") || filePath.endsWith(".vue") || filePath.endsWith(".svelte") || filePath.endsWith(".astro"))
238
238
  return "html";
239
+ if (filePath.endsWith(".mdx"))
240
+ return "mdx";
239
241
  if (filePath.endsWith(".jsx"))
240
242
  return "javascriptreact";
241
243
  return "typescriptreact";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwint",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Tailwind CSS linter for CI — drives the official language server to catch class issues and auto-fix them",
5
5
  "license": "MIT",
6
6
  "author": "Peter Wang",