-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.ts
43 lines (41 loc) · 1.02 KB
/
build.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
31
32
33
34
35
36
37
38
39
40
41
42
43
import { build, emptyDir } from "https://deno.land/x/[email protected]/mod.ts";
await emptyDir("./npm");
await build({
entryPoints: ["./mod.ts"],
outDir: "./npm",
shims: {
deno: true,
},
typeCheck: false,
test: false,
declaration: "separate",
package: {
name: "esbuild-gas-plugin",
version: "0.8.0",
description: "esbuild plugin for Google Apps Script.",
license: "MIT",
author: "Hideaki Matsunami <[email protected]>",
repository: "https://github.com/mahaker/esbuild-gas-plugin",
keywords: [
"esbuild",
"apps-script",
"google-apps-script"
],
},
mappings: {
"https://deno.land/x/[email protected]/mod.d.ts": {
name: "esbuild",
version: "^0.18.4",
peerDependency: false,
},
"https://esm.sh/[email protected]": {
name: "gas-entry-generator",
version: "^2.1.0",
peerDependency: false,
},
},
postBuild() {
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");
},
});