recital / exporters / fountain / build.js
build.js
Raw
const esbuild = require('esbuild')

esbuild
	.buildSync({
		entryPoints: ['src/index.ts'],
		bundle: true,
		platform: 'node',
		external: ['@a-morphous/recital', '@a-morphous/recital-ext-common-commands'],
		outfile: 'dist/stage-fountain.js',
	})

esbuild
	.buildSync({
		entryPoints: ['src/index.ts'],
		bundle: true,
		format: 'esm',
		external: ['@a-morphous/recital', '@a-morphous/recital-ext-common-commands'],
		outfile: 'dist/stage-fountain.module.js',
	})

esbuild.buildSync({
	entryPoints: ['cli.js'],
	bundle: true,
	platform: 'node',
	outfile: 'dist/cli.js'
}) // no external so we can use it right away.