breviarium 0.2.11 → 0.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Makefile CHANGED
@@ -16,5 +16,5 @@ build: ## build to dist folder
16
16
  test: ## execute unit tests
17
17
  @npm run test
18
18
 
19
- test-coverage: ## execute unit tests
19
+ test-coverage: ## execute test with coverage
20
20
  @npm run test:coverage
package/README.md CHANGED
@@ -11,13 +11,18 @@
11
11
  </p>
12
12
 
13
13
  <p align="center">
14
- <a href="LICENSE">
15
- <img alt="License" src="https://img.shields.io/badge/license-MIT-blue?color=blue&style=flat">
16
- </a>
17
- <a href="https://www.npmjs.com/package/breviarium/v/latest" target="_blank" rel="noopener noreferrer">
18
- <img alt="npm breviarium version" src="https://img.shields.io/npm/v/breviarium/latest?style=flat&logo=npm&color=35d401">
19
- </a>
20
-
14
+ <a href="LICENSE">
15
+ <img alt="License" src="https://img.shields.io/badge/license-MIT-blue?color=blue&style=flat">
16
+ </a>
17
+ <a href="https://www.npmjs.com/package/breviarium/v/latest" target="_blank" rel="noopener noreferrer">
18
+ <img alt="npm breviarium version" src="https://img.shields.io/npm/v/breviarium/latest?style=flat&logo=npm&color=35d401">
19
+ </a>
20
+ <a href="https://www.npmjs.com/package/breviarium/v/latest" target="_blank" rel="noopener noreferrer">
21
+ <img alt="latest" src="https://img.shields.io/npm/dm/breviarium?label=downloads&logo=npm">
22
+ </a>
23
+ <a href="https://www.jsdelivr.com/package/npm/breviarium" target="_blank" rel="noopener noreferrer">
24
+ <img alt="latest" src="https://data.jsdelivr.com/v1/package/npm/breviarium/badge?style=rounded">
25
+ </a>
21
26
 
22
27
  </p>
23
28
 
