bash-calendar/build.mjs

17 lines
362 B
JavaScript
Raw Normal View History

import esbuild from 'esbuild'
import pkg from './package.json' assert { type: 'json' }
const { version } = pkg
2021-11-30 18:50:37 +08:00
esbuild.build({
entryPoints: ['src/index.js'],
sourcemap: false,
bundle: true,
define: { 'process.env.APP_VERSION': `'${version}'` },
platform: 'node',
target: 'node10',
minify: true,
// external: ['chalk'],
outfile: 'index.js'
})