Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Jan 9, 2025
1 parent 4026445 commit 49e06a5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
// only runs integration and unit tests, this change would be missed and could end up in a release.
// Therefor, once all binaries are precompiled in CI and tests pass, run esbuild with bundle:true
// which will copy all binaries to the outfile folder and throw if any of them are missing.
import esbuild from "esbuild";
import esbuild from 'esbuild';

console.log("Running build using esbuild version", esbuild.version);
console.log('Running build using esbuild version', esbuild.version);

esbuild.buildSync({
platform: "node",
entryPoints: ["./index.ts"],
outfile: "./dist/cjs/index.js",
target: "esnext",
format: "cjs",
bundle: true,
loader: { ".node": "copy" },
external: ["@sentry/node", "@sentry/profiling-node"],
platform: 'node',
entryPoints: ['./index.ts'],
outfile: './dist/cjs/index.js',
target: 'esnext',
format: 'cjs',
bundle: true,
loader: { '.node': 'copy' },
external: ['@sentry/node', '@sentry/profiling-node'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
// only runs integration and unit tests, this change would be missed and could end up in a release.
// Therefor, once all binaries are precompiled in CI and tests pass, run esbuild with bundle:true
// which will copy all binaries to the outfile folder and throw if any of them are missing.
import esbuild from "esbuild";
import esbuild from 'esbuild';

console.log("Running build using esbuild version", esbuild.version);
console.log('Running build using esbuild version', esbuild.version);

esbuild.buildSync({
platform: "node",
entryPoints: ["./index.ts"],
outfile: "./dist/esm/index.mjs",
target: "esnext",
format: "esm",
bundle: true,
loader: { ".node": "copy" },
external: ["@sentry/node", "@sentry/profiling-node"],
platform: 'node',
entryPoints: ['./index.ts'],
outfile: './dist/esm/index.mjs',
target: 'esnext',
format: 'esm',
bundle: true,
loader: { '.node': 'copy' },
external: ['@sentry/node', '@sentry/profiling-node'],
});

0 comments on commit 49e06a5

Please sign in to comment.