@@ -0,0 +1,13 @@
1
+ export interface BreviariumInterface {
2
+ getLaudes: (date?: Date) => string;
3
+ getVesperae: (date?: Date) => string;
4
+ getOfficium: (date?: Date) => string;
5
+ getTertia: (date?: Date) => string;
6
+ getSexta: (date?: Date) => string;
7
+ getNona: (date?: Date) => string;
8
+ getCompletorium: (date?: Date) => string;
9
+ getMissaleLectiones: (date?: Date) => string;
10
+ getEvangelium: (date?: Date) => string;
11
+ getCurrentDate: () => Date;
12
+ setDate: (date: Date) => void;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";var s=r=>{throw TypeError(r)};var o=(r,t,e)=>t.has(r)||s("Cannot "+e);var y=(r,t,e)=>(o(r,t,"read from private field"),e?e.call(r):t.get(r)),g=(r,t,e)=>t.has(r)?s("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),i=(r,t,e,u)=>(o(r,t,"write to private field"),u?u.call(r,e):t.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(r){return r.toISOString().split("T")[0]}var n;class d{constructor(t){g(this,n);t!=null?i(this,n,t):i(this,n,new Date)}setDate(t){i(this,n,t)}getCurrentDate(){return y(this,n)}getLaudes(t){return`Laudes prayer for ${a(t??this.getCurrentDate())}`}getVesperae(t){return`Vesperae prayer for ${a(t??this.getCurrentDate())}`}getOfficium(t){return`Officium prayer for ${a(t??this.getCurrentDate())}`}getTertia(t){return`Tertia prayer for ${a(t??this.getCurrentDate())}`}getSexta(t){return`Sexta prayer for ${a(t??this.getCurrentDate())}`}getNona(t){return`Nona prayer for ${a(t??this.getCurrentDate())}`}getCompletorium(t){return`Completorium prayer for ${a(t??this.getCurrentDate())}`}getMissaleLectiones(t){return`Lectiones prayer for ${a(t??this.getCurrentDate())}`}getEvangelium(t){return`Evangelium prayer for ${a(t??this.getCurrentDate())}`}}n=new WeakMap;exports.Breviarium=d;
2
+ //# sourceMappingURL=breviarium.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breviarium.cjs.js","sources":["../src/breviarium.ts"],"sourcesContent":["// src/breviarium.ts\nimport {BreviariumInterface} from \"./breviarium-interface.ts\";\n\nfunction formatDate(date: Date): string {\n return date.toISOString().split(\"T\")[0];\n}\n\nexport class Breviarium implements BreviariumInterface {\n\n #selectedDate: Date;\n\n constructor(selectedDate?: Date) {\n if (selectedDate !== undefined && selectedDate !== null)\n this.#selectedDate = selectedDate;\n else\n this.#selectedDate = new Date();\n }\n\n setDate(date: Date): void {\n this.#selectedDate = date;\n }\n\n getCurrentDate(): Date {\n return this.#selectedDate;\n }\n\n getLaudes(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Laudes prayer for ${day}`;\n }\n\n getVesperae(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Vesperae prayer for ${day}`;\n }\n\n getOfficium(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Officium prayer for ${day}`;\n }\n\n getTertia(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Tertia prayer for ${day}`;\n }\n\n getSexta(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Sexta prayer for ${day}`;\n }\n\n getNona(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Nona prayer for ${day}`;\n }\n\n getCompletorium(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Completorium prayer for ${day}`;\n }\n\n getMissaleLectiones(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Lectiones prayer for ${day}`;\n }\n\n getEvangelium(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Evangelium prayer for ${day}`;\n }\n\n\n};\n"],"names":["formatDate","date","Breviarium","selectedDate","__privateAdd","_selectedDate","__privateSet","__privateGet"],"mappings":"2ZAGA,SAASA,EAAWC,EAAoB,CACpC,OAAOA,EAAK,YAAY,EAAE,MAAM,GAAG,EAAE,CAAC,CAC1C,OAEO,MAAMC,CAA0C,CAInD,YAAYC,EAAqB,CAFjCC,EAAA,KAAAC,GAGsCF,GAAiB,KAC/CG,EAAA,KAAKD,EAAgBF,GAEhBG,EAAA,KAAAD,MAAoB,KAAK,CAGtC,QAAQJ,EAAkB,CACtBK,EAAA,KAAKD,EAAgBJ,EAAA,CAGzB,gBAAuB,CACnB,OAAOM,EAAA,KAAKF,EAAA,CAGhB,UAAUJ,EAAqB,CAE3B,MAAO,qBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACrB,EAAA,CAGnC,YAAYA,EAAqB,CAE7B,MAAO,uBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACnB,EAAA,CAGrC,YAAYA,EAAqB,CAE7B,MAAO,uBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACnB,EAAA,CAGrC,UAAUA,EAAqB,CAE3B,MAAO,qBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACrB,EAAA,CAGnC,SAASA,EAAqB,CAE1B,MAAO,oBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACtB,EAAA,CAGlC,QAAQA,EAAqB,CAEzB,MAAO,mBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACvB,EAAA,CAGjC,gBAAgBA,EAAqB,CAEjC,MAAO,2BADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACf,EAAA,CAGzC,oBAAoBA,EAAqB,CAErC,MAAO,wBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CAClB,EAAA,CAGtC,cAAcA,EAAqB,CAE/B,MAAO,yBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACjB,EAAA,CAI3C,CA/DII,EAAA"}
@@ -0,0 +1,16 @@
1
+ import { BreviariumInterface } from "./breviarium-interface.ts";
2
+ export declare class Breviarium implements BreviariumInterface {
3
+ #private;
4
+ constructor(selectedDate?: Date);
5
+ setDate(date: Date): void;
6
+ getCurrentDate(): Date;
7
+ getLaudes(date?: Date): string;
8
+ getVesperae(date?: Date): string;
9
+ getOfficium(date?: Date): string;
10
+ getTertia(date?: Date): string;
11
+ getSexta(date?: Date): string;
12
+ getNona(date?: Date): string;
13
+ getCompletorium(date?: Date): string;
14
+ getMissaleLectiones(date?: Date): string;
15
+ getEvangelium(date?: Date): string;
16
+ }
@@ -0,0 +1,53 @@
1
+ var i = (r) => {
2
+ throw TypeError(r);
3
+ };
4
+ var o = (r, t, e) => t.has(r) || i("Cannot " + e);
5
+ var y = (r, t, e) => (o(r, t, "read from private field"), e ? e.call(r) : t.get(r)), g = (r, t, e) => t.has(r) ? i("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e), s = (r, t, e, u) => (o(r, t, "write to private field"), u ? u.call(r, e) : t.set(r, e), e);
6
+ function a(r) {
7
+ return r.toISOString().split("T")[0];
8
+ }
9
+ var n;
10
+ class f {
11
+ constructor(t) {
12
+ g(this, n);
13
+ t != null ? s(this, n, t) : s(this, n, /* @__PURE__ */ new Date());
14
+ }
15
+ setDate(t) {
16
+ s(this, n, t);
17
+ }
18
+ getCurrentDate() {
19
+ return y(this, n);
20
+ }
21
+ getLaudes(t) {
22
+ return `Laudes prayer for ${a(t ?? this.getCurrentDate())}`;
23
+ }
24
+ getVesperae(t) {
25
+ return `Vesperae prayer for ${a(t ?? this.getCurrentDate())}`;
26
+ }
27
+ getOfficium(t) {
28
+ return `Officium prayer for ${a(t ?? this.getCurrentDate())}`;
29
+ }
30
+ getTertia(t) {
31
+ return `Tertia prayer for ${a(t ?? this.getCurrentDate())}`;
32
+ }
33
+ getSexta(t) {
34
+ return `Sexta prayer for ${a(t ?? this.getCurrentDate())}`;
35
+ }
36
+ getNona(t) {
37
+ return `Nona prayer for ${a(t ?? this.getCurrentDate())}`;
38
+ }
39
+ getCompletorium(t) {
40
+ return `Completorium prayer for ${a(t ?? this.getCurrentDate())}`;
41
+ }
42
+ getMissaleLectiones(t) {
43
+ return `Lectiones prayer for ${a(t ?? this.getCurrentDate())}`;
44
+ }
45
+ getEvangelium(t) {
46
+ return `Evangelium prayer for ${a(t ?? this.getCurrentDate())}`;
47
+ }
48
+ }
49
+ n = new WeakMap();
50
+ export {
51
+ f as Breviarium
52
+ };
53
+ //# sourceMappingURL=breviarium.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breviarium.esm.js","sources":["../src/breviarium.ts"],"sourcesContent":["// src/breviarium.ts\nimport {BreviariumInterface} from \"./breviarium-interface.ts\";\n\nfunction formatDate(date: Date): string {\n return date.toISOString().split(\"T\")[0];\n}\n\nexport class Breviarium implements BreviariumInterface {\n\n #selectedDate: Date;\n\n constructor(selectedDate?: Date) {\n if (selectedDate !== undefined && selectedDate !== null)\n this.#selectedDate = selectedDate;\n else\n this.#selectedDate = new Date();\n }\n\n setDate(date: Date): void {\n this.#selectedDate = date;\n }\n\n getCurrentDate(): Date {\n return this.#selectedDate;\n }\n\n getLaudes(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Laudes prayer for ${day}`;\n }\n\n getVesperae(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Vesperae prayer for ${day}`;\n }\n\n getOfficium(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Officium prayer for ${day}`;\n }\n\n getTertia(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Tertia prayer for ${day}`;\n }\n\n getSexta(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Sexta prayer for ${day}`;\n }\n\n getNona(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Nona prayer for ${day}`;\n }\n\n getCompletorium(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Completorium prayer for ${day}`;\n }\n\n getMissaleLectiones(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Lectiones prayer for ${day}`;\n }\n\n getEvangelium(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Evangelium prayer for ${day}`;\n }\n\n\n};\n"],"names":["formatDate","date","_selectedDate","Breviarium","selectedDate","__privateAdd","__privateSet","__privateGet"],"mappings":";;;;;AAGA,SAASA,EAAWC,GAAoB;AACpC,SAAOA,EAAK,YAAY,EAAE,MAAM,GAAG,EAAE,CAAC;AAC1C;AAFA,IAAAC;AAIO,MAAMC,EAA0C;AAAA,EAInD,YAAYC,GAAqB;AAFjC,IAAAC,EAAA,MAAAH;AAGQ,IAA8BE,KAAiB,OAC/CE,EAAA,MAAKJ,GAAgBE,KAEhBE,EAAA,MAAAJ,uBAAoB,KAAK;AAAA,EAAA;AAAA,EAGtC,QAAQD,GAAkB;AACtB,IAAAK,EAAA,MAAKJ,GAAgBD;AAAA,EAAA;AAAA,EAGzB,iBAAuB;AACnB,WAAOM,EAAA,MAAKL;AAAA,EAAA;AAAA,EAGhB,UAAUD,GAAqB;AAE3B,WAAO,qBADKD,EAAWC,KAAQ,KAAK,gBAAgB,CACrB;AAAA,EAAA;AAAA,EAGnC,YAAYA,GAAqB;AAE7B,WAAO,uBADKD,EAAWC,KAAQ,KAAK,gBAAgB,CACnB;AAAA,EAAA;AAAA,EAGrC,YAAYA,GAAqB;AAE7B,WAAO,uBADKD,EAAWC,KAAQ,KAAK,gBAAgB,CACnB;AAAA,EAAA;AAAA,EAGrC,UAAUA,GAAqB;AAE3B,WAAO,qBADKD,EAAWC,KAAQ,KAAK,gBAAgB,CACrB;AAAA,EAAA;AAAA,EAGnC,SAASA,GAAqB;AAE1B,WAAO,oBADKD,EAAWC,KAAQ,KAAK,gBAAgB,CACtB;AAAA,EAAA;AAAA,EAGlC,QAAQA,GAAqB;AAEzB,WAAO,mBADKD,EAAWC,KAAQ,KAAK,gBAAgB,CACvB;AAAA,EAAA;AAAA,EAGjC,gBAAgBA,GAAqB;AAEjC,WAAO,2BADKD,EAAWC,KAAQ,KAAK,gBAAgB,CACf;AAAA,EAAA;AAAA,EAGzC,oBAAoBA,GAAqB;AAErC,WAAO,wBADKD,EAAWC,KAAQ,KAAK,gBAAgB,CAClB;AAAA,EAAA;AAAA,EAGtC,cAAcA,GAAqB;AAE/B,WAAO,yBADKD,EAAWC,KAAQ,KAAK,gBAAgB,CACjB;AAAA,EAAA;AAI3C;AA/DIC,IAAA;"}
@@ -0,0 +1,2 @@
1
+ (function(r,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.Breviarium={}))})(this,function(r){"use strict";var s=r=>{throw TypeError(r)};var d=(r,e,n)=>e.has(r)||s("Cannot "+n);var y=(r,e,n)=>(d(r,e,"read from private field"),n?n.call(r):e.get(r)),f=(r,e,n)=>e.has(r)?s("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,n),u=(r,e,n,a)=>(d(r,e,"write to private field"),a?a.call(r,n):e.set(r,n),n);var a;function e(o){return o.toISOString().split("T")[0]}class n{constructor(t){f(this,a);t!=null?u(this,a,t):u(this,a,new Date)}setDate(t){u(this,a,t)}getCurrentDate(){return y(this,a)}getLaudes(t){return`Laudes prayer for ${e(t??this.getCurrentDate())}`}getVesperae(t){return`Vesperae prayer for ${e(t??this.getCurrentDate())}`}getOfficium(t){return`Officium prayer for ${e(t??this.getCurrentDate())}`}getTertia(t){return`Tertia prayer for ${e(t??this.getCurrentDate())}`}getSexta(t){return`Sexta prayer for ${e(t??this.getCurrentDate())}`}getNona(t){return`Nona prayer for ${e(t??this.getCurrentDate())}`}getCompletorium(t){return`Completorium prayer for ${e(t??this.getCurrentDate())}`}getMissaleLectiones(t){return`Lectiones prayer for ${e(t??this.getCurrentDate())}`}getEvangelium(t){return`Evangelium prayer for ${e(t??this.getCurrentDate())}`}}a=new WeakMap,r.Breviarium=n,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
2
+ //# sourceMappingURL=breviarium.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breviarium.umd.js","sources":["../src/breviarium.ts"],"sourcesContent":["// src/breviarium.ts\nimport {BreviariumInterface} from \"./breviarium-interface.ts\";\n\nfunction formatDate(date: Date): string {\n return date.toISOString().split(\"T\")[0];\n}\n\nexport class Breviarium implements BreviariumInterface {\n\n #selectedDate: Date;\n\n constructor(selectedDate?: Date) {\n if (selectedDate !== undefined && selectedDate !== null)\n this.#selectedDate = selectedDate;\n else\n this.#selectedDate = new Date();\n }\n\n setDate(date: Date): void {\n this.#selectedDate = date;\n }\n\n getCurrentDate(): Date {\n return this.#selectedDate;\n }\n\n getLaudes(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Laudes prayer for ${day}`;\n }\n\n getVesperae(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Vesperae prayer for ${day}`;\n }\n\n getOfficium(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Officium prayer for ${day}`;\n }\n\n getTertia(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Tertia prayer for ${day}`;\n }\n\n getSexta(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Sexta prayer for ${day}`;\n }\n\n getNona(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Nona prayer for ${day}`;\n }\n\n getCompletorium(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Completorium prayer for ${day}`;\n }\n\n getMissaleLectiones(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Lectiones prayer for ${day}`;\n }\n\n getEvangelium(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Evangelium prayer for ${day}`;\n }\n\n\n};\n"],"names":["formatDate","date","Breviarium","selectedDate","__privateAdd","_selectedDate","__privateSet","__privateGet"],"mappings":"mjBAGA,SAASA,EAAWC,EAAoB,CACpC,OAAOA,EAAK,YAAY,EAAE,MAAM,GAAG,EAAE,CAAC,CAC1C,CAEO,MAAMC,CAA0C,CAInD,YAAYC,EAAqB,CAFjCC,EAAA,KAAAC,GAGsCF,GAAiB,KAC/CG,EAAA,KAAKD,EAAgBF,GAEhBG,EAAA,KAAAD,MAAoB,KAAK,CAGtC,QAAQJ,EAAkB,CACtBK,EAAA,KAAKD,EAAgBJ,EAAA,CAGzB,gBAAuB,CACnB,OAAOM,EAAA,KAAKF,EAAA,CAGhB,UAAUJ,EAAqB,CAE3B,MAAO,qBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACrB,EAAA,CAGnC,YAAYA,EAAqB,CAE7B,MAAO,uBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACnB,EAAA,CAGrC,YAAYA,EAAqB,CAE7B,MAAO,uBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACnB,EAAA,CAGrC,UAAUA,EAAqB,CAE3B,MAAO,qBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACrB,EAAA,CAGnC,SAASA,EAAqB,CAE1B,MAAO,oBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACtB,EAAA,CAGlC,QAAQA,EAAqB,CAEzB,MAAO,mBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACvB,EAAA,CAGjC,gBAAgBA,EAAqB,CAEjC,MAAO,2BADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACf,EAAA,CAGzC,oBAAoBA,EAAqB,CAErC,MAAO,wBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CAClB,EAAA,CAGtC,cAAcA,EAAqB,CAE/B,MAAO,yBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACjB,EAAA,CAI3C,CA/DII,EAAA"}
package/package.json CHANGED
@@ -14,10 +14,10 @@
14
14
  "seasons",
15
15
  "liturgical"
16
16
  ],
17
- "version": "0.2.11",
18
- "main": "dist/index.cjs.js",
19
- "module": "dist/index.esm.js",
20
- "types": "dist/index.d.ts",
17
+ "version": "0.2.12",
18
+ "main": "dist/breviarium.cjs.js",
19
+ "module": "dist/breviarium.esm.js",
20
+ "types": "dist/breviarium.d.ts",
21
21
  "type": "module",
22
22
  "scripts": {
23
23
  "build": "tsc && vite build",
package/tsconfig.json CHANGED
@@ -28,5 +28,5 @@
28
28
  "types": ["vitest/globals"] // Add Vitest types
29
29
 
30
30
  },
31
- "include": ["src"]
31
+ "include": ["src", "src/*"]
32
32
  }
package/vite.config.ts CHANGED
@@ -5,7 +5,7 @@ export default defineConfig({
5
5
  build: {
6
6
  sourcemap: true,
7
7
  lib: {
8
- entry: "src/index.ts",
8
+ entry: "src/breviarium.ts",
9
9
  name: "Breviarium",
10
10
  fileName: "breviarium",
11
11
  },
@@ -13,17 +13,17 @@ export default defineConfig({
13
13
  output: [
14
14
  {
15
15
  format: "es",
16
- entryFileNames: "index.esm.js",
16
+ entryFileNames: "breviarium.esm.js",
17
17
  dir: "dist",
18
18
  },
19
19
  {
20
20
  format: "cjs",
21
- entryFileNames: "index.cjs.js",
21
+ entryFileNames: "breviarium.cjs.js",
22
22
  dir: "dist",
23
23
  },
24
24
  {
25
25
  format: "umd",
26
- entryFileNames: "index.umd.js",
26
+ entryFileNames: "breviarium.umd.js",
27
27
  dir: "dist",
28
28
  name: "Breviarium", // Global variable for browsers
29
29
  sourcemap: true,
package/dist/index.cjs.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=index.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index.d.ts DELETED
File without changes
package/dist/index.esm.js DELETED
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=index.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index.umd.js DELETED
@@ -1,2 +0,0 @@
1
- (function(n){typeof define=="function"&&define.amd?define(n):n()})(function(){"use strict"});
2
- //# sourceMappingURL=index.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- // src/index.ts