Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Nov 22, 2024
1 parent a0f9e0c commit fbaa0b1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,15 @@ async function main() {
console.log(`Build took ${Date.now() - start}ms`)
await printSize(outfile)

const content = (await readFile(outfile, 'utf-8')).replace(
/__dirname, "\.\.\/"/g,
'__dirname, "./node_modules/@serialport/bindings-cpp"',
).replace(
`"../../package.json"`, `"./node_modules/@zwave-js/server/package.json"`
)
const content = (await readFile(outfile, 'utf-8'))
.replace(
/__dirname, "\.\.\/"/g,
'__dirname, "./node_modules/@serialport/bindings-cpp"',
)
.replace(
`"../../package.json"`,
`"./node_modules/@zwave-js/server/package.json"`,
)

await writeFile(outfile, content)

Expand Down

0 comments on commit fbaa0b1

Please sign in to comment.