mirror of
https://github.com/zhigang1992/pocketbase-typegen.git
synced 2026-01-12 09:14:16 +08:00
15 lines
356 B
JavaScript
15 lines
356 B
JavaScript
import esbuild from "esbuild"
|
|
import { nodeExternalsPlugin } from "esbuild-node-externals"
|
|
esbuild
|
|
.build({
|
|
entryPoints: ["./src/index.ts"],
|
|
outfile: "dist/index.js",
|
|
bundle: true,
|
|
treeShaking: true,
|
|
platform: "node",
|
|
format: "esm",
|
|
target: "node14",
|
|
plugins: [nodeExternalsPlugin()],
|
|
})
|
|
.catch(() => process.exit(1))
|