fix build output - cjs

This commit is contained in:
timothycarambat
2024-07-19 17:02:06 -07:00
parent a6e33eb586
commit e61658cdfa
+3 -3
View File
@@ -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,
})