Skip to content

Commit 9dbdbc3

Browse files
committed
chore: move to a single entry point
1 parent a0fabb8 commit 9dbdbc3

File tree

20 files changed

+16
-28
lines changed

20 files changed

+16
-28
lines changed

examples/events_calendar_id.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { cas_login, cas_oauth2_authorize, cas_oauth2_token, get_events_by_calendar_id, login_check } from "../src";
1+
import { cas_login, cas_oauth2_authorize, cas_oauth2_token, get_events_by_calendar_id, login_check } from "../src/cas";
22
import { credentials } from "./_credentials";
33

44
const CALENDAR_ID = "";

package.json

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"type": "git",
77
"url": "git+https://github.com/LiterateInk/Unilim.JS.git"
88
},
9+
"main": "./dist/index.js",
10+
"module": "./dist/index.mjs",
911
"devDependencies": {
1012
"@stylistic/eslint-plugin": "^4.2.0",
1113
"@types/bun": "^1.2.9",
@@ -21,25 +23,13 @@
2123
"typescript": "^5.8.3"
2224
},
2325
"exports": {
24-
"./biome": {
25-
"types": "./dist/biome/index.d.ts",
26-
"import": "./dist/biome/index.mjs",
27-
"default": "./dist/biome/index.js"
26+
"import": {
27+
"types": "./dist/index.d.mts",
28+
"default": "./dist/index.mjs"
2829
},
29-
"./cas": {
30-
"types": "./dist/cas/index.d.ts",
31-
"import": "./dist/cas/index.mjs",
32-
"default": "./dist/cas/index.js"
33-
},
34-
"./iut/signatures": {
35-
"types": "./dist/iut/signatures/index.d.ts",
36-
"import": "./dist/iut/signatures/index.mjs",
37-
"default": "./dist/iut/signatures/index.js"
38-
},
39-
"./iut/info/edt": {
40-
"types": "./dist/iut/info/edt/index.d.ts",
41-
"import": "./dist/iut/info/edt/index.mjs",
42-
"default": "./dist/iut/info/edt/index.js"
30+
"require": {
31+
"types": "./dist/index.d.ts",
32+
"default": "./dist/index.js"
4333
}
4434
},
4535
"bugs": {

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * as biome from "./biome";
2+
export * as cas from "./cas";
3+
export * as iut from "./iut";

src/iut/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * as info from "./info";
2+
export * as signatures from "./signatures";

src/iut/info/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * as timetable from "./timetable"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)