@necto-react/types 2.0.0 → 2.3.0

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Necto
3
+ Copyright (c) Corinvo, LLC. and affiliates. All rights reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { AriaAttributes, DOMAttributes as DOMAttributes$1, AriaRole, CSSProperties } from 'react';
1
+ import { AriaAttributes, DOMAttributes as DOMAttributes$1, AriaRole, CSSProperties, HTMLAttributeAnchorTarget, HTMLAttributeReferrerPolicy, ReactNode, SyntheticEvent, FocusEvent, ForwardedRef } from 'react';
2
2
 
3
3
  /**
4
4
  * Copyright (c) Corinvo, LLC. and affiliates.
@@ -8,21 +8,135 @@ import { AriaAttributes, DOMAttributes as DOMAttributes$1, AriaRole, CSSProperti
8
8
  *
9
9
  */
10
10
 
11
- interface FocusableElement extends Element, HTMLOrSVGElement {
11
+
12
+
13
+ /**
14
+ * Props for DOM elements that may require an id.
15
+ */
16
+ interface DOMProps {
17
+ /** The unique id for the DOM element. */
18
+ id?: string | undefined;
12
19
  }
13
- interface DOMAttributes<T = FocusableElement> extends AriaAttributes, DOMAttributes$1<T> {
14
- onMouseLeave: (event: any) => void;
15
- onMouseEnter: (event: any) => void;
16
- onTouchStart: () => void;
17
- onPointerLeave: (event: any) => void;
18
- onPointerEnter: (event: any) => void;
19
- id?: string | undefined;
20
- role?: AriaRole | undefined;
21
- tabIndex?: number | undefined;
22
- style?: CSSProperties | undefined;
23
- className?: string | undefined;
20
+
21
+ /**
22
+ * Props for focusable DOM elements, extending basic DOM props.
23
+ */
24
+ interface FocusableDOMProps extends DOMProps {
25
+ /**
26
+ * Whether the element should be excluded from the tab order.
27
+ */
28
+ excludeFromTabOrder?: boolean;
24
29
  }
25
30
 
31
+ /**
32
+ * Standard DOM attributes for focusable elements, including ARIA and React DOM attributes.
33
+ *
34
+ * @template T The element type, defaults to FocusableElement.
35
+ */
36
+ interface DOMAttributes<T = FocusableElement>
37
+ extends AriaAttributes,
38
+ DOMAttributes$1<T> {
39
+ /** The unique id for the DOM element. */
40
+ id?: string | undefined;
41
+
42
+ /** The ARIA role for the element. */
43
+ role?: AriaRole | undefined;
44
+
45
+ /** The tab index of the element. */
46
+ tabIndex?: number | undefined;
47
+
48
+ /** Inline CSS styles for the element. */
49
+ style?: CSSProperties | undefined;
50
+
51
+ /** The CSS class name for the element. */
52
+ className?: string | undefined;
53
+ }
54
+
55
+ /**
56
+ * Props for anchor/link elements.
57
+ */
58
+ interface LinkDOMProps {
59
+ /** The URL to link to. */
60
+ href?: string | undefined;
61
+
62
+ /** The language of the linked resource. */
63
+ hrefLang?: string;
64
+
65
+ /** The browsing context for the link. */
66
+ target?: HTMLAttributeAnchorTarget;
67
+
68
+ /** The relationship of the linked resource. */
69
+ rel?: string;
70
+
71
+ /** Prompts the user to save the linked URL instead of navigating to it. */
72
+ download?: boolean | string;
73
+
74
+ /** Space-separated list of URLs to notify when the user follows the hyperlink. */
75
+ ping?: string;
76
+
77
+ /** Referrer policy for the link. */
78
+ referrerPolicy?: HTMLAttributeReferrerPolicy;
79
+
80
+ /** Additional router options (type depends on router implementation). */
81
+ routerOptions?: unknown;
82
+ }
83
+
84
+ /**
85
+ * Copyright (c) Corinvo, LLC. and affiliates.
86
+ *
87
+ * This source code is licensed under the MIT license found in the
88
+ * LICENSE file in the root directory of this source tree.
89
+ *
90
+ */
91
+
92
+
93
+
94
+ interface StyleRenderProps<T> {
95
+ /** The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. A function may be provided to compute the class based on component state. */
96
+ className?:
97
+ | string
98
+ | ((values: T & { defaultClassName: string | undefined }) => string);
99
+
100
+ /** The inline [style](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style) for the element. A function may be provided to compute the style based on component state. */
101
+ style?:
102
+ | CSSProperties
103
+ | ((
104
+ values: T & { defaultStyle: CSSProperties }
105
+ ) => CSSProperties | undefined);
106
+ }
107
+
108
+ interface RenderProps<T> extends StyleRenderProps<T> {
109
+ /** The children of the component. A function may be provided to alter the children based on component state. */
110
+ children?:
111
+ | ReactNode
112
+ | ((values: T | { defaultChildren: ReactNode | undefined }) => ReactNode);
113
+ }
114
+
115
+ /**
116
+ * Copyright (c) Corinvo, LLC. and affiliates.
117
+ *
118
+ * This source code is licensed under the MIT license found in the
119
+ * LICENSE file in the root directory of this source tree.
120
+ *
121
+ */
122
+
123
+ /**
124
+ * Flags indicating disabled states for different interaction types.
125
+ */
126
+ type DisabledFlags = {
127
+ /** Whether the element is generally disabled. */
128
+ general?: boolean;
129
+
130
+ /** Whether the element is disabled for form interactions. */
131
+ form?: boolean;
132
+
133
+ /** Whether the element is disabled for user interactions (e.g., pointer, keyboard). */
134
+ interactions?: boolean;
135
+
136
+ /** Custom disabled flags for additional types of interactions. */
137
+ [key: string]: boolean | undefined;
138
+ };
139
+
26
140
  /**
27
141
  * Copyright (c) Corinvo, LLC. and affiliates.
28
142
  *
@@ -30,10 +144,82 @@ interface DOMAttributes<T = FocusableElement> extends AriaAttributes, DOMAttribu
30
144
  * LICENSE file in the root directory of this source tree.
31
145
  *
32
146
  */
147
+
148
+
149
+
150
+ /**
151
+ * Extended SyntheticEvent with custom propagation control methods.
152
+ *
153
+ * @template T The type of the original SyntheticEvent.
154
+ */
155
+ type BaseEvent<T extends SyntheticEvent> = T & {
156
+ /**
157
+ * Use continuePropagation instead.
158
+ * @deprecated
159
+ */
160
+ stopPropagation(): void;
161
+
162
+ /**
163
+ * Continues propagation for the event.
164
+ */
165
+ continuePropagation(): void;
166
+ };
167
+
168
+ /**
169
+ * Event handlers for hover interactions.
170
+ */
33
171
  interface HoverEvent {
34
- onHoverStart?: (event: HoverEvent) => void;
35
- onHoverEnd?: (event: HoverEvent) => void;
36
- onHoverChange?: (isHovering: boolean) => void;
172
+ /** Called when a hover interaction starts. */
173
+ onHoverStart?: (event: HoverEvent) => void;
174
+
175
+ /** Called when a hover interaction ends. */
176
+ onHoverEnd?: (event: HoverEvent) => void;
177
+
178
+ /** Called when the hover state changes. */
179
+ onHoverChange?: (isHovering: boolean) => void;
37
180
  }
38
181
 
39
- export type { DOMAttributes, FocusableElement, HoverEvent };
182
+ /**
183
+ * Event handlers for focus interactions.
184
+ */
185
+ interface FocusEvents<Target = Element> {
186
+ /** Called when the element receives focus. */
187
+ onFocus?: (e: FocusEvent<Target>) => void;
188
+
189
+ /** Called when the element loses focus. */
190
+ onBlur?: (e: FocusEvent<Target>) => void;
191
+
192
+ /** Called when the focus state changes. */
193
+ onFocusChange?: (isFocused: boolean) => void;
194
+ }
195
+
196
+ /**
197
+ * Event handlers for keyboard interactions.
198
+ */
199
+ interface KeyboardEvents {
200
+ /** Called when a key is pressed down. */
201
+ onKeyDown?: (e: KeyboardEvent) => void;
202
+
203
+ /** Called when a key is released. */
204
+ onKeyUp?: (e: KeyboardEvent) => void;
205
+ }
206
+
207
+ /**
208
+ * Copyright (c) Corinvo, LLC. and affiliates.
209
+ *
210
+ * This source code is licensed under the MIT license found in the
211
+ * LICENSE file in the root directory of this source tree.
212
+ *
213
+ */
214
+
215
+
216
+
217
+ type SlottedContextValue<T, E = never> =
218
+ | (T & {
219
+ slots?: Record<string | symbol, T>;
220
+ ref?: E extends never ? never : ForwardedRef<E>;
221
+ })
222
+ | null
223
+ | undefined;
224
+
225
+ export type { BaseEvent, DOMAttributes, DOMProps, DisabledFlags, FocusEvents, FocusableDOMProps, HoverEvent, KeyboardEvents, LinkDOMProps, RenderProps, SlottedContextValue, StyleRenderProps };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AriaAttributes, DOMAttributes as DOMAttributes$1, AriaRole, CSSProperties } from 'react';
1
+ import { AriaAttributes, DOMAttributes as DOMAttributes$1, AriaRole, CSSProperties, HTMLAttributeAnchorTarget, HTMLAttributeReferrerPolicy, ReactNode, SyntheticEvent, FocusEvent, ForwardedRef } from 'react';
2
2
 
3
3
  /**
4
4
  * Copyright (c) Corinvo, LLC. and affiliates.
@@ -8,21 +8,135 @@ import { AriaAttributes, DOMAttributes as DOMAttributes$1, AriaRole, CSSProperti
8
8
  *
9
9
  */
10
10
 
11
- interface FocusableElement extends Element, HTMLOrSVGElement {
11
+
12
+
13
+ /**
14
+ * Props for DOM elements that may require an id.
15
+ */
16
+ interface DOMProps {
17
+ /** The unique id for the DOM element. */
18
+ id?: string | undefined;
12
19
  }
13
- interface DOMAttributes<T = FocusableElement> extends AriaAttributes, DOMAttributes$1<T> {
14
- onMouseLeave: (event: any) => void;
15
- onMouseEnter: (event: any) => void;
16
- onTouchStart: () => void;
17
- onPointerLeave: (event: any) => void;
18
- onPointerEnter: (event: any) => void;
19
- id?: string | undefined;
20
- role?: AriaRole | undefined;
21
- tabIndex?: number | undefined;
22
- style?: CSSProperties | undefined;
23
- className?: string | undefined;
20
+
21
+ /**
22
+ * Props for focusable DOM elements, extending basic DOM props.
23
+ */
24
+ interface FocusableDOMProps extends DOMProps {
25
+ /**
26
+ * Whether the element should be excluded from the tab order.
27
+ */
28
+ excludeFromTabOrder?: boolean;
24
29
  }
25
30
 
31
+ /**
32
+ * Standard DOM attributes for focusable elements, including ARIA and React DOM attributes.
33
+ *
34
+ * @template T The element type, defaults to FocusableElement.
35
+ */
36
+ interface DOMAttributes<T = FocusableElement>
37
+ extends AriaAttributes,
38
+ DOMAttributes$1<T> {
39
+ /** The unique id for the DOM element. */
40
+ id?: string | undefined;
41
+
42
+ /** The ARIA role for the element. */
43
+ role?: AriaRole | undefined;
44
+
45
+ /** The tab index of the element. */
46
+ tabIndex?: number | undefined;
47
+
48
+ /** Inline CSS styles for the element. */
49
+ style?: CSSProperties | undefined;
50
+
51
+ /** The CSS class name for the element. */
52
+ className?: string | undefined;
53
+ }
54
+
55
+ /**
56
+ * Props for anchor/link elements.
57
+ */
58
+ interface LinkDOMProps {
59
+ /** The URL to link to. */
60
+ href?: string | undefined;
61
+
62
+ /** The language of the linked resource. */
63
+ hrefLang?: string;
64
+
65
+ /** The browsing context for the link. */
66
+ target?: HTMLAttributeAnchorTarget;
67
+
68
+ /** The relationship of the linked resource. */
69
+ rel?: string;
70
+
71
+ /** Prompts the user to save the linked URL instead of navigating to it. */
72
+ download?: boolean | string;
73
+
74
+ /** Space-separated list of URLs to notify when the user follows the hyperlink. */
75
+ ping?: string;
76
+
77
+ /** Referrer policy for the link. */
78
+ referrerPolicy?: HTMLAttributeReferrerPolicy;
79
+
80
+ /** Additional router options (type depends on router implementation). */
81
+ routerOptions?: unknown;
82
+ }
83
+
84
+ /**
85
+ * Copyright (c) Corinvo, LLC. and affiliates.
86
+ *
87
+ * This source code is licensed under the MIT license found in the
88
+ * LICENSE file in the root directory of this source tree.
89
+ *
90
+ */
91
+
92
+
93
+
94
+ interface StyleRenderProps<T> {
95
+ /** The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. A function may be provided to compute the class based on component state. */
96
+ className?:
97
+ | string
98
+ | ((values: T & { defaultClassName: string | undefined }) => string);
99
+
100
+ /** The inline [style](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style) for the element. A function may be provided to compute the style based on component state. */
101
+ style?:
102
+ | CSSProperties
103
+ | ((
104
+ values: T & { defaultStyle: CSSProperties }
105
+ ) => CSSProperties | undefined);
106
+ }
107
+
108
+ interface RenderProps<T> extends StyleRenderProps<T> {
109
+ /** The children of the component. A function may be provided to alter the children based on component state. */
110
+ children?:
111
+ | ReactNode
112
+ | ((values: T | { defaultChildren: ReactNode | undefined }) => ReactNode);
113
+ }
114
+
115
+ /**
116
+ * Copyright (c) Corinvo, LLC. and affiliates.
117
+ *
118
+ * This source code is licensed under the MIT license found in the
119
+ * LICENSE file in the root directory of this source tree.
120
+ *
121
+ */
122
+
123
+ /**
124
+ * Flags indicating disabled states for different interaction types.
125
+ */
126
+ type DisabledFlags = {
127
+ /** Whether the element is generally disabled. */
128
+ general?: boolean;
129
+
130
+ /** Whether the element is disabled for form interactions. */
131
+ form?: boolean;
132
+
133
+ /** Whether the element is disabled for user interactions (e.g., pointer, keyboard). */
134
+ interactions?: boolean;
135
+
136
+ /** Custom disabled flags for additional types of interactions. */
137
+ [key: string]: boolean | undefined;
138
+ };
139
+
26
140
  /**
27
141
  * Copyright (c) Corinvo, LLC. and affiliates.
28
142
  *
@@ -30,10 +144,82 @@ interface DOMAttributes<T = FocusableElement> extends AriaAttributes, DOMAttribu
30
144
  * LICENSE file in the root directory of this source tree.
31
145
  *
32
146
  */
147
+
148
+
149
+
150
+ /**
151
+ * Extended SyntheticEvent with custom propagation control methods.
152
+ *
153
+ * @template T The type of the original SyntheticEvent.
154
+ */
155
+ type BaseEvent<T extends SyntheticEvent> = T & {
156
+ /**
157
+ * Use continuePropagation instead.
158
+ * @deprecated
159
+ */
160
+ stopPropagation(): void;
161
+
162
+ /**
163
+ * Continues propagation for the event.
164
+ */
165
+ continuePropagation(): void;
166
+ };
167
+
168
+ /**
169
+ * Event handlers for hover interactions.
170
+ */
33
171
  interface HoverEvent {
34
- onHoverStart?: (event: HoverEvent) => void;
35
- onHoverEnd?: (event: HoverEvent) => void;
36
- onHoverChange?: (isHovering: boolean) => void;
172
+ /** Called when a hover interaction starts. */
173
+ onHoverStart?: (event: HoverEvent) => void;
174
+
175
+ /** Called when a hover interaction ends. */
176
+ onHoverEnd?: (event: HoverEvent) => void;
177
+
178
+ /** Called when the hover state changes. */
179
+ onHoverChange?: (isHovering: boolean) => void;
37
180
  }
38
181
 
39
- export type { DOMAttributes, FocusableElement, HoverEvent };
182
+ /**
183
+ * Event handlers for focus interactions.
184
+ */
185
+ interface FocusEvents<Target = Element> {
186
+ /** Called when the element receives focus. */
187
+ onFocus?: (e: FocusEvent<Target>) => void;
188
+
189
+ /** Called when the element loses focus. */
190
+ onBlur?: (e: FocusEvent<Target>) => void;
191
+
192
+ /** Called when the focus state changes. */
193
+ onFocusChange?: (isFocused: boolean) => void;
194
+ }
195
+
196
+ /**
197
+ * Event handlers for keyboard interactions.
198
+ */
199
+ interface KeyboardEvents {
200
+ /** Called when a key is pressed down. */
201
+ onKeyDown?: (e: KeyboardEvent) => void;
202
+
203
+ /** Called when a key is released. */
204
+ onKeyUp?: (e: KeyboardEvent) => void;
205
+ }
206
+
207
+ /**
208
+ * Copyright (c) Corinvo, LLC. and affiliates.
209
+ *
210
+ * This source code is licensed under the MIT license found in the
211
+ * LICENSE file in the root directory of this source tree.
212
+ *
213
+ */
214
+
215
+
216
+
217
+ type SlottedContextValue<T, E = never> =
218
+ | (T & {
219
+ slots?: Record<string | symbol, T>;
220
+ ref?: E extends never ? never : ForwardedRef<E>;
221
+ })
222
+ | null
223
+ | undefined;
224
+
225
+ export type { BaseEvent, DOMAttributes, DOMProps, DisabledFlags, FocusEvents, FocusableDOMProps, HoverEvent, KeyboardEvents, LinkDOMProps, RenderProps, SlottedContextValue, StyleRenderProps };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var m=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var b=(r,o,p,f)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of x(o))!a.call(r,e)&&e!==p&&m(r,e,{get:()=>o[e],enumerable:!(f=t(o,e))||f.enumerable});return r};var c=r=>b(m({},"__esModule",{value:!0}),r);var d={};module.exports=c(d);
1
+ "use strict";var r=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var s=(e,o,m,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let p of x(o))!y.call(e,p)&&p!==m&&r(e,p,{get:()=>o[p],enumerable:!(t=f(o,p))||t.enumerable});return e};var n=e=>s(r({},"__esModule",{value:!0}),e);var a={};module.exports=n(a);
package/package.json CHANGED
@@ -1,7 +1,14 @@
1
1
  {
2
2
  "name": "@necto-react/types",
3
- "version": "2.0.0",
3
+ "version": "2.3.0",
4
4
  "description": "",
5
+ "files": [
6
+ "dist",
7
+ "README.md"
8
+ ],
9
+ "types": "dist/index.d.ts",
10
+ "main": "./dist/index.js",
11
+ "module": "./dist/index.mjs",
5
12
  "author": "Corinvo OSS Team",
6
13
  "license": "MIT",
7
14
  "devDependencies": {
@@ -1,20 +0,0 @@
1
-
2
- 
3
- > @necto-react/types@1.0.0 build /Users/botiszabo/Developer/necto/node-kit/packages/necto-react-types
4
- > tsup --minify
5
-
6
- CLI Building entry: src/index.ts
7
- CLI Using tsconfig: tsconfig.json
8
- CLI tsup v8.4.0
9
- CLI Using tsup config: /Users/botiszabo/Developer/necto/node-kit/packages/necto-react-types/tsup.config.ts
10
- CLI Target: esnext
11
- CJS Build start
12
- ESM Build start
13
- ESM dist/index.mjs 0 B
14
- ESM ⚡️ Build success in 21ms
15
- CJS dist/index.js 397.00 B
16
- CJS ⚡️ Build success in 25ms
17
- DTS Build start
18
- DTS ⚡️ Build success in 827ms
19
- DTS dist/index.d.ts 1.20 KB
20
- DTS dist/index.d.mts 1.20 KB
package/CHANGELOG.md DELETED
@@ -1,7 +0,0 @@
1
- # @necto-react/types
2
-
3
- ## 2.0.0
4
-
5
- ### Major Changes
6
-
7
- - fixed packages
package/jsr.json DELETED
@@ -1,18 +0,0 @@
1
- {
2
- "name": "@necto-react/types",
3
- "version": "1.0.0",
4
- "description": "Necto's library for providing typing interfaces and definitions for React applications.",
5
- "exports": {
6
- ".": {
7
- "types": "dist/index.d.ts",
8
- "import": "./dist/index.mjs",
9
- "require": "./dist/index.cjs"
10
- }
11
- },
12
- "files": [
13
- "dist",
14
- "README.md"
15
- ],
16
- "license": "MIT",
17
- "author": "Corinvo OSS Team"
18
- }
package/src/dom.ts DELETED
@@ -1,30 +0,0 @@
1
- /**
2
- * Copyright (c) Corinvo, LLC. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- import {
10
- AriaRole,
11
- CSSProperties,
12
- AriaAttributes,
13
- DOMAttributes as ReactDOMAttributes,
14
- } from "react";
15
-
16
- export interface FocusableElement extends Element, HTMLOrSVGElement {};
17
-
18
- export interface DOMAttributes<T = FocusableElement> extends AriaAttributes, ReactDOMAttributes<T> {
19
- onMouseLeave: (event: any) => void;
20
- onMouseEnter: (event: any) => void;
21
- onTouchStart: () => void;
22
- onPointerLeave: (event: any) => void;
23
- onPointerEnter: (event: any) => void;
24
-
25
- id?: string | undefined,
26
- role?: AriaRole | undefined,
27
- tabIndex?: number | undefined,
28
- style?: CSSProperties | undefined,
29
- className?: string | undefined
30
- };
package/src/events.ts DELETED
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) Corinvo, LLC. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export interface HoverEvent {
10
- onHoverStart?: (event: HoverEvent) => void,
11
- onHoverEnd?: (event: HoverEvent) => void,
12
- onHoverChange?: (isHovering: boolean) => void
13
- }
package/src/index.ts DELETED
@@ -1,10 +0,0 @@
1
- /**
2
- * Copyright (c) Corinvo, LLC. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export * from './dom';
10
- export * from './events';
package/tsconfig.json DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ESNext",
4
- "module": "ESNext",
5
- "jsx": "react-jsx",
6
- "declaration": true,
7
- "outDir": "./dist",
8
- "rootDir": "./src",
9
- "strict": true,
10
- "moduleResolution": "node",
11
- "esModuleInterop": true,
12
- "forceConsistentCasingInFileNames": true,
13
- "isolatedModules": true,
14
- "noEmit": false,
15
- "skipLibCheck": true
16
- },
17
- "include": [
18
- "src"
19
- ],
20
- "exclude": [
21
- "node_modules",
22
- "dist"
23
- ]
24
- }
package/tsup.config.ts DELETED
@@ -1,10 +0,0 @@
1
- import { defineConfig } from 'tsup';
2
-
3
- export default defineConfig([
4
- {
5
- entry: ['src/index.ts'],
6
- format: ['cjs', 'esm'],
7
- dts: true,
8
- sourcemap: false,
9
- },
10
- ]);