-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild_npm.ts
More file actions
53 lines (50 loc) · 1.31 KB
/
build_npm.ts
File metadata and controls
53 lines (50 loc) · 1.31 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { build, emptyDir } from "../deps.ts";
await emptyDir("./npm");
await build({
entryPoints: ["./mod.ts"],
outDir: "./npm",
typeCheck: false,
shims: {
// see JS docs for overview and more options
deno: "dev",
custom: [
{
package: {
name: "urlpattern-polyfill",
version: "^9.0.0",
},
globalNames: [
{
name: "URLPattern",
exportName: "URLPattern",
},
],
},
],
},
compilerOptions: {
target: "Latest",
lib: ["DOM", "ES2022"],
},
package: {
// package.json properties
name: "lago-javascript-client",
sideEffects: false,
version: "v1.44.0",
description: "Lago JavaScript API Client",
repository: {
type: "git",
url: "git+https://github.com/getlago/lago-javascript-client.git",
},
keywords: ["Lago", "Node", "API", "Client"],
contributors: ["Lovro Colic", "Jérémy Denquin", "Arjun Yelamanchili", "Vincent Pochet", "Romain Sempé"],
license: "MIT",
bugs: {
url: "https://github.com/getlago/lago-javascript-client/issues",
},
homepage: "https://github.com/getlago/lago-javascript-client#readme",
},
});
// post build steps
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");