Skip to content

Commit 3f6cc1f

Browse files
Bump @parcel/watcher (#1269)
This is just a general version bump. I thought an issue was parcel watcher related but turned out not to be. Saw we were **very** behind so I wanted to make sure we were up to date.
1 parent 0610bf4 commit 3f6cc1f

File tree

5 files changed

+196
-26
lines changed

5 files changed

+196
-26
lines changed

packages/tailwindcss-language-server/package.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@
3434
"access": "public"
3535
},
3636
"devDependencies": {
37-
"@parcel/watcher": "2.0.3",
37+
"@parcel/watcher": "2.5.1",
38+
"@parcel/watcher-darwin-x64": "2.5.1",
39+
"@parcel/watcher-darwin-arm64": "2.5.1",
40+
"@parcel/watcher-win32-x64": "2.5.1",
41+
"@parcel/watcher-win32-arm64": "2.5.1",
42+
"@parcel/watcher-linux-x64-glibc": "2.5.1",
43+
"@parcel/watcher-linux-x64-musl": "2.5.1",
44+
"@parcel/watcher-linux-arm64-glibc": "2.5.1",
45+
"@parcel/watcher-linux-arm64-musl": "2.5.1",
3846
"@tailwindcss/aspect-ratio": "0.4.2",
3947
"@tailwindcss/container-queries": "0.1.0",
4048
"@tailwindcss/forms": "0.5.3",

packages/tailwindcss-language-server/src/tw.ts

+8
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,10 @@ export class TW {
521521
}
522522
}
523523
} else if (parcel.getBinding()) {
524+
console.log(
525+
'[Global] Your LSP client does not support watching files on behalf of the server',
526+
)
527+
console.log('[Global] Using bundled file watcher: @parcel/watcher')
524528
let typeMap = {
525529
create: FileChangeType.Created,
526530
update: FileChangeType.Changed,
@@ -547,6 +551,10 @@ export class TW {
547551
},
548552
})
549553
} else {
554+
console.log(
555+
'[Global] Your LSP client does not support watching files on behalf of the server',
556+
)
557+
console.log('[Global] Using bundled file watcher: chokidar')
550558
let watch: typeof chokidar.watch = require('chokidar').watch
551559
let chokidarWatcher = watch(
552560
[`**/${CONFIG_GLOB}`, `**/${PACKAGE_LOCK_GLOB}`, `**/${CSS_GLOB}`, `**/${TSCONFIG_GLOB}`],

packages/tailwindcss-language-server/src/watcher/index.js

+12-9
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,24 @@ const uv = (process.versions.uv || '').split('.')[0]
1313

1414
const prebuilds = {
1515
'darwin-arm64': {
16-
'node.napi.glibc.node': () =>
17-
require('@parcel/watcher/prebuilds/darwin-arm64/node.napi.glibc.node'),
16+
'node.napi.glibc.node': () => require('@parcel/watcher-darwin-arm64/watcher.node'),
1817
},
1918
'darwin-x64': {
20-
'node.napi.glibc.node': () =>
21-
require('@parcel/watcher/prebuilds/darwin-x64/node.napi.glibc.node'),
19+
'node.napi.glibc.node': () => require('@parcel/watcher-darwin-x64/watcher.node'),
2220
},
2321
'linux-x64': {
24-
'node.napi.glibc.node': () =>
25-
require('@parcel/watcher/prebuilds/linux-x64/node.napi.glibc.node'),
26-
'node.napi.musl.node': () => require('@parcel/watcher/prebuilds/linux-x64/node.napi.musl.node'),
22+
'node.napi.glibc.node': () => require('@parcel/watcher-linux-x64-glibc/watcher.node'),
23+
'node.napi.musl.node': () => require('@parcel/watcher-linux-x64-musl/watcher.node'),
24+
},
25+
'linux-arm64': {
26+
'node.napi.glibc.node': () => require('@parcel/watcher-linux-arm64-glibc/watcher.node'),
27+
'node.napi.musl.node': () => require('@parcel/watcher-linux-arm64-musl/watcher.node'),
2728
},
2829
'win32-x64': {
29-
'node.napi.glibc.node': () =>
30-
require('@parcel/watcher/prebuilds/win32-x64/node.napi.glibc.node'),
30+
'node.napi.glibc.node': () => require('@parcel/watcher-win32-x64/watcher.node'),
31+
},
32+
'win32-arm64': {
33+
'node.napi.glibc.node': () => require('@parcel/watcher-win32-arm64/watcher.node'),
3134
},
3235
}
3336

packages/vscode-tailwindcss/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Only scan the file system once when needed ([#1287](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1287))
66
- Don't follow recursive symlinks when searching for projects ([#1270](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1270))
77
- Correctly re-create a project when its main config file is removed then re-created ([#1300](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1300))
8+
- Bump `@parcel/watcher` used by the language server ([#1269](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1269))
89

910
# 0.14.13
1011

pnpm-lock.yaml

+166-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)