-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.ts
34 lines (31 loc) · 855 Bytes
/
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
import { build, emptyDir } from 'https://deno.land/x/[email protected]/mod.ts';
await emptyDir('./npm');
await Deno.copyFile('./README.md', './npm/README.md');
await build({
entryPoints: ['./main.ts'],
declaration: true,
outDir: './npm',
shims: {
// see JS docs for overview and more options
deno: true
},
compilerOptions: {
// see TS docs for overview and more options
lib: ['esnext', 'webworker']
},
package: {
name: '@openworkers/redis-fetch',
version: Deno.args[0],
description: 'A simple package that interfaces Redis with HTTP.',
author: 'OpenWorkers Contributors',
private: false,
license: 'MIT',
repository: {
type: 'git',
url: 'git+https://github.com/open-workers/redis-fetch.git'
},
bugs: {
url: 'https://github.com/open-workers/redis-fetch/issues'
}
}
});