Kaynağa Gözat

chore(core-typings): migrate build to tsdown

xingyu4j 3 ay önce
ebeveyn
işleme
ed3cd2fe3b

+ 3 - 3
packages/@core/base/typings/package.json

@@ -11,7 +11,7 @@
   "license": "MIT",
   "type": "module",
   "scripts": {
-    "build": "tsdown"
+    "build": "pnpm exec tsdown"
   },
   "files": [
     "dist",
@@ -19,7 +19,7 @@
   ],
   "main": "./dist/index.mjs",
   "module": "./dist/index.mjs",
-  "types": "./dist/index.d.mts",
+  "types": "./dist/index.d.ts",
   "exports": {
     ".": {
       "types": "./src/index.ts",
@@ -33,7 +33,7 @@
   "publishConfig": {
     "exports": {
       ".": {
-        "types": "./dist/index.d.mts",
+        "types": "./dist/index.d.ts",
         "default": "./dist/index.mjs"
       }
     }

+ 3 - 0
packages/@core/base/typings/tsdown.config.ts

@@ -5,4 +5,7 @@ export default defineConfig({
   dts: true,
   entry: ['src/index.ts'],
   format: ['esm'],
+  outExtensions: () => ({
+    dts: '.d.ts',
+  }),
 });