Skip to content

Commit

Permalink
resolve parcel watcher prebuilds from actual package
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlc committed Jun 14, 2021
1 parent 2deda99 commit c01fed9
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 4 deletions.
52 changes: 52 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions packages/tailwindcss-language-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
],
"devDependencies": {
"@ctrl/tinycolor": "3.1.4",
"@parcel/watcher": "2.0.0-alpha.10",
"@types/debounce": "1.2.0",
"@types/node": "14.14.34",
"@types/vscode": "1.52.0",
Expand Down
11 changes: 7 additions & 4 deletions packages/tailwindcss-language-server/src/watcher/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ const uv = (process.versions.uv || '').split('.')[0]

const prebuilds = {
'darwin-x64': {
'node.napi.glibc.node': () => require('./prebuilds/darwin-x64.node.napi.glibc.node'),
'node.napi.glibc.node': () =>
require('@parcel/watcher/prebuilds/darwin-x64/node.napi.glibc.node'),
},
'linux-x64': {
'node.napi.glibc.node': () => require('./prebuilds/linux-x64.node.napi.glibc.node'),
'node.napi.musl.node': () => require('./prebuilds/linux-x64.node.napi.musl.node'),
'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'),
},
'win32-x64': {
'node.napi.glibc.node': () => require('./prebuilds/win32-x64.node.napi.glibc.node'),
'node.napi.glibc.node': () =>
require('@parcel/watcher/prebuilds/win32-x64/node.napi.glibc.node'),
},
}

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit c01fed9

Please sign in to comment.