-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdnt.ts
More file actions
46 lines (43 loc) · 1.03 KB
/
dnt.ts
File metadata and controls
46 lines (43 loc) · 1.03 KB
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
import { build, emptyDir } from 'jsr:@deno/dnt'
import denojson from './deno.json' with { type: 'json' }
const outDir = './.npm'
await emptyDir(outDir)
await build({
entryPoints: ['./src/index.ts'],
outDir,
shims: {
deno: 'dev',
},
compilerOptions: {
lib: ['DOM'],
},
scriptModule: 'cjs',
typeCheck: 'both',
package: {
name: denojson.name,
version: denojson.version,
description: 'JavaScript and TypeScript client for OramaCore',
license: 'AGPL-3.0',
author: {
name: 'Michele Riva',
email: '[email protected]',
},
repository: {
type: 'git',
url: 'git+https://github.com/oramasearch/oramacore.git',
},
bugs: {
url: 'https://github.com/oramasearch/oramacore/repo/issues',
},
devDependencies: {
"@scarf/scarf": "1.4.0"
}
},
testPattern: '**/*.test.{ts,js}',
rootTestDir: './tests',
test: false,
postBuild() {
Deno.copyFileSync('./LICENSE.md', `${outDir}/LICENSE.md`)
Deno.copyFileSync('./README.md', `${outDir}/README.md`)
},
})