-
Notifications
You must be signed in to change notification settings - Fork 0
/
_build.ts
66 lines (62 loc) · 1.4 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import {
build,
emptyDir,
} from "https://raw.githubusercontent.com/denoland/dnt/0.37.0/mod.ts";
const version = await Deno.readTextFile("./VERSION");
await emptyDir("npm");
await build({
entryPoints: ["./mod.ts"],
outDir: "./npm",
typeCheck: false,
test: false,
declaration: "inline",
scriptModule: false,
compilerOptions: {
target: "Latest",
sourceMap: true,
inlineSources: true,
lib: ["ES2022", "DOM"],
},
shims: {
deno: false,
timers: false,
},
package: {
name: "compago",
version: version.trim(),
main: "mod.js",
type: "module",
description: "A minimalist MVC framework for modern browsers.",
keywords: [
"framework",
"frontend",
"full-stack",
"lit",
"state",
"reactive",
"DDD",
],
author: "Maga D. Zandaqo <[email protected]> (http://maga.name)",
license: "MIT",
repository: {
type: "git",
url: "https://github.com/zandaqo/compago.git",
},
homepage: "https://github.com/zandaqo/compago#readme",
bugs: {
url: "https://github.com/zandaqo/compago/issues",
},
exports: {
".": {
types: "./esm/mod.d.ts",
import: "./esm/mod.js",
},
"./*": {
types: "./esm/*.d.ts",
import: "./esm/*.js",
},
},
},
});
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");