From: Chris Duncan Date: Mon, 23 Mar 2026 05:46:51 +0000 (-0700) Subject: Simplify esbuild entry points for node build. Include source maps for typings. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=7d698df76758d85f185ec3d867fac2e2b560398a;p=nano25519.git Simplify esbuild entry points for node build. Include source maps for typings. --- diff --git a/esbuild/config.mjs b/esbuild/config.mjs index 9dc1265..b9b8abb 100644 --- a/esbuild/config.mjs +++ b/esbuild/config.mjs @@ -8,7 +8,8 @@ const commonOptions = { bundle: true, loader: { '.wasm': 'binary', - '.d.ts': 'copy' + '.d.ts': 'copy', + '.d.ts.map': 'copy' }, format: 'esm', legalComments: 'inline', @@ -36,13 +37,10 @@ export const nodeOptions = { platform: 'node', target: 'node22', entryPoints: [ - { in: './src/*.ts', out: '' }, - // { in: './src/async.ts', out: 'async' }, - // { in: './src/sync.ts', out: 'sync' }, - { in: './types/index.d.ts', out: 'index.d' }, - { in: './types/async.d.ts', out: 'async.d' }, - { in: './types/sync.d.ts', out: 'sync.d' } + 'src/*', + 'types/*' ], + entryNames: '[name]', packages: 'external', dropLabels: ['BROWSER'] }