Skip to content

Bump @parcel/watcher #1269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion packages/tailwindcss-language-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,15 @@
"access": "public"
},
"devDependencies": {
"@parcel/watcher": "2.0.3",
"@parcel/watcher": "2.5.1",
"@parcel/watcher-darwin-x64": "2.5.1",
"@parcel/watcher-darwin-arm64": "2.5.1",
"@parcel/watcher-win32-x64": "2.5.1",
"@parcel/watcher-win32-arm64": "2.5.1",
"@parcel/watcher-linux-x64-glibc": "2.5.1",
"@parcel/watcher-linux-x64-musl": "2.5.1",
"@parcel/watcher-linux-arm64-glibc": "2.5.1",
"@parcel/watcher-linux-arm64-musl": "2.5.1",
"@tailwindcss/aspect-ratio": "0.4.2",
"@tailwindcss/container-queries": "0.1.0",
"@tailwindcss/forms": "0.5.3",
Expand Down
8 changes: 8 additions & 0 deletions packages/tailwindcss-language-server/src/tw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,10 @@ export class TW {
}
}
} else if (parcel.getBinding()) {
console.log(
'[Global] Your LSP client does not support watching files on behalf of the server',
)
console.log('[Global] Using bundled file watcher: @parcel/watcher')
let typeMap = {
create: FileChangeType.Created,
update: FileChangeType.Changed,
Expand All @@ -547,6 +551,10 @@ export class TW {
},
})
} else {
console.log(
'[Global] Your LSP client does not support watching files on behalf of the server',
)
console.log('[Global] Using bundled file watcher: chokidar')
let watch: typeof chokidar.watch = require('chokidar').watch
let chokidarWatcher = watch(
[`**/${CONFIG_GLOB}`, `**/${PACKAGE_LOCK_GLOB}`, `**/${CSS_GLOB}`, `**/${TSCONFIG_GLOB}`],
Expand Down
21 changes: 12 additions & 9 deletions packages/tailwindcss-language-server/src/watcher/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,24 @@ const uv = (process.versions.uv || '').split('.')[0]

const prebuilds = {
'darwin-arm64': {
'node.napi.glibc.node': () =>
require('@parcel/watcher/prebuilds/darwin-arm64/node.napi.glibc.node'),
'node.napi.glibc.node': () => require('@parcel/watcher-darwin-arm64/watcher.node'),
},
'darwin-x64': {
'node.napi.glibc.node': () =>
require('@parcel/watcher/prebuilds/darwin-x64/node.napi.glibc.node'),
'node.napi.glibc.node': () => require('@parcel/watcher-darwin-x64/watcher.node'),
},
'linux-x64': {
'node.napi.glibc.node': () =>
require('@parcel/watcher/prebuilds/linux-x64/node.napi.glibc.node'),
'node.napi.musl.node': () => require('@parcel/watcher/prebuilds/linux-x64/node.napi.musl.node'),
'node.napi.glibc.node': () => require('@parcel/watcher-linux-x64-glibc/watcher.node'),
'node.napi.musl.node': () => require('@parcel/watcher-linux-x64-musl/watcher.node'),
},
'linux-arm64': {
'node.napi.glibc.node': () => require('@parcel/watcher-linux-arm64-glibc/watcher.node'),
'node.napi.musl.node': () => require('@parcel/watcher-linux-arm64-musl/watcher.node'),
},
'win32-x64': {
'node.napi.glibc.node': () =>
require('@parcel/watcher/prebuilds/win32-x64/node.napi.glibc.node'),
'node.napi.glibc.node': () => require('@parcel/watcher-win32-x64/watcher.node'),
},
'win32-arm64': {
'node.napi.glibc.node': () => require('@parcel/watcher-win32-arm64/watcher.node'),
},
}

Expand Down
1 change: 1 addition & 0 deletions packages/vscode-tailwindcss/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Only scan the file system once when needed ([#1287](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1287))
- Don't follow recursive symlinks when searching for projects ([#1270](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1270))
- Correctly re-create a project when its main config file is removed then re-created ([#1300](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1300))
- Bump `@parcel/watcher` used by the language server ([#1269](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1269))

# 0.14.13

Expand Down
182 changes: 166 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.