@@ -6,49 +6,52 @@ if (!Deno.args[0]) throw new Error("No version specified");
66await emptyDir ( "./npm" ) ;
77
88await build ( {
9- entryPoints : [ {
10- name : "." ,
11- path : "./mod.ts" ,
12- } , {
13- name : "./types" ,
14- path : "./src/types.ts" ,
15- } ] ,
16- outDir : "./npm" ,
17- importMap : "./deno.jsonc" ,
18- shims : {
19- deno : true ,
20- } ,
21- packageManager : "pnpm" ,
22- compilerOptions : {
23- lib : [ "DOM" , "ESNext" ] ,
24- } ,
25- typeCheck : "both" ,
26- package : {
27- name : "classcharts-api" ,
28- version : String ( Deno . args [ 0 ] ) . replace ( "v" , "" ) ,
29- author : {
30- name : "James Cook" ,
31- email : "james@jaminit.co.uk" ,
32- } ,
33- description :
34- "A Typescript wrapper for getting information from the ClassCharts API" ,
35- license : "ISC" ,
36- keywords : [ "node" , "typescript" , "classcharts" , "class charts" ] ,
37- bugs : {
38- url : "https://github.com/classchartsapi/classcharts-api-js/issues" ,
39- } ,
40- repository : {
41- type : "git" ,
42- url : "https://github.com/classchartsapi/classcharts-api-js.git" ,
43- } ,
44- homepage : "https://classchartsapi.github.io/classcharts-api-js/" ,
45- engines : {
46- node : ">=18" ,
47- } ,
48- sideEffects : false ,
49- } ,
50- postBuild ( ) {
51- Deno . copyFileSync ( "LICENSE" , "npm/LICENSE" ) ;
52- Deno . copyFileSync ( "README.md" , "npm/README.md" ) ;
53- } ,
9+ entryPoints : [
10+ {
11+ name : "." ,
12+ path : "./mod.ts" ,
13+ } ,
14+ {
15+ name : "./types" ,
16+ path : "./src/types.ts" ,
17+ } ,
18+ ] ,
19+ outDir : "./npm" ,
20+ importMap : "./deno.jsonc" ,
21+ shims : {
22+ deno : true ,
23+ } ,
24+ packageManager : "pnpm" ,
25+ compilerOptions : {
26+ lib : [ "DOM" , "ESNext" ] ,
27+ } ,
28+ typeCheck : "both" ,
29+ package : {
30+ name : "classcharts-api" ,
31+ version : String ( Deno . args [ 0 ] ) . replace ( "v" , "" ) ,
32+ author : {
33+ name : "James Cook" ,
34+ email : "james@jaminit.co.uk" ,
35+ } ,
36+ description :
37+ "A Typescript wrapper for getting information from the ClassCharts API" ,
38+ license : "ISC" ,
39+ keywords : [ "node" , "typescript" , "classcharts" , "class charts" ] ,
40+ bugs : {
41+ url : "https://github.com/classchartsapi/classcharts-api-js/issues" ,
42+ } ,
43+ repository : {
44+ type : "git" ,
45+ url : "https://github.com/classchartsapi/classcharts-api-js.git" ,
46+ } ,
47+ homepage : "https://classchartsapi.github.io/classcharts-api-js/" ,
48+ engines : {
49+ node : ">=18" ,
50+ } ,
51+ sideEffects : false ,
52+ } ,
53+ postBuild ( ) {
54+ Deno . copyFileSync ( "LICENSE" , "npm/LICENSE" ) ;
55+ Deno . copyFileSync ( "README.md" , "npm/README.md" ) ;
56+ } ,
5457} ) ;
0 commit comments