forked from octokit/auth-oauth-user-client.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild_npm.ts
30 lines (28 loc) · 915 Bytes
/
build_npm.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { build, emptyDir } from "https://deno.land/x/dnt/mod.ts";
import denoConfig from "./deno.json" assert { type: "json" };
await emptyDir("./npm");
await build({
compilerOptions: { lib: ["esnext", "dom"] },
entryPoints: ["./mod.ts"],
outDir: "./npm",
shims: { deno: false },
test: false,
importMap: denoConfig.importMap,
package: {
name: "octokit-auth-oauth-user-client",
version: Deno.args[0],
description:
"Octokit authentication strategy for OAuth user authentication without exposing client secret.",
license: "MIT",
repository: {
type: "git",
url: "git+https://github.com/baoshan/octokit-auth-oauth-user-client.js.git",
},
bugs: {
url: "https://github.com/baoshan/octokit-auth-oauth-user-client.js/issues",
},
},
});
// post build steps
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");