recital / packages / ext-common-commands / esbuild.js
esbuild.js
Raw
const esbuild = require('esbuild')

esbuild
	.build({
		entryPoints: ['src/index.ts'],
		bundle: true,
		platform: 'node',
		external: ['@a-morphous/recital'],
		outfile: 'dist/common-commands-ext.js',
	})
	.catch(() => process.exit(1))

esbuild
	.build({
		entryPoints: ['src/index.ts'],
		bundle: true,
		format: 'esm',
		external: ['@a-morphous/recital'],
		outfile: 'dist/common-commands-ext.mjs',
	})
	.catch(() => process.exit(1))