mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-25 11:17:50 +01:00
14 lines
343 B
JavaScript
14 lines
343 B
JavaScript
|
#!/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')
|
||
|
}
|
||
|
})()
|