tailwint 1.0.2 → 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 +17 -1
- package/dist/lsp.js +6 -1
- package/package.json +1 -1
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,6 +29,22 @@ export async function run(options = {}) {
|
|
|
29
29
|
cwd,
|
|
30
30
|
absolute: true,
|
|
31
31
|
nodir: true,
|
|
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
|
+
],
|
|
32
48
|
});
|
|
33
49
|
files.push(...matches);
|
|
34
50
|
}
|
package/dist/lsp.js
CHANGED
|
@@ -223,6 +223,9 @@ export function notify(method, params) {
|
|
|
223
223
|
export async function shutdown() {
|
|
224
224
|
await send("shutdown", {}).catch(() => { });
|
|
225
225
|
notify("exit", {});
|
|
226
|
+
server.stdin.end();
|
|
227
|
+
server.stdout.destroy();
|
|
228
|
+
server.stderr.destroy();
|
|
226
229
|
server.kill();
|
|
227
230
|
}
|
|
228
231
|
export function fileUri(absPath) {
|
|
@@ -231,8 +234,10 @@ export function fileUri(absPath) {
|
|
|
231
234
|
export function langId(filePath) {
|
|
232
235
|
if (filePath.endsWith(".css"))
|
|
233
236
|
return "css";
|
|
234
|
-
if (filePath.endsWith(".html") || filePath.endsWith(".vue") || filePath.endsWith(".svelte"))
|
|
237
|
+
if (filePath.endsWith(".html") || filePath.endsWith(".vue") || filePath.endsWith(".svelte") || filePath.endsWith(".astro"))
|
|
235
238
|
return "html";
|
|
239
|
+
if (filePath.endsWith(".mdx"))
|
|
240
|
+
return "mdx";
|
|
236
241
|
if (filePath.endsWith(".jsx"))
|
|
237
242
|
return "javascriptreact";
|
|
238
243
|
return "typescriptreact";
|