Skip to content

Commit 771453e

Browse files
committed
fix: missing dts
1 parent 7ccda82 commit 771453e

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
},
1515
"bugs": "https://github.com/unplugin/unplugin-icons/issues",
1616
"exports": {
17-
".": "./dist/index.js",
18-
"./esbuild": "./dist/esbuild.js",
19-
"./loaders": "./dist/loaders.js",
20-
"./nuxt": "./dist/nuxt.js",
21-
"./resolver": "./dist/resolver.js",
22-
"./rolldown": "./dist/rolldown.js",
23-
"./rollup": "./dist/rollup.js",
24-
"./rspack": "./dist/rspack.js",
25-
"./types": "./dist/types.js",
26-
"./vite": "./dist/vite.js",
27-
"./webpack": "./dist/webpack.js",
17+
".": "./dist/index.mjs",
18+
"./esbuild": "./dist/esbuild.mjs",
19+
"./loaders": "./dist/loaders.mjs",
20+
"./nuxt": "./dist/nuxt.mjs",
21+
"./resolver": "./dist/resolver.mjs",
22+
"./rolldown": "./dist/rolldown.mjs",
23+
"./rollup": "./dist/rollup.mjs",
24+
"./rspack": "./dist/rspack.mjs",
25+
"./types": "./dist/types.mjs",
26+
"./vite": "./dist/vite.mjs",
27+
"./webpack": "./dist/webpack.mjs",
2828
"./package.json": "./package.json",
2929
"./types/astro": {
3030
"types": "./types/astro.d.ts"
@@ -72,7 +72,7 @@
7272
"typesVersions": {
7373
"*": {
7474
"*": [
75-
"./dist/*",
75+
"./dist/*.d.mts",
7676
"./*"
7777
]
7878
}

tsdown.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { defineConfig } from 'tsdown'
33

44
export default defineConfig({
55
entry: ['src/*.ts'],
6-
format: ['esm'],
7-
external: ['vue', '@iconify/json/package.json'],
8-
fixedExtension: false,
6+
dts: true,
7+
external: ['vue', 'vite', 'rollup', '@iconify/json/package.json'],
8+
inlineOnly: ['@antfu/utils'],
99
exports: {
1010
async customExports(exp) {
1111
// replace this for await with `import { glob } from 'node:fs/promises'

0 commit comments

Comments
 (0)