@juki-team/commons 0.1.31 → 0.1.40
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/dist/cjs/index.cjs +3567 -0
- package/dist/esm/index.js +3347 -0
- package/dist/{constants → types/constants}/commons.d.ts +8 -8
- package/dist/{constants → types/constants}/company.d.ts +3 -3
- package/dist/{constants → types/constants}/contest.d.ts +3 -3
- package/dist/{constants → types/constants}/course.d.ts +2 -2
- package/dist/{constants → types/constants}/entity.d.ts +1 -1
- package/dist/{constants → types/constants}/file.d.ts +5 -6
- package/dist/types/constants/index.d.ts +18 -0
- package/dist/{constants → types/constants}/judge.d.ts +9 -11
- package/dist/{constants → types/constants}/problem.d.ts +8 -9
- package/dist/types/constants/services.d.ts +8 -0
- package/dist/{constants → types/constants}/system.d.ts +2 -2
- package/dist/{constants → types/constants}/teams.d.ts +3 -4
- package/dist/types/constants/user.d.ts +16 -0
- package/dist/{constants → types/constants}/websocket.d.ts +1 -1
- package/dist/{constants → types/constants}/worksheet.d.ts +2 -2
- package/dist/{dto → types/dto}/class.d.ts +4 -4
- package/dist/{dto → types/dto}/code.d.ts +1 -1
- package/dist/{dto → types/dto}/comments.d.ts +3 -3
- package/dist/types/dto/company.d.ts +67 -0
- package/dist/{dto → types/dto}/contest.d.ts +8 -9
- package/dist/{dto → types/dto}/course.d.ts +5 -5
- package/dist/{dto → types/dto}/entity.d.ts +3 -3
- package/dist/{dto → types/dto}/excalidraw.d.ts +4 -4
- package/dist/{dto → types/dto}/file.d.ts +2 -2
- package/dist/types/dto/index.d.ts +25 -0
- package/dist/{dto → types/dto}/judge.d.ts +1 -1
- package/dist/{dto → types/dto}/markdown.d.ts +4 -4
- package/dist/{dto → types/dto}/mermaid.d.ts +4 -4
- package/dist/{dto → types/dto}/problem.d.ts +4 -5
- package/dist/{dto → types/dto}/scoreboard.d.ts +1 -1
- package/dist/{dto → types/dto}/session.d.ts +2 -2
- package/dist/{dto → types/dto}/socket.d.ts +7 -8
- package/dist/{dto → types/dto}/statistics.d.ts +2 -2
- package/dist/{dto → types/dto}/submission.d.ts +4 -5
- package/dist/{dto → types/dto}/system.d.ts +18 -18
- package/dist/{dto → types/dto}/user.d.ts +14 -14
- package/dist/{dto → types/dto}/virtual-user.d.ts +1 -2
- package/dist/{dto → types/dto}/worksheet-submissions.d.ts +4 -4
- package/dist/{dto → types/dto}/worksheet.d.ts +4 -4
- package/dist/{helpers → types/helpers}/class.d.ts +1 -1
- package/dist/{helpers → types/helpers}/commons.d.ts +11 -9
- package/dist/{helpers → types/helpers}/contest.d.ts +1 -1
- package/dist/{helpers → types/helpers}/document.d.ts +2 -2
- package/dist/types/helpers/index.d.ts +14 -0
- package/dist/types/helpers/interval.d.ts +2 -0
- package/dist/{helpers → types/helpers}/judging.d.ts +2 -3
- package/dist/types/helpers/object.d.ts +1 -0
- package/dist/types/helpers/responses.d.ts +8 -0
- package/dist/types/helpers/socket.d.ts +45 -0
- package/dist/{helpers → types/helpers}/time.d.ts +1 -1
- package/dist/{helpers → types/helpers}/user.d.ts +1 -1
- package/dist/types/helpers/worksheet.d.ts +10 -0
- package/dist/types/index.d.ts +5 -23
- package/dist/{prototypes → types/prototypes}/Error.d.ts +3 -3
- package/dist/types/prototypes/Number.d.ts +7 -0
- package/dist/types/prototypes/index.d.ts +3 -0
- package/dist/types/{class.d.ts → types/class.d.ts} +2 -2
- package/dist/types/{commons.d.ts → types/commons.d.ts} +3 -3
- package/dist/types/types/company.d.ts +29 -0
- package/dist/types/{contest.d.ts → types/contest.d.ts} +26 -9
- package/dist/types/{course.d.ts → types/course.d.ts} +1 -1
- package/dist/types/{entity.d.ts → types/entity.d.ts} +4 -4
- package/dist/types/{excalidraw.d.ts → types/excalidraw.d.ts} +3 -3
- package/dist/types/{file.d.ts → types/file.d.ts} +9 -4
- package/dist/types/{group.d.ts → types/group.d.ts} +5 -2
- package/dist/types/types/index.d.ts +25 -0
- package/dist/types/{judge.d.ts → types/judge.d.ts} +32 -3
- package/dist/types/{markdown.d.ts → types/markdown.d.ts} +1 -1
- package/dist/types/{mermaid.d.ts → types/mermaid.d.ts} +1 -1
- package/dist/types/types/prisma.d.ts +284 -0
- package/dist/types/{problems.d.ts → types/problems.d.ts} +13 -4
- package/dist/types/types/services.d.ts +213 -0
- package/dist/types/{sheet.d.ts → types/sheet.d.ts} +2 -3
- package/dist/types/{socket.d.ts → types/socket.d.ts} +3 -3
- package/dist/types/{teams.d.ts → types/teams.d.ts} +2 -25
- package/dist/types/{users.d.ts → types/users.d.ts} +4 -10
- package/dist/types/types/virtual-user.d.ts +7 -0
- package/dist/types/{worksheet.d.ts → types/worksheet.d.ts} +3 -3
- package/package.json +18 -22
- package/biome.shared.json +0 -102
- package/dist/constants/commons.js +0 -658
- package/dist/constants/company.js +0 -24
- package/dist/constants/contest.js +0 -29
- package/dist/constants/course.js +0 -12
- package/dist/constants/date.js +0 -23
- package/dist/constants/email.js +0 -34
- package/dist/constants/entity.js +0 -18
- package/dist/constants/file.js +0 -46
- package/dist/constants/index.d.ts +0 -18
- package/dist/constants/index.js +0 -18
- package/dist/constants/judge.js +0 -221
- package/dist/constants/problem.js +0 -72
- package/dist/constants/routing.js +0 -7
- package/dist/constants/services.d.ts +0 -5
- package/dist/constants/services.js +0 -131
- package/dist/constants/system.js +0 -9
- package/dist/constants/teams.js +0 -18
- package/dist/constants/time.js +0 -9
- package/dist/constants/user.d.ts +0 -10
- package/dist/constants/user.js +0 -35
- package/dist/constants/websocket.js +0 -5
- package/dist/constants/worksheet.js +0 -66
- package/dist/dto/class.js +0 -1
- package/dist/dto/code.js +0 -1
- package/dist/dto/comments.js +0 -1
- package/dist/dto/contest.js +0 -7
- package/dist/dto/course.js +0 -1
- package/dist/dto/entity.js +0 -5
- package/dist/dto/excalidraw.js +0 -1
- package/dist/dto/file.js +0 -1
- package/dist/dto/image.js +0 -1
- package/dist/dto/index.d.ts +0 -24
- package/dist/dto/index.js +0 -24
- package/dist/dto/judge.js +0 -1
- package/dist/dto/markdown.js +0 -1
- package/dist/dto/mermaid.js +0 -1
- package/dist/dto/organization.d.ts +0 -102
- package/dist/dto/organization.js +0 -1
- package/dist/dto/problem.js +0 -1
- package/dist/dto/scoreboard.js +0 -1
- package/dist/dto/session.js +0 -1
- package/dist/dto/socket.js +0 -1
- package/dist/dto/statistics.js +0 -1
- package/dist/dto/submission.js +0 -1
- package/dist/dto/system.js +0 -1
- package/dist/dto/url.js +0 -1
- package/dist/dto/user.js +0 -1
- package/dist/dto/virtual-user.js +0 -1
- package/dist/dto/worksheet-submissions.js +0 -1
- package/dist/dto/worksheet.js +0 -1
- package/dist/helpers/class.js +0 -10
- package/dist/helpers/comments.js +0 -4
- package/dist/helpers/commons.js +0 -191
- package/dist/helpers/contest.js +0 -21
- package/dist/helpers/document.js +0 -38
- package/dist/helpers/file.js +0 -4
- package/dist/helpers/index.d.ts +0 -14
- package/dist/helpers/index.js +0 -14
- package/dist/helpers/interval.d.ts +0 -2
- package/dist/helpers/interval.js +0 -22
- package/dist/helpers/judging.js +0 -107
- package/dist/helpers/object.d.ts +0 -1
- package/dist/helpers/object.js +0 -32
- package/dist/helpers/responses.d.ts +0 -8
- package/dist/helpers/responses.js +0 -78
- package/dist/helpers/socket.d.ts +0 -45
- package/dist/helpers/socket.js +0 -238
- package/dist/helpers/time.js +0 -101
- package/dist/helpers/user.js +0 -14
- package/dist/helpers/worksheet.d.ts +0 -10
- package/dist/helpers/worksheet.js +0 -131
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -6
- package/dist/prisma/enums/AssignmentClassType.d.ts +0 -7
- package/dist/prisma/enums/AssignmentClassType.js +0 -6
- package/dist/prisma/enums/ContestEventAction.d.ts +0 -10
- package/dist/prisma/enums/ContestEventAction.js +0 -9
- package/dist/prisma/enums/ContestProblemPrerequisiteType.d.ts +0 -5
- package/dist/prisma/enums/ContestProblemPrerequisiteType.js +0 -4
- package/dist/prisma/enums/ContestRole.d.ts +0 -11
- package/dist/prisma/enums/ContestRole.js +0 -10
- package/dist/prisma/enums/ContestStatus.d.ts +0 -6
- package/dist/prisma/enums/ContestStatus.js +0 -5
- package/dist/prisma/enums/CourseRole.d.ts +0 -12
- package/dist/prisma/enums/CourseRole.js +0 -11
- package/dist/prisma/enums/EntityObjectType.d.ts +0 -13
- package/dist/prisma/enums/EntityObjectType.js +0 -12
- package/dist/prisma/enums/EntityRole.d.ts +0 -8
- package/dist/prisma/enums/EntityRole.js +0 -7
- package/dist/prisma/enums/EntitySubjectType.d.ts +0 -7
- package/dist/prisma/enums/EntitySubjectType.js +0 -6
- package/dist/prisma/enums/FileRole.d.ts +0 -9
- package/dist/prisma/enums/FileRole.js +0 -8
- package/dist/prisma/enums/FileType.d.ts +0 -5
- package/dist/prisma/enums/FileType.js +0 -4
- package/dist/prisma/enums/GroupType.d.ts +0 -5
- package/dist/prisma/enums/GroupType.js +0 -4
- package/dist/prisma/enums/JudgeType.d.ts +0 -12
- package/dist/prisma/enums/JudgeType.js +0 -11
- package/dist/prisma/enums/OrganizationPlan.d.ts +0 -7
- package/dist/prisma/enums/OrganizationPlan.js +0 -6
- package/dist/prisma/enums/ProblemRole.d.ts +0 -11
- package/dist/prisma/enums/ProblemRole.js +0 -10
- package/dist/prisma/enums/ProblemScoringMode.d.ts +0 -6
- package/dist/prisma/enums/ProblemScoringMode.js +0 -5
- package/dist/prisma/enums/ProblemType.d.ts +0 -6
- package/dist/prisma/enums/ProblemType.js +0 -5
- package/dist/prisma/enums/ProblemVerdict.d.ts +0 -14
- package/dist/prisma/enums/ProblemVerdict.js +0 -13
- package/dist/prisma/enums/ShareLinkVisibility.d.ts +0 -5
- package/dist/prisma/enums/ShareLinkVisibility.js +0 -4
- package/dist/prisma/enums/SubmissionRunStatus.d.ts +0 -18
- package/dist/prisma/enums/SubmissionRunStatus.js +0 -17
- package/dist/prisma/enums/SystemRole.d.ts +0 -9
- package/dist/prisma/enums/SystemRole.js +0 -8
- package/dist/prisma/enums/TeamRole.d.ts +0 -9
- package/dist/prisma/enums/TeamRole.js +0 -8
- package/dist/prisma/enums/TelemetryType.d.ts +0 -9
- package/dist/prisma/enums/TelemetryType.js +0 -8
- package/dist/prisma/enums/UserRole.d.ts +0 -10
- package/dist/prisma/enums/UserRole.js +0 -9
- package/dist/prisma/enums/WorkingIn.d.ts +0 -8
- package/dist/prisma/enums/WorkingIn.js +0 -7
- package/dist/prisma/enums/WorksheetContentType.d.ts +0 -10
- package/dist/prisma/enums/WorksheetContentType.js +0 -9
- package/dist/prisma/enums/index.d.ts +0 -26
- package/dist/prisma/enums/index.js +0 -26
- package/dist/prototypes/Date.js +0 -218
- package/dist/prototypes/Error.js +0 -17
- package/dist/prototypes/Number.d.ts +0 -7
- package/dist/prototypes/Number.js +0 -8
- package/dist/prototypes/index.d.ts +0 -3
- package/dist/prototypes/index.js +0 -3
- package/dist/types/account.js +0 -10
- package/dist/types/class.js +0 -7
- package/dist/types/comments.js +0 -1
- package/dist/types/commons.js +0 -69
- package/dist/types/company.d.ts +0 -6
- package/dist/types/company.js +0 -7
- package/dist/types/contest.js +0 -6
- package/dist/types/course.js +0 -1
- package/dist/types/entity.js +0 -50
- package/dist/types/excalidraw.js +0 -1
- package/dist/types/file.js +0 -13
- package/dist/types/group.js +0 -1
- package/dist/types/index.js +0 -23
- package/dist/types/judge.js +0 -17
- package/dist/types/markdown.js +0 -1
- package/dist/types/mermaid.js +0 -1
- package/dist/types/notification.js +0 -8
- package/dist/types/problems.js +0 -16
- package/dist/types/services.d.ts +0 -214
- package/dist/types/services.js +0 -147
- package/dist/types/sheet.js +0 -16
- package/dist/types/socket.js +0 -49
- package/dist/types/submission.js +0 -1
- package/dist/types/teams.js +0 -28
- package/dist/types/users.js +0 -33
- package/dist/types/worksheet.js +0 -11
- /package/dist/{constants → types/constants}/date.d.ts +0 -0
- /package/dist/{constants → types/constants}/email.d.ts +0 -0
- /package/dist/{constants → types/constants}/routing.d.ts +0 -0
- /package/dist/{constants → types/constants}/time.d.ts +0 -0
- /package/dist/{dto → types/dto}/image.d.ts +0 -0
- /package/dist/{dto → types/dto}/url.d.ts +0 -0
- /package/dist/{helpers → types/helpers}/comments.d.ts +0 -0
- /package/dist/{helpers → types/helpers}/file.d.ts +0 -0
- /package/dist/{prototypes → types/prototypes}/Date.d.ts +0 -0
- /package/dist/types/{account.d.ts → types/account.d.ts} +0 -0
- /package/dist/types/{comments.d.ts → types/comments.d.ts} +0 -0
- /package/dist/types/{notification.d.ts → types/notification.d.ts} +0 -0
- /package/dist/types/{submission.d.ts → types/submission.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { CodeLanguage } from './commons';
|
|
2
|
+
import { SubmissionRunStatus } from './judge';
|
|
3
3
|
export declare enum WorksheetType {
|
|
4
4
|
JK_MD = "JK_MD",
|
|
5
5
|
CODE_EDITOR = "CODE_EDITOR",
|
|
@@ -46,7 +46,6 @@ export type CodeEditorFile<T> = {
|
|
|
46
46
|
hidden: boolean;
|
|
47
47
|
readonly: boolean;
|
|
48
48
|
protected: boolean;
|
|
49
|
-
active: boolean;
|
|
50
49
|
};
|
|
51
50
|
export type CodeEditorFiles<T> = {
|
|
52
51
|
[key: string]: CodeEditorFile<T>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { RecordId } from './commons';
|
|
2
2
|
export declare enum WebSocketMessageEvent {
|
|
3
3
|
PING = "PING",
|
|
4
4
|
CLIENT_TRACK_LOCATION = "CLIENT_TRACK_LOCATION",
|
|
@@ -29,7 +29,7 @@ export declare enum WebSocketResponseEvent {
|
|
|
29
29
|
CODE_RUN_STATUS = "CODE_RUN_STATUS",
|
|
30
30
|
SUBMISSION_RUN_STATUS = "SUBMISSION_RUN_STATUS",
|
|
31
31
|
USER_MESSAGE = "USER_MESSAGE",
|
|
32
|
-
|
|
32
|
+
SEND_DATA_ = "SEND_DATA_",
|
|
33
33
|
SEND_DATA_ECS_TASK_DEFINITIONS_LIST = "SEND_DATA_ECS_TASK_DEFINITIONS_LIST",
|
|
34
34
|
SEND_DATA_ECS_TASKS_LIST = "SEND_DATA_ECS_TASKS_LIST",
|
|
35
35
|
SEND_DATA_EC2_INSTANCES_LIST = "SEND_DATA_EC2_INSTANCES_LIST",
|
|
@@ -41,7 +41,7 @@ export declare enum WebSocketResponseEvent {
|
|
|
41
41
|
SUBMISSIONS_CRAWL = "SUBMISSIONS_CRAWL",
|
|
42
42
|
CONTEST_CHANGES = "CONTEST_CHANGES",
|
|
43
43
|
CLIENT_TRACK = "CLIENT_TRACK",
|
|
44
|
-
|
|
44
|
+
USER_NOTIFICATION_ = "USER_NOTIFICATION_",
|
|
45
45
|
USER_NOTIFICATION_SUBMISSION = "USER_NOTIFICATION_SUBMISSION",
|
|
46
46
|
USER_NOTIFICATION_CONTEST_CLARIFICATION = "USER_NOTIFICATION_CONTEST_CLARIFICATION"
|
|
47
47
|
}
|
|
@@ -1,28 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
ACTIVE = "ACTIVE",
|
|
4
|
-
REPORTED = "REPORTED",
|
|
5
|
-
ARCHIVED = "ARCHIVED"
|
|
6
|
-
}
|
|
7
|
-
export declare enum UserTeamStatus {
|
|
8
|
-
PENDING = "PENDING",
|
|
9
|
-
ACCEPTED = "ACCEPTED",
|
|
10
|
-
REJECTED = "REJECTED"
|
|
11
|
-
}
|
|
12
|
-
export declare enum AssignmentType {
|
|
13
|
-
READING_PDF = "READING_PDF",
|
|
14
|
-
READING_WEB = "READING_WEB",
|
|
15
|
-
SOLVE_JUKI_JUDGE_PROBLEM = "SOLVE_JUKI_JUDGE_PROBLEM",
|
|
16
|
-
SOLVE_CODEFORCES_JUDGE_PROBLEM = "SOLVE_CODEFORCES_JUDGE_PROBLEM"
|
|
17
|
-
}
|
|
18
|
-
export declare enum MemberRole {
|
|
19
|
-
COACH = "COACH",
|
|
20
|
-
CO_COACH = "CO_COACH",
|
|
21
|
-
CONTESTANT = "CONTESTANT",
|
|
22
|
-
ATTENDEE = "ATTENDEE",
|
|
23
|
-
RESERVE = "RESERVE",
|
|
24
|
-
STAFF = "STAFF"
|
|
25
|
-
}
|
|
1
|
+
import { MemberRole, AssignmentType, TeamStatus, UserTeamStatus } from './prisma';
|
|
2
|
+
import { UserBasic, UserProfile } from './users';
|
|
26
3
|
export interface TeamMember {
|
|
27
4
|
user: UserProfile;
|
|
28
5
|
role: MemberRole;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { ProfileSetting } from './account';
|
|
2
|
+
import { CourseRole, Language, SystemRole, TeamRole, Theme, UserRole } from './prisma';
|
|
3
3
|
export interface UserBasicInfo {
|
|
4
4
|
nickname: string;
|
|
5
5
|
imageUrl: string;
|
|
@@ -19,14 +19,6 @@ export interface UserProfile extends UserBasic {
|
|
|
19
19
|
export type UserHandles = {
|
|
20
20
|
[key: string]: string;
|
|
21
21
|
};
|
|
22
|
-
export declare enum Language {
|
|
23
|
-
ES = "ES",
|
|
24
|
-
EN = "EN"
|
|
25
|
-
}
|
|
26
|
-
export declare enum Theme {
|
|
27
|
-
LIGHT = "LIGHT",
|
|
28
|
-
DARK = "DARK"
|
|
29
|
-
}
|
|
30
22
|
export declare enum DataViewMode {
|
|
31
23
|
CARDS = "CARDS",
|
|
32
24
|
ROWS = "ROWS"
|
|
@@ -55,6 +47,8 @@ export declare enum Role {
|
|
|
55
47
|
GUEST = "GUEST",
|
|
56
48
|
RESTRICTED = "RESTRICTED"
|
|
57
49
|
}
|
|
50
|
+
export type ProblemRole = Role.RESTRICTED | Role.GUEST | Role.REGULAR | Role.CREATOR | Role.MANAGER | Role.MASTER | Role.ADMIN | Role.SUPER_ADMIN;
|
|
51
|
+
export type ContestRole = Role.RESTRICTED | Role.GUEST | Role.REGULAR | Role.CREATOR | Role.MANAGER | Role.MASTER | Role.ADMIN | Role.SUPER_ADMIN;
|
|
58
52
|
export type UserRoles = {
|
|
59
53
|
systemRole: SystemRole;
|
|
60
54
|
userRole: UserRole;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { EntityMembers } from './entity';
|
|
2
|
+
import { Theme } from './prisma';
|
|
3
|
+
import { BasicWorksheet, BodyWorksheet, NewPageSheet } from './sheet';
|
|
4
4
|
export declare enum AspectRatio {
|
|
5
5
|
RATIO_21_9 = "21:9",
|
|
6
6
|
RATIO_20_9 = "20:9",
|
package/package.json
CHANGED
|
@@ -1,42 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juki-team/commons",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.40",
|
|
4
4
|
"author": "juki-team",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"main": "dist/index.
|
|
8
|
-
"
|
|
7
|
+
"main": "dist/cjs/index.cjs",
|
|
8
|
+
"module": "dist/esm/index.js",
|
|
9
|
+
"types": "dist/types/index.d.ts",
|
|
9
10
|
"exports": {
|
|
10
11
|
".": {
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"import": "./dist/index.js"
|
|
12
|
+
"types": "./dist/types/index.d.ts",
|
|
13
|
+
"import": "./dist/esm/index.js",
|
|
14
|
+
"require": "./dist/cjs/index.cjs"
|
|
13
15
|
}
|
|
14
16
|
},
|
|
15
17
|
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
"biome.shared.json"
|
|
18
|
+
"dist"
|
|
18
19
|
],
|
|
19
20
|
"repository": "https://github.com/juki-team/commons.git",
|
|
20
|
-
"publishConfig": {
|
|
21
|
-
"access": "public",
|
|
22
|
-
"registry": "https://registry.npmjs.org"
|
|
23
|
-
},
|
|
24
21
|
"scripts": {
|
|
25
22
|
"docs": "typedoc src/index.ts",
|
|
26
|
-
"watch": "
|
|
27
|
-
"build": "rm -rf docs && rm -rf dist &&
|
|
28
|
-
"git:commit-push": "f() { param=${1}; message=${param:-chore}; git add .; git commit -
|
|
29
|
-
"git:push": "f() {
|
|
23
|
+
"watch": "rollup -cw",
|
|
24
|
+
"build": "rm -rf docs && rm -rf dist && rollup -c && yarn docs",
|
|
25
|
+
"git:commit-push": "f() { param=${1}; message=${param:-chore}; echo ${message}; git add .; echo $message | git commit -F -; yarn publish --patch --no-git-tag-version; version=\"v$(node -p \"require('./package.json').version\")\"; git add .; echo $version | git commit -F -; git push origin main; echo $version | git tag -a $(echo $version) -F -; git push origin --tags; }; f",
|
|
26
|
+
"git:push": "f() { yarn publish --patch --no-git-tag-version; version=\"v$(node -p \"require('./package.json').version\")\"; git add .; echo $version | git commit -F -; git push origin main; echo $version | git tag -a $(echo $version) -F -; git push origin --tags; }; f",
|
|
30
27
|
"push-commit": "f() { yarn build && yarn git-push \"${1}\"; }; f",
|
|
31
|
-
"push": "yarn build && yarn git:push"
|
|
32
|
-
"lint": "biome check src/",
|
|
33
|
-
"lint:fix": "biome check --write src/",
|
|
34
|
-
"lint:format": "biome format --write src/"
|
|
28
|
+
"push": "yarn build && yarn git:push"
|
|
35
29
|
},
|
|
36
30
|
"devDependencies": {
|
|
37
|
-
"@biomejs/biome": "^2.4.12",
|
|
38
31
|
"@types/uuid": "^11.0.0",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
32
|
+
"prettier": "^3.8.1",
|
|
33
|
+
"rollup": "^4.57.1",
|
|
34
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
35
|
+
"typedoc": "^0.28.16",
|
|
36
|
+
"typescript": "^5.9.3"
|
|
41
37
|
}
|
|
42
38
|
}
|
package/biome.shared.json
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
|
|
3
|
-
"formatter": {
|
|
4
|
-
"enabled": true,
|
|
5
|
-
"formatWithErrors": false,
|
|
6
|
-
"indentStyle": "space",
|
|
7
|
-
"indentWidth": 2,
|
|
8
|
-
"lineEnding": "lf",
|
|
9
|
-
"lineWidth": 128,
|
|
10
|
-
"attributePosition": "auto",
|
|
11
|
-
"bracketSameLine": false,
|
|
12
|
-
"bracketSpacing": true,
|
|
13
|
-
"expand": "auto",
|
|
14
|
-
"useEditorconfig": true
|
|
15
|
-
},
|
|
16
|
-
"linter": {
|
|
17
|
-
"enabled": true,
|
|
18
|
-
"rules": {
|
|
19
|
-
"recommended": true,
|
|
20
|
-
"correctness": {
|
|
21
|
-
"noUnusedImports": "error",
|
|
22
|
-
"noUnusedVariables": "error",
|
|
23
|
-
"noUnusedPrivateClassMembers": "error",
|
|
24
|
-
"noUnusedFunctionParameters": "error",
|
|
25
|
-
"useExhaustiveDependencies": "error",
|
|
26
|
-
"noConstantCondition": "error",
|
|
27
|
-
"noVoidTypeReturn": "error",
|
|
28
|
-
"noUndeclaredVariables": "error",
|
|
29
|
-
"useImportExtensions": "off"
|
|
30
|
-
},
|
|
31
|
-
"suspicious": {
|
|
32
|
-
"noConsole": { "level": "error", "options": { "allow": ["error", "warn", "info"] } },
|
|
33
|
-
"noExplicitAny": "error",
|
|
34
|
-
"noDoubleEquals": "error",
|
|
35
|
-
"noEmptyBlockStatements": "error",
|
|
36
|
-
"noConfusingVoidType": "error",
|
|
37
|
-
"useAwait": "error",
|
|
38
|
-
"noAssignInExpressions": "error",
|
|
39
|
-
"noMisleadingInstantiator": "error"
|
|
40
|
-
},
|
|
41
|
-
"style": {
|
|
42
|
-
"noNonNullAssertion": "error",
|
|
43
|
-
"useConst": "error",
|
|
44
|
-
"useTemplate": "error",
|
|
45
|
-
"noParameterAssign": "error",
|
|
46
|
-
"useShorthandAssign": "error",
|
|
47
|
-
"noUselessElse": "error",
|
|
48
|
-
"useDefaultParameterLast": "error",
|
|
49
|
-
"noDefaultExport": "error",
|
|
50
|
-
"useNamingConvention": {
|
|
51
|
-
"level": "error",
|
|
52
|
-
"options": {
|
|
53
|
-
"strictCase": false,
|
|
54
|
-
"conventions": [
|
|
55
|
-
{
|
|
56
|
-
"selector": { "kind": "enumMember" },
|
|
57
|
-
"formats": ["CONSTANT_CASE"]
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"useImportType": "error"
|
|
63
|
-
},
|
|
64
|
-
"performance": {
|
|
65
|
-
"noDelete": "error",
|
|
66
|
-
"noAccumulatingSpread": "error",
|
|
67
|
-
"noNamespaceImport": "error"
|
|
68
|
-
},
|
|
69
|
-
"complexity": {
|
|
70
|
-
"noExcessiveCognitiveComplexity": { "level": "warn", "options": { "maxAllowedComplexity": 10 } },
|
|
71
|
-
"noForEach": "error",
|
|
72
|
-
"useSimplifiedLogicExpression": "error",
|
|
73
|
-
"useFlatMap": "error",
|
|
74
|
-
"noStaticOnlyClass": "error",
|
|
75
|
-
"noUselessSwitchCase": "error"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"javascript": {
|
|
80
|
-
"formatter": {
|
|
81
|
-
"jsxQuoteStyle": "double",
|
|
82
|
-
"quoteProperties": "asNeeded",
|
|
83
|
-
"trailingCommas": "all",
|
|
84
|
-
"semicolons": "always",
|
|
85
|
-
"arrowParentheses": "always",
|
|
86
|
-
"bracketSameLine": false,
|
|
87
|
-
"quoteStyle": "single",
|
|
88
|
-
"attributePosition": "auto",
|
|
89
|
-
"bracketSpacing": true
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"html": {
|
|
93
|
-
"formatter": {
|
|
94
|
-
"indentScriptAndStyle": false,
|
|
95
|
-
"selfCloseVoidElements": "always"
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"assist": {
|
|
99
|
-
"enabled": true,
|
|
100
|
-
"actions": { "source": { "organizeImports": "on" } }
|
|
101
|
-
}
|
|
102
|
-
}
|