Skip to content

Commit

Permalink
chore: add --js-entrypoint support to esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Dec 13, 2023
1 parent 68326d6 commit f608a40
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ async function main() {

/** @type { import('esbuild').BuildOptions } */
const config = {
entryPoints: ['api/bin/www.ts'],
entryPoints: [
process.argv.includes('--js-entrypoint')
? 'server/bin/www.js'
: 'api/bin/www.ts',
],
plugins: [nativeNodeModulesPlugin],
bundle: true,
platform: 'node',
Expand Down

0 comments on commit f608a40

Please sign in to comment.