tonightpass 0.0.117 → 0.0.119

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.
Files changed (89) hide show
  1. package/dist/index.js.map +1 -1
  2. package/dist/index.mjs.map +1 -1
  3. package/package.json +15 -2
  4. package/.turbo/turbo-build.log +0 -21
  5. package/CHANGELOG.md +0 -717
  6. package/src/constants/api.ts +0 -1
  7. package/src/constants/index.ts +0 -2
  8. package/src/constants/regex.ts +0 -28
  9. package/src/index.ts +0 -6
  10. package/src/rest/client.ts +0 -198
  11. package/src/rest/dtos/index.ts +0 -5
  12. package/src/rest/dtos/locations/create-location.dto.ts +0 -68
  13. package/src/rest/dtos/locations/index.ts +0 -2
  14. package/src/rest/dtos/locations/update-location.dto.ts +0 -37
  15. package/src/rest/dtos/organizations/create-organization.dto.ts +0 -60
  16. package/src/rest/dtos/organizations/events/create-organization-event.dto.ts +0 -99
  17. package/src/rest/dtos/organizations/events/index.ts +0 -6
  18. package/src/rest/dtos/organizations/events/orders/create-organization-event-order.dto.ts +0 -3
  19. package/src/rest/dtos/organizations/events/orders/index.ts +0 -1
  20. package/src/rest/dtos/organizations/events/styles/create-organization-event-style.dto.ts +0 -7
  21. package/src/rest/dtos/organizations/events/styles/index.ts +0 -2
  22. package/src/rest/dtos/organizations/events/styles/update-organization-event-style.dto.ts +0 -3
  23. package/src/rest/dtos/organizations/events/tickets/create-organization-event-ticket.dto.ts +0 -68
  24. package/src/rest/dtos/organizations/events/tickets/index.ts +0 -2
  25. package/src/rest/dtos/organizations/events/tickets/update-organization-event-ticket.dto.ts +0 -70
  26. package/src/rest/dtos/organizations/events/update-organization-event.dto.ts +0 -88
  27. package/src/rest/dtos/organizations/index.ts +0 -4
  28. package/src/rest/dtos/organizations/members/create-organization-member.dto.ts +0 -13
  29. package/src/rest/dtos/organizations/members/index.ts +0 -2
  30. package/src/rest/dtos/organizations/members/update-organization-member.dto.ts +0 -9
  31. package/src/rest/dtos/organizations/update-organization.dto.ts +0 -65
  32. package/src/rest/dtos/users/create-user.dto.ts +0 -86
  33. package/src/rest/dtos/users/index.ts +0 -3
  34. package/src/rest/dtos/users/sign-in-user.dto.ts +0 -11
  35. package/src/rest/dtos/users/update-user.dto.ts +0 -121
  36. package/src/rest/endpoints.ts +0 -36
  37. package/src/rest/index.ts +0 -5
  38. package/src/rest/request/index.ts +0 -1
  39. package/src/rest/request/request.ts +0 -52
  40. package/src/rest/types/auth/index.ts +0 -15
  41. package/src/rest/types/careers/index.ts +0 -87
  42. package/src/rest/types/health/index.ts +0 -15
  43. package/src/rest/types/index.ts +0 -108
  44. package/src/rest/types/locations/index.ts +0 -30
  45. package/src/rest/types/notifications/index.ts +0 -8
  46. package/src/rest/types/orders/index.ts +0 -14
  47. package/src/rest/types/organizations/events/index.ts +0 -136
  48. package/src/rest/types/organizations/events/orders/index.ts +0 -10
  49. package/src/rest/types/organizations/events/styles/index.ts +0 -47
  50. package/src/rest/types/organizations/events/tickets/index.ts +0 -73
  51. package/src/rest/types/organizations/events/views/index.ts +0 -8
  52. package/src/rest/types/organizations/index.ts +0 -78
  53. package/src/rest/types/organizations/members/index.ts +0 -72
  54. package/src/rest/types/profiles/index.ts +0 -82
  55. package/src/rest/types/users/bookings/index.ts +0 -56
  56. package/src/rest/types/users/index.ts +0 -116
  57. package/src/rest/types/users/notifications/index.ts +0 -50
  58. package/src/rest/types/users/tokens/index.ts +0 -19
  59. package/src/rest/types/webhooks/index.ts +0 -10
  60. package/src/sdk/auth.ts +0 -42
  61. package/src/sdk/builder.ts +0 -5
  62. package/src/sdk/careers.ts +0 -23
  63. package/src/sdk/health.ts +0 -8
  64. package/src/sdk/index.ts +0 -9
  65. package/src/sdk/notifications.ts +0 -6
  66. package/src/sdk/orders.ts +0 -13
  67. package/src/sdk/organizations/billing/index.ts +0 -33
  68. package/src/sdk/organizations/events/index.ts +0 -79
  69. package/src/sdk/organizations/events/orders/index.ts +0 -17
  70. package/src/sdk/organizations/events/styles/index.ts +0 -19
  71. package/src/sdk/organizations/events/tickets/index.ts +0 -64
  72. package/src/sdk/organizations/events/views/index.ts +0 -13
  73. package/src/sdk/organizations/index.ts +0 -22
  74. package/src/sdk/organizations/members/index.ts +0 -7
  75. package/src/sdk/profiles/index.ts +0 -8
  76. package/src/sdk/profiles/relationships/index.ts +0 -28
  77. package/src/sdk/users/bookings/index.ts +0 -8
  78. package/src/sdk/users/index.ts +0 -26
  79. package/src/sdk/users/notifications/index.ts +0 -7
  80. package/src/tonightpass.ts +0 -37
  81. package/src/utils/index.ts +0 -21
  82. package/tests/auth/index.ts +0 -26
  83. package/tests/careers/index.ts +0 -28
  84. package/tests/dtos/index.ts +0 -157
  85. package/tests/index.ts +0 -61
  86. package/tests/regex/index.ts +0 -81
  87. package/tests/users/index.ts +0 -38
  88. package/tsconfig.json +0 -18
  89. package/tsup.config.ts +0 -17
@@ -1,8 +0,0 @@
1
- import { sdk } from "../../builder";
2
-
3
- export const usersBookings = sdk((client) => ({
4
- getAll: async () => client.get("/users/bookings"),
5
- get: async (bookingId: string) =>
6
- client.get("/users/bookings/:bookingId", { bookingId }),
7
- me: async () => client.get("/users/@me/bookings"),
8
- }));
@@ -1,26 +0,0 @@
1
- import { UpdateUserDto, UserFileType } from "../../rest";
2
- import { buildFileFormData } from "../../utils";
3
- import { sdk } from "../builder";
4
- import { usersBookings } from "./bookings";
5
- import { usersNotifications } from "./notifications";
6
-
7
- export const users = sdk((client) => ({
8
- getAll: async () => client.get("/users"),
9
- get: async (userId: string) => client.get("/users/:userId", { userId }),
10
- me: async () => client.get("/users/@me"),
11
- check: async (identifier: string, suggestions?: boolean) =>
12
- client.get("/users/check/:identifier", { identifier, suggestions }),
13
- update: async (userId: string, data: UpdateUserDto) =>
14
- client.put("/users/:userId", data, { userId }),
15
- uploadFile: async (userId: string, userFileType: UserFileType, file: File) =>
16
- client.post(
17
- "/users/:userId/files/:userFileType",
18
- buildFileFormData("file", file),
19
- {
20
- userId,
21
- userFileType,
22
- },
23
- ),
24
- bookings: usersBookings(client),
25
- notifications: usersNotifications(client),
26
- }));
@@ -1,7 +0,0 @@
1
- import { sdk } from "../../builder";
2
-
3
- export const usersNotifications = sdk((client) => ({
4
- me: async () => client.get("/users/@me/notifications"),
5
- count: async (options: { unseen?: boolean }) =>
6
- client.get("/users/@me/notifications/count", options),
7
- }));
@@ -1,37 +0,0 @@
1
- import { Client, ClientOptions } from "./rest";
2
- import {
3
- auth,
4
- careers,
5
- health,
6
- notifications,
7
- orders,
8
- organizations,
9
- profiles,
10
- users,
11
- } from "./sdk";
12
-
13
- export class TonightPass {
14
- public readonly client: Client;
15
-
16
- public readonly auth;
17
- public readonly careers;
18
- public readonly health;
19
- public readonly orders;
20
- public readonly organizations;
21
- public readonly profiles;
22
- public readonly users;
23
- public readonly notifications;
24
-
25
- constructor(options: ClientOptions) {
26
- this.client = new Client(options);
27
-
28
- this.auth = auth(this.client);
29
- this.careers = careers(this.client);
30
- this.health = health(this.client);
31
- this.orders = orders(this.client);
32
- this.organizations = organizations(this.client);
33
- this.profiles = profiles(this.client);
34
- this.users = users(this.client);
35
- this.notifications = notifications(this.client);
36
- }
37
- }
@@ -1,21 +0,0 @@
1
- export const isBrowser = typeof window !== "undefined";
2
-
3
- export function buildFileFormData(
4
- key: string,
5
- files: File | File[] | FileList,
6
- ): FormData {
7
- const formData = new FormData();
8
-
9
- if (files instanceof File) {
10
- // Single file case
11
- formData.append(key, files);
12
- } else if (files instanceof FileList) {
13
- // FileList case
14
- Array.from(files).forEach((file) => formData.append(key, file));
15
- } else {
16
- // Array of files case
17
- files.forEach((file) => formData.append(key, file));
18
- }
19
-
20
- return formData;
21
- }
@@ -1,26 +0,0 @@
1
- import assert from "assert";
2
- import test from "node:test";
3
-
4
- import { ErroredAPIResponse } from "../../src";
5
- import { TonightPass } from "../../src/tonightpass";
6
-
7
- export function authTests(tnp: TonightPass) {
8
- test("It will fail to sign in to 'tonightpass'", async () => {
9
- try {
10
- await tnp.auth.signIn({
11
- identifier: "tonightpass",
12
- password: "1234",
13
- });
14
- assert.fail(
15
- "Expected the 'signIn' function to throw an error but it didn't",
16
- );
17
- } catch (error) {
18
- const typedError = error as ErroredAPIResponse;
19
- assert.strictEqual(
20
- typedError.success,
21
- false,
22
- "Expected error response to indicate failure",
23
- );
24
- }
25
- });
26
- }
@@ -1,28 +0,0 @@
1
- import assert from "assert";
2
- import test from "node:test";
3
-
4
- import { TonightPass } from "../../src/tonightpass";
5
-
6
- export function careersTests(tnp: TonightPass) {
7
- test("It gets all careers categories", async () => {
8
- const careersCategories = await tnp.careers.categories.getAll();
9
- assert.ok(
10
- Array.isArray(careersCategories) &&
11
- careersCategories.length > 0 &&
12
- careersCategories[0].slug,
13
- );
14
- });
15
-
16
- test("It gets all careers jobs", async () => {
17
- const careersJobs = await tnp.careers.jobs.getAll();
18
- assert.ok(Array.isArray(careersJobs));
19
- });
20
-
21
- test("It gets all careers offices", async () => {
22
- const careersOffices = await tnp.careers.offices.getAll({
23
- page: 1,
24
- pageSize: 10,
25
- });
26
- assert.ok(Array.isArray(careersOffices));
27
- });
28
- }
@@ -1,157 +0,0 @@
1
- import assert from "assert";
2
- import { plainToInstance } from "class-transformer";
3
- import { validate, ValidationError } from "class-validator";
4
- import test from "node:test";
5
-
6
- import {
7
- CreateUserDto,
8
- CreateOrganizationEventTicketDto,
9
- } from "../../src/rest/dtos";
10
- import {
11
- UserIdentityGender,
12
- OrganizationEventTicketType,
13
- OrganizationEventTicketCategory,
14
- Currency,
15
- } from "../../src/rest/types";
16
-
17
- function printValidationErrors(errors: ValidationError[]): string[] {
18
- const formatError = (error: ValidationError, prefix = ""): string[] => {
19
- let messages: string[] = [];
20
- if (error.constraints) {
21
- Object.entries(error.constraints).forEach(([key, value]) => {
22
- messages.push(`${prefix}${error.property} - ${key}: ${value}`);
23
- });
24
- }
25
- if (error.children) {
26
- error.children.forEach((child: ValidationError) => {
27
- messages = messages.concat(
28
- formatError(child, `${prefix}${error.property}.`),
29
- );
30
- });
31
- }
32
- return messages;
33
- };
34
-
35
- return errors.flatMap((error) => formatError(error));
36
- }
37
-
38
- export async function dtoTests() {
39
- test("CreateUserDto validation", async (t) => {
40
- await t.test("should fail with invalid email", async () => {
41
- const dto = plainToInstance(CreateUserDto, {
42
- identifier: {
43
- email: "invalid-email",
44
- username: "validuser123",
45
- },
46
- identity: {
47
- firstName: "John",
48
- lastName: "Doe",
49
- gender: UserIdentityGender.Male,
50
- birthDate: new Date().toISOString(),
51
- },
52
- password: "ValidPass123!",
53
- });
54
-
55
- const identifierErrors = await validate(dto.identifier);
56
- const hasEmailError = identifierErrors.some(
57
- (error) => error.property === "email" && error.constraints?.isEmail,
58
- );
59
-
60
- assert(hasEmailError, "Expected validation error for invalid email");
61
- });
62
-
63
- await t.test("should fail with invalid password", async () => {
64
- const dto = plainToInstance(CreateUserDto, {
65
- identifier: {
66
- email: "test@example.com",
67
- username: "validuser123",
68
- },
69
- identity: {
70
- firstName: "John",
71
- lastName: "Doe",
72
- gender: UserIdentityGender.Male,
73
- birthDate: new Date().toISOString(),
74
- },
75
- password: "weak",
76
- });
77
-
78
- const errors = await validate(dto, {
79
- skipMissingProperties: false,
80
- });
81
-
82
- const hasPasswordError = errors.some(
83
- (error) => error.property === "password" && error.constraints?.matches,
84
- );
85
-
86
- assert(hasPasswordError, "Expected validation error for weak password");
87
- });
88
-
89
- await t.test("should pass with valid DTO", async () => {
90
- const dto = plainToInstance(CreateUserDto, {
91
- identifier: {
92
- email: "test@example.com",
93
- username: "validuser123",
94
- },
95
- identity: {
96
- firstName: "John",
97
- lastName: "Doe",
98
- gender: UserIdentityGender.Male,
99
- birthDate: new Date().toISOString(),
100
- },
101
- password: "ValidPass123!",
102
- });
103
-
104
- const error = await validate(dto.identifier);
105
- const identityError = await validate(dto.identity);
106
- const mainError = await validate(dto, {
107
- whitelist: true,
108
- forbidNonWhitelisted: true,
109
- });
110
-
111
- const totalErrors =
112
- error.length + identityError.length + mainError.length;
113
- assert.strictEqual(totalErrors, 0, "Expected no validation errors");
114
- });
115
- });
116
-
117
- test("CreateOrganizationEventTicketDto validation", async (t) => {
118
- await t.test("should pass with valid DTO", async () => {
119
- const dto = plainToInstance(CreateOrganizationEventTicketDto, {
120
- name: "VIP Ticket",
121
- description:
122
- "Access to VIP area, minimum length should be at least 16 chars",
123
- price: 100,
124
- quantity: 100,
125
- type: OrganizationEventTicketType.ETicket,
126
- category: OrganizationEventTicketCategory.Entry,
127
- currency: Currency.EUR,
128
- isVisible: true,
129
- isFeesIncluded: true,
130
- });
131
-
132
- const errors = await validate(dto);
133
- assert.strictEqual(errors.length, 0, "Expected no validation errors");
134
- });
135
-
136
- await t.test("should fail with invalid price", async () => {
137
- const dto = plainToInstance(CreateOrganizationEventTicketDto, {
138
- name: "VIP Ticket",
139
- description:
140
- "Access to VIP area, minimum length should be at least 16 chars",
141
- price: -10,
142
- quantity: 100,
143
- type: OrganizationEventTicketType.ETicket,
144
- category: OrganizationEventTicketCategory.Entry,
145
- currency: Currency.EUR,
146
- isVisible: true,
147
- isFeesIncluded: true,
148
- });
149
-
150
- const errors = await validate(dto);
151
- const hasPriceError = printValidationErrors(errors).some(
152
- (error) => error.includes("price") && error.includes("min"),
153
- );
154
- assert(hasPriceError, "Expected validation error for negative price");
155
- });
156
- });
157
- }
package/tests/index.ts DELETED
@@ -1,61 +0,0 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
-
3
- import assert from "node:assert";
4
- import test from "node:test";
5
-
6
- import { authTests } from "./auth";
7
- import { careersTests } from "./careers";
8
- import { dtoTests } from "./dtos";
9
- import { regexTests } from "./regex";
10
- import { usersTests } from "./users";
11
- import { TonightPass } from "../src/tonightpass";
12
-
13
- const sdkTests = [authTests, careersTests, dtoTests, regexTests, usersTests];
14
-
15
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
16
- // @ts-expect-error
17
- globalThis.TSUP_IS_NODE = true;
18
-
19
- const API_URL =
20
- process.env.TEST_TONIGHTPASS_API_BASE_URL ??
21
- "https://api.staging.tonightpass.com";
22
-
23
- const tnp = new TonightPass({
24
- baseURL: API_URL,
25
- });
26
-
27
- test("The HTTP client correctly forms URLs", () => {
28
- assert.equal(
29
- tnp.client.url("/path/to/:resource", {
30
- resource: "my-resource",
31
- limit: 20,
32
- skip: 20,
33
- }),
34
- API_URL + "/path/to/my-resource?limit=20&skip=20",
35
- );
36
-
37
- assert.equal(
38
- tnp.client.url("/path/to/:resource", {
39
- resource: "my-resource",
40
- limit: 20,
41
- }),
42
- API_URL + "/path/to/my-resource?limit=20",
43
- );
44
-
45
- assert.equal(
46
- tnp.client.url("/path/to/:resource/:param", {
47
- resource: "my-resource",
48
- param: "param2",
49
- limit: 20,
50
- }),
51
- API_URL + "/path/to/my-resource/param2?limit=20",
52
- );
53
- });
54
-
55
- test("The HTTP client can make a request", async () => {
56
- await assert.doesNotReject(() => tnp.client.get("/health/api"));
57
- });
58
-
59
- for (const sdkTest of sdkTests) {
60
- sdkTest(tnp);
61
- }
@@ -1,81 +0,0 @@
1
- import assert from "assert";
2
- import test from "node:test";
3
-
4
- import { REGEX } from "../../src";
5
-
6
- export function regexTests() {
7
- test("EMAIL regex", () => {
8
- assert.ok(REGEX.EMAIL.test("example@example.com"));
9
- assert.ok(!REGEX.EMAIL.test("example@.com"));
10
- assert.ok(!REGEX.EMAIL.test("example@com"));
11
- assert.ok(REGEX.EMAIL.test("user.name+tag+sorting@example.com"));
12
- assert.ok(!REGEX.EMAIL.test("user name@example.com"));
13
- });
14
-
15
- test("NAME regex", () => {
16
- assert.ok(REGEX.NAME.test("John Doe"));
17
- assert.ok(REGEX.NAME.test("JohnDoe123"));
18
- assert.ok(!REGEX.NAME.test("John_Doe"));
19
- assert.ok(!REGEX.NAME.test("John-Doe"));
20
- assert.ok(!REGEX.NAME.test("JohnDoe!"));
21
- });
22
-
23
- test("USERNAME regex", () => {
24
- assert.ok(REGEX.USERNAME.test("slug_123"));
25
- assert.ok(REGEX.USERNAME.test("slug.123"));
26
- assert.ok(!REGEX.USERNAME.test("slug-123"));
27
- assert.ok(!REGEX.USERNAME.test("Slug123"));
28
- assert.ok(!REGEX.USERNAME.test("slug#123"));
29
- assert.ok(!REGEX.USERNAME.test("!slug123"));
30
- assert.ok(!REGEX.USERNAME.test("slug123😀"));
31
- assert.ok(!REGEX.USERNAME.test(".slug123"));
32
- assert.ok(!REGEX.USERNAME.test("slug123."));
33
- assert.ok(!REGEX.USERNAME.test("SLUG123"));
34
- });
35
-
36
- test("PHONE regex", () => {
37
- assert.ok(REGEX.PHONE.test("+1234567890"));
38
- assert.ok(REGEX.PHONE.test("+12 345 678 9012"));
39
- assert.ok(!REGEX.PHONE.test("1234567890"));
40
- assert.ok(!REGEX.PHONE.test("+1 (234) 567-890"));
41
- assert.ok(!REGEX.PHONE.test("+12 3456 7890 12 3456"));
42
- });
43
-
44
- test("PASSWORD regex", () => {
45
- assert.ok(REGEX.PASSWORD.test("Password1"));
46
- assert.ok(REGEX.PASSWORD.test("P@ssword"));
47
- assert.ok(!REGEX.PASSWORD.test("password1"));
48
- assert.ok(!REGEX.PASSWORD.test("PASSWORD1"));
49
- assert.ok(!REGEX.PASSWORD.test("Password"));
50
- assert.ok(!REGEX.PASSWORD.test("P1"));
51
- });
52
-
53
- test("PASSWORD_MIN_LENGTH regex", () => {
54
- assert.ok(REGEX.PASSWORD_MIN_LENGTH.test("Password1"));
55
- assert.ok(!REGEX.PASSWORD_MIN_LENGTH.test("Pass1"));
56
- });
57
-
58
- test("PASSWORD_UPPERCASE regex", () => {
59
- assert.ok(REGEX.PASSWORD_UPPERCASE.test("Password"));
60
- assert.ok(!REGEX.PASSWORD_UPPERCASE.test("password"));
61
- });
62
-
63
- test("PASSWORD_LOWERCASE regex", () => {
64
- assert.ok(REGEX.PASSWORD_LOWERCASE.test("Password"));
65
- assert.ok(!REGEX.PASSWORD_LOWERCASE.test("PASSWORD"));
66
- });
67
-
68
- test("PASSWORD_NUMBER_SPECIAL regex", () => {
69
- assert.ok(REGEX.PASSWORD_NUMBER_SPECIAL.test("Password1"));
70
- assert.ok(REGEX.PASSWORD_NUMBER_SPECIAL.test("P@ssword"));
71
- assert.ok(!REGEX.PASSWORD_NUMBER_SPECIAL.test("Password"));
72
- });
73
-
74
- test("IMAGE_URL regex", () => {
75
- assert.ok(REGEX.IMAGE_URL.test("http://example.com/image.jpg"));
76
- assert.ok(REGEX.IMAGE_URL.test("https://www.example.com/image.jpeg"));
77
- assert.ok(!REGEX.IMAGE_URL.test("www.example.com/image.png"));
78
- assert.ok(!REGEX.IMAGE_URL.test("example.com/image"));
79
- assert.ok(!REGEX.IMAGE_URL.test("https://example.com/image.txt"));
80
- });
81
- }
@@ -1,38 +0,0 @@
1
- import assert from "assert";
2
- import test from "node:test";
3
-
4
- import { ErroredAPIResponse } from "../../src";
5
- import { TonightPass } from "../../src/tonightpass";
6
-
7
- export function usersTests(tnp: TonightPass) {
8
- test("It will fail to get user 'me'", async () => {
9
- try {
10
- await tnp.users.me();
11
- assert.fail("Expected the 'me' function to throw an error but it didn't");
12
- } catch (error) {
13
- const typedError = error as ErroredAPIResponse;
14
- assert.strictEqual(
15
- typedError.success,
16
- false,
17
- "Expected error response to indicate failure",
18
- );
19
- assert.strictEqual(
20
- typeof typedError.message,
21
- "string",
22
- "Expected error message to be a string",
23
- );
24
- assert.strictEqual(
25
- typedError.message,
26
- "Unauthorized",
27
- "Expected error message to be 'Unauthorized'",
28
- );
29
- }
30
- });
31
-
32
- test("It check 'tonightpass' username availability with suggestions", async () => {
33
- const response = await tnp.users.check("tonightpass", true);
34
- assert.strictEqual(response.exists, true);
35
- assert.strictEqual(response.identifier?.username, "tonightpass");
36
- assert.strictEqual(response.suggestions?.length, 3);
37
- });
38
- }
package/tsconfig.json DELETED
@@ -1,18 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "esnext",
4
- "resolveJsonModule": true,
5
- "esModuleInterop": true,
6
- "forceConsistentCasingInFileNames": true,
7
- "isolatedModules": true,
8
- "moduleResolution": "node",
9
- "preserveWatchOutput": true,
10
- "skipLibCheck": true,
11
- "noEmit": true,
12
- "strict": true,
13
- "strictPropertyInitialization": false,
14
- "experimentalDecorators": true,
15
- "emitDecoratorMetadata": true
16
- },
17
- "exclude": ["node_modules"]
18
- }
package/tsup.config.ts DELETED
@@ -1,17 +0,0 @@
1
- import { esbuildDecorators } from "@anatine/esbuild-decorators";
2
- import { defineConfig, Options } from "tsup";
3
-
4
- const config: Options = {
5
- format: ["cjs", "esm"],
6
- entry: ["src/index.ts"],
7
- splitting: true,
8
- sourcemap: true,
9
- clean: false,
10
- platform: "node",
11
- minify: true,
12
- treeshake: true,
13
- dts: true,
14
- esbuildPlugins: [esbuildDecorators()],
15
- };
16
-
17
- export default defineConfig(config);