0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 02:49:32 +01:00
posthog/plugin-transpiler/build.mjs

14 lines
343 B
JavaScript
Raw Permalink Normal View History

#!/usr/bin/env node
import * as esbuild from 'esbuild'
;(async function build() {
let result = await esbuild.build({
entryPoints: ['src/index.ts'],
bundle: true,
outdir: 'dist',
})
if (!result.errors.length) {
// eslint-disable-next-line no-console
console.log('Build succeeded')
}
})()