We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2f4b50 commit 9d2d66aCopy full SHA for 9d2d66a
package.json
@@ -14,15 +14,18 @@
14
"exports": {
15
".": {
16
"import": {
17
+ "types": "./dist/index.d.ts",
18
"default": "./dist/lib.js"
19
},
20
"require": {
21
+ "types": "./dist/index.d.cts",
22
"default": "./dist/lib.cjs"
23
}
24
25
26
"main": "./dist/lib.cjs",
27
"module": "./dist/lib.js",
28
29
"bin": {
30
"sta": "./dist/cli.js",
31
"swagger-typescript-api": "./dist/cli.js"
tsup.config.ts
@@ -5,6 +5,12 @@ export default defineConfig({
5
lib: "src/index.ts",
6
cli: "index.ts",
7
8
+ dts: {
9
+ entry: "src/index.ts",
10
+ compilerOptions: {
11
+ noCheck: true,
12
+ },
13
clean: true,
format: ["esm", "cjs"],
minify: true,
0 commit comments