-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.ts
40 lines (38 loc) · 1.02 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
import { build, emptyDir } from '@deno/dnt'
import denoJSON from './deno.json' with { type: 'json' }
await emptyDir('./npm')
await build({
entryPoints: ['./mod.ts'],
outDir: './npm',
shims: {},
package: {
name: denoJSON.name,
version: denoJSON.version,
description:
'Tiny html tag function for no-build JSX-like syntax, compatible with all modern browsers and runtimes.',
keywords: ['html', 'tagged', 'template', 'string', 'literal', 'jsx'],
homepage: 'https://github.com/rbardini/html',
bugs: {
url: 'https://github.com/rbardini/html/issues',
},
repository: {
type: 'git',
url: 'git+https://github.com/rbardini/html.git',
},
license: 'MIT',
author: {
name: 'Rafael Bardini',
url: 'https://rbardini.com/',
},
engines: {
node: '>=20',
},
},
scriptModule: false,
test: false,
postBuild() {
Deno.copyFileSync('LICENSE', 'npm/LICENSE')
Deno.copyFileSync('README.md', 'npm/README.md')
},
})