Skip to content

Commit

Permalink
fix: missing @zwave-js/server package.json in bundle
Browse files Browse the repository at this point in the history
Fixes #4027
  • Loading branch information
robertsLando committed Nov 22, 2024
1 parent 40bcf6b commit a0f9e0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ async function main() {
const externals = [
'@serialport/bindings-cpp/prebuilds',
'zwave-js/package.json',
'@zwave-js/server/package.json',
'@zwave-js/config/package.json',
'@zwave-js/config/config',
'@zwave-js/config/build',
Expand Down Expand Up @@ -126,6 +127,8 @@ async function main() {
const content = (await readFile(outfile, 'utf-8')).replace(

Check failure on line 127 in esbuild.js

View workflow job for this annotation

GitHub Actions / test (18.x)

Insert `⏎↹↹`
/__dirname, "\.\.\/"/g,

Check failure on line 128 in esbuild.js

View workflow job for this annotation

GitHub Actions / test (18.x)

Insert `↹`
'__dirname, "./node_modules/@serialport/bindings-cpp"',

Check failure on line 129 in esbuild.js

View workflow job for this annotation

GitHub Actions / test (18.x)

Insert `↹`
).replace(

Check failure on line 130 in esbuild.js

View workflow job for this annotation

GitHub Actions / test (18.x)

Replace `)` with `↹)⏎↹↹`
`"../../package.json"`, `"./node_modules/@zwave-js/server/package.json"`

Check failure on line 131 in esbuild.js

View workflow job for this annotation

GitHub Actions / test (18.x)

Replace ``"../../package.json"`,·`"./node_modules/@zwave-js/server/package.json"`` with `↹`"../../package.json"`,⏎↹↹↹`"./node_modules/@zwave-js/server/package.json"`,`
)

Check failure on line 132 in esbuild.js

View workflow job for this annotation

GitHub Actions / test (18.x)

Insert `↹`

await writeFile(outfile, content)
Expand Down Expand Up @@ -176,6 +179,7 @@ async function main() {

await patchPkgJson('node_modules/@zwave-js/config')
await patchPkgJson('node_modules/zwave-js')
await patchPkgJson('node_modules/@zwave-js/server')
}

main().catch((err) => {
Expand Down

0 comments on commit a0f9e0c

Please sign in to comment.