deno.land / x / domain_functions@v1.2.0 / scripts / 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
35
36
37
38
39
40
41
42
43
44
// ex. scripts/build_npm.tsimport { build, emptyDir } from 'https://deno.land/x/dnt@0.25.2/mod.ts'import pkg from '../package.json' assert { type: 'json' }
await emptyDir('./npm')
await build({ scriptModule: 'cjs', typeCheck: false, declaration: true, entryPoints: ['./src/index.ts'], outDir: './npm', shims: { deno: true, undici: true, }, mappings: { 'https://deno.land/x/zod@v3.19.1/mod.ts': { name: 'zod', version: '^3.19.1', }, 'https://deno.land/x/deno_qs@0.0.1/mod.ts': { name: 'qs', version: '^6.10.3', }, }, package: { name: 'domain-functions', version: pkg.version, description: 'Decouple your business logic from your controllers. With first-class type inference from end to end.', license: 'MIT', author: 'Seasoned Software', bugs: { url: 'https://github.com/SeasonedSoftware/domain-functions/issues', }, homepage: 'https://github.com/SeasonedSoftware/domain-functions', },})
// post build stepsDeno.copyFileSync('LICENSE', 'npm/LICENSE')Deno.copyFileSync('README.md', 'npm/README.md')
domain_functions

Version Info

Tagged at
a year ago