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