-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.ts
61 lines (59 loc) · 1.55 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
import { build, emptyDir } from "@deno/dnt";
// Create the npm directory
await emptyDir("./npm");
// Generate the npm package
await build({
entryPoints: ["./mod.ts"],
outDir: "./npm",
shims: {
deno: true,
},
// @todo: enable typeCheck in the future (unfinished types right now)
typeCheck: false,
test: false,
scriptModule: false,
declaration: "inline",
package: {
name: "@alpacahq/typescript-sdk",
version: Deno.args[0],
description:
"A TypeScript SDK for the https://alpaca.markets REST API and WebSocket streams.",
repository: {
type: "git",
url: "git+https://github.com/@alpacahq/typescript-sdk.git",
},
types: "./esm/mod.d.ts",
keywords: [
"alpaca",
"alpaca.markets",
"alpaca api",
"alpaca sdk",
"alpaca typescript",
"alpaca websocket",
"alpaca rest",
"alpaca trading",
"alpaca trading api",
"alpaca trading sdk",
"alpaca trading typescript",
"alpaca trading websocket",
"alpaca trading rest",
"alpaca markets",
"alpaca markets api",
"alpaca markets sdk",
"alpaca markets typescript",
"alpaca markets websocket",
"alpaca markets rest",
],
author: "117",
license: "MIT",
bugs: {
url: "https://github.com/@alpacahq/typescript-sdk/issues",
},
homepage: "https://github.com/@alpacahq/typescript-sdk#readme",
main: "mod.js",
},
postBuild() {
// Copy the README to the npm directory (for npmjs.com)
Deno.copyFileSync("README.md", "npm/README.md");
},
});