From c79586e32860b470a4939ddbdb5c3e63dcb7f10b Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Sat, 18 Apr 2026 15:44:57 -0700 Subject: [PATCH 1/2] chore: add build script to tsdown config --- packages/config/tsdown-config/package.json | 11 ++++++++++- packages/config/tsdown-config/{ => src}/index.ts | 0 packages/config/tsdown-config/tsconfig.json | 9 +++++++++ pnpm-lock.yaml | 6 +++++- 4 files changed, 24 insertions(+), 2 deletions(-) rename packages/config/tsdown-config/{ => src}/index.ts (100%) create mode 100644 packages/config/tsdown-config/tsconfig.json diff --git a/packages/config/tsdown-config/package.json b/packages/config/tsdown-config/package.json index 5352b791e..e4abfab72 100644 --- a/packages/config/tsdown-config/package.json +++ b/packages/config/tsdown-config/package.json @@ -4,7 +4,16 @@ "private": true, "type": "module", "license": "MIT", + "scripts": { + "build": "tsc" + }, + "devDependencies": { + "@zenstackhq/typescript-config": "workspace:*" + }, "exports": { - ".": "./index.ts" + ".": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + } } } diff --git a/packages/config/tsdown-config/index.ts b/packages/config/tsdown-config/src/index.ts similarity index 100% rename from packages/config/tsdown-config/index.ts rename to packages/config/tsdown-config/src/index.ts diff --git a/packages/config/tsdown-config/tsconfig.json b/packages/config/tsdown-config/tsconfig.json new file mode 100644 index 000000000..cd4bddb1e --- /dev/null +++ b/packages/config/tsdown-config/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "@zenstackhq/typescript-config/base.json", + "compilerOptions": { + "outDir": "dist", + "rootDir": "src", + "noEmit": false + }, + "include": ["src/**/*"] +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 929366ce6..9f654c7e0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -452,7 +452,11 @@ importers: packages/config/eslint-config: {} - packages/config/tsdown-config: {} + packages/config/tsdown-config: + devDependencies: + '@zenstackhq/typescript-config': + specifier: workspace:* + version: link:../typescript-config packages/config/typescript-config: {} From c3db1d2938f3535677378b214d02a3e32e26fff5 Mon Sep 17 00:00:00 2001 From: Yiming Cao Date: Sat, 18 Apr 2026 16:30:04 -0700 Subject: [PATCH 2/2] Update packages/config/tsdown-config/package.json Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- packages/config/tsdown-config/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/config/tsdown-config/package.json b/packages/config/tsdown-config/package.json index e4abfab72..07d66e436 100644 --- a/packages/config/tsdown-config/package.json +++ b/packages/config/tsdown-config/package.json @@ -12,8 +12,8 @@ }, "exports": { ".": { - "default": "./dist/index.js", - "types": "./dist/index.d.ts" + "types": "./dist/index.d.ts", + "default": "./dist/index.js" } } }