-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild_npm.ts
34 lines (31 loc) · 937 Bytes
/
build_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
// ex. scripts/build_npm.ts
import { build, emptyDir } from 'https://deno.land/x/dnt@0.33.1/mod.ts';
import * as version from './version.ts';
await emptyDir('./npm');
await build({
entryPoints: ['./mod.ts'],
outDir: './npm',
typeCheck: false,
shims: {
// see JS docs for overview and more options
deno: true,
prompts: true,
},
package: {
// package.json properties
name: 'bsmap-lib',
version: Deno.args[0],
description: 'General-purpose scripting library for Beat Saber map.',
license: 'MIT',
repository: {
type: 'git',
url: 'git+https://github.com/KivalEvan/BeatSaber-Deno.git',
},
bugs: {
url: 'https://github.com/KivalEvan/BeatSaber-Deno/issues',
},
},
});
// post build steps
Deno.copyFileSync('LICENSE', 'npm/LICENSE');
Deno.copyFileSync('README.md', 'npm/README.md');