UNPKG

347 BJavaScriptView Raw
1const path = require('path')
2
3const pkg = require('../package.json')
4
5require('esbuild').buildSync({
6 entryPoints: ['lib/cli.ts', 'lib/index.ts'],
7 outdir: path.join(__dirname, '..'),
8 bundle: true,
9 minify: true,
10 platform: 'node',
11 target: 'node12',
12 sourcemap: 'inline',
13 external: Object.keys(pkg.dependencies),
14 logLevel: 'info',
15})