Skip to content

Commit 62a5a3b

Browse files
43081jdreyfus92
andauthored
chore: export types before module (#13)
tsup currently (and correctly) warns that our `types` exports come after our module exports, so are never read. If we place them first, they will be resolved for both the import and require, and the warnings will go away. Co-authored-by: Paul Valladares <85648028+dreyfus92@users.noreply.github.com>
1 parent 7ececba commit 62a5a3b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@
3838
},
3939
"exports": {
4040
".": {
41+
"types": "./dist/index.d.ts",
4142
"import": "./dist/index.js",
42-
"require": "./dist/index.cjs",
43-
"types": "./dist/index.d.ts"
43+
"require": "./dist/index.cjs"
4444
},
4545
"./citty": {
46+
"types": "./dist/citty.d.ts",
4647
"import": "./dist/citty.js",
47-
"require": "./dist/citty.cjs",
48-
"types": "./dist/citty.d.ts"
48+
"require": "./dist/citty.cjs"
4949
},
5050
"./cac": {
51+
"types": "./dist/cac.d.ts",
5152
"import": "./dist/cac.js",
52-
"require": "./dist/cac.cjs",
53-
"types": "./dist/cac.d.ts"
53+
"require": "./dist/cac.cjs"
5454
}
5555
},
5656
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"

0 commit comments

Comments
 (0)