mirror of
https://github.com/Mintplex-Labs/express-ws.git
synced 2026-06-30 20:38:03 -04:00
fix build output - cjs
This commit is contained in:
@@ -4,11 +4,11 @@ import fs from 'fs';
|
||||
if (fs.existsSync('./dist')) fs.rmSync('./dist', { recursive: true });
|
||||
console.log(`esbuild: Bundling package`);
|
||||
await esbuild.build({
|
||||
entryPoints: ['index.js'],
|
||||
entryPoints: ['src/index.js'],
|
||||
bundle: true,
|
||||
outfile: 'dist/index.js',
|
||||
platform: 'node',
|
||||
format: 'esm',
|
||||
format: 'cjs',
|
||||
packages: 'external',
|
||||
minify: true,
|
||||
minify: false,
|
||||
})
|
||||
Reference in New Issue
Block a user