Skip to content

Commit

Permalink
fix: ibmtelemetry bin hashbang
Browse files Browse the repository at this point in the history
  • Loading branch information
jharvey10 committed Oct 25, 2023
1 parent 3839fe9 commit 18e3abb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ import path from 'path'

await build({
banner: {
js: `const require = (await import("node:module")).createRequire(import.meta.url);
js: `#!/usr/bin/env node
/*
* Copyright IBM Corp. <%= YEAR %>, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
const require = (await import("node:module")).createRequire(import.meta.url);
const __filename = (await import("node:url")).fileURLToPath(import.meta.url);
const __dirname = (await import("node:path")).dirname(__filename);`
},
Expand Down

0 comments on commit 18e3abb

Please sign in to comment.