feat: better code formatting
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
import { build } from 'esbuild';
|
||||
|
||||
build({
|
||||
entryPoints: ['src/main.ts'],
|
||||
bundle: true,
|
||||
target: 'es6', // Screeps supports ES2018 well
|
||||
platform: 'node',
|
||||
tsconfig: 'tsconfig.json',
|
||||
format: 'cjs',
|
||||
outdir: 'dist',
|
||||
sourcemap: true,
|
||||
logLevel: 'info',
|
||||
minify: false,
|
||||
keepNames: true, // optional: keeps function/class names
|
||||
banner: {
|
||||
js: `// Vitor Hideyoshi <vitor.h.n.batista@gmail.com> - ${new Date().toISOString()}\n`
|
||||
},
|
||||
entryPoints: ['src/main.ts'],
|
||||
bundle: true,
|
||||
target: 'es2018', // Screeps supports ES2018 well
|
||||
platform: 'node',
|
||||
tsconfig: 'tsconfig.json',
|
||||
format: 'cjs',
|
||||
outdir: 'dist',
|
||||
sourcemap: true,
|
||||
logLevel: 'info',
|
||||
minify: false,
|
||||
keepNames: true, // optional: keeps function/class names
|
||||
banner: {
|
||||
js: `// Vitor Hideyoshi <vitor.h.n.batista@gmail.com> - ${new Date().toISOString()}\n`,
|
||||
},
|
||||
}).catch(() => process.exit(1));
|
||||
|
||||
Reference in New Issue
Block a user