소스 검색

chore(turbo-run): migrate build to tsdown

xingyu4j 3 달 전
부모
커밋
af09d652a3
3개의 변경된 파일13개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 7
      scripts/turbo-run/build.config.ts
  2. 2 1
      scripts/turbo-run/package.json
  3. 11 0
      scripts/turbo-run/tsdown.config.ts

+ 0 - 7
scripts/turbo-run/build.config.ts

@@ -1,7 +0,0 @@
-import { defineBuildConfig } from 'unbuild';
-
-export default defineBuildConfig({
-  clean: true,
-  declaration: true,
-  entries: ['src/index'],
-});

+ 2 - 1
scripts/turbo-run/package.json

@@ -5,7 +5,8 @@
   "license": "MIT",
   "type": "module",
   "scripts": {
-    "stub": "pnpm unbuild --stub"
+    "build": "pnpm exec tsdown",
+    "stub": "pnpm exec tsdown"
   },
   "files": [
     "dist"

+ 11 - 0
scripts/turbo-run/tsdown.config.ts

@@ -0,0 +1,11 @@
+import { defineConfig } from 'tsdown';
+
+export default defineConfig({
+  clean: true,
+  dts: true,
+  entry: ['src/index.ts'],
+  format: ['esm'],
+  outExtensions: () => ({
+    dts: '.d.ts',
+  }),
+});