nihilqui
Version:
Typescript .d.ts generator from GIR for gjs and node-gtk
15 lines (14 loc) • 468 B
JavaScript
import { build } from "esbuild";
await build({
entryPoints: ['main.ts'],
outdir: 'dist',
bundle: true,
// target: "firefox60", // Since GJS 1.53.90
// target: "firefox68", // Since GJS 1.63.90
// target: "firefox78", // Since GJS 1.65.90
target: "firefox91", // Since GJS 1.71.1
// target: firefox102 // Since GJS 1.73.2
format: 'esm',
// platform: 'node',
external: ['node-gtk', 'gi://*', 'gettext', 'system', 'cairo'],
})