Prototype API (#2)

* Add oauth2 client

* Update LICENSE.txt

* Add oauth2 types

* Prepare for publish
This commit is contained in:
Guilherme Werner
2023-12-31 15:15:16 -03:00
committed by GitHub
parent d3ab72a0e3
commit ebd04dbc78
10 changed files with 1382 additions and 1473 deletions

30
scripts/esbuild.js Normal file
View File

@ -0,0 +1,30 @@
// Copyright (c) Tribufu. All Rights Reserved.
import { build } from "esbuild";
import { nodeExternalsPlugin } from "esbuild-node-externals";
const baseConfig = {
entryPoints: ["src/index.ts"],
platform: "neutral",
target: "node18",
bundle: true,
minify: true,
sourcemap: false,
legalComments: "linked",
plugins: [nodeExternalsPlugin()],
};
const moduleConfig = {
...baseConfig,
outfile: "build/index.mjs",
format: "esm",
};
const legacyConfig = {
...baseConfig,
outfile: "build/index.cjs",
format: "cjs",
};
build(moduleConfig).catch(() => process.exit(1));
build(legacyConfig).catch(() => process.exit(1));