File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { build , emptyDir } from "https://deno.land/x/dnt/mod.ts" ;
2+
3+ await emptyDir ( "./build" ) ;
4+
5+ await build ( {
6+ compilerOptions : {
7+ lib : [
8+ "esnext" ,
9+ "dom" ,
10+ "dom.iterable" ,
11+ ] ,
12+ } ,
13+ entryPoints : [ "./mod.ts" ] ,
14+ outDir : "./build" ,
15+ package : {
16+ name : "functionalland-component" ,
17+ version : Deno . args [ 0 ] ,
18+ description : "A library to develop web component with a bit more of functional flavour." ,
19+ license : "MIT" ,
20+ repository : {
21+ type : "git" ,
22+ url : "git+https://github.com/functionalland/functional-component.git" ,
23+ } ,
24+ bugs : {
25+ url : "https://github.com/functionalland/functional-component/issues" ,
26+ } ,
27+ } ,
28+ shims : {
29+ // see JS docs for overview and more options
30+ deno : true ,
31+ } ,
32+ test : false ,
33+ } ) ;
34+
35+ // post build steps
36+ Deno . copyFileSync ( "./LICENSE" , "build/LICENSE" ) ;
37+ Deno . copyFileSync ( "./README.md" , "build/README.md" ) ;
You can’t perform that action at this time.
0 commit comments