-
Notifications
You must be signed in to change notification settings - Fork 0
/
_npm.ts
36 lines (33 loc) · 925 Bytes
/
_npm.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
/*
Building into Node compatible package
*/
import { build, emptyDir } from 'https://deno.land/x/dnt@0.31.0/mod.ts';
async function start() {
await emptyDir('./npm');
await build({
entryPoints: ['./mod.ts'],
outDir: './npm',
shims: {
deno: true,
},
test: false, // To be true
scriptModule: false,
typeCheck: false,
compilerOptions: {
target: 'ES2021',
lib: ['esnext'],
},
package: {
name: 'at-transcript',
version: Deno.args[0],
description: 'A library to work with Adventure Time! Transcript',
license: 'GPL 3.0',
bugs: {
url: 'https://github.com/shateq/adventure_time/issues',
},
},
});
Deno.copyFile('LICENSE', 'npm/LICENSE');
Deno.copyFile('README.md', 'npm/README.md');
}
start();