From 353f5c0a39bcacdc1722cd9c2a93c803e3e5f0c2 Mon Sep 17 00:00:00 2001 From: Yichen Jiang Date: Thu, 30 Jul 2026 10:40:45 +0800 Subject: [PATCH] build(settings): bundle the package root and invariant companion independently --- packages/settings/settings/tsdown.config.ts | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 packages/settings/settings/tsdown.config.ts diff --git a/packages/settings/settings/tsdown.config.ts b/packages/settings/settings/tsdown.config.ts new file mode 100644 index 0000000000..e92275a7f5 --- /dev/null +++ b/packages/settings/settings/tsdown.config.ts @@ -0,0 +1,25 @@ +import { defineConfig } from 'tsdown' + +/** Build the package root and optional invariant companion as independent bundles. */ +export default defineConfig([ + { + entry: ['lib/types/index.js'], + outDir: 'lib', + format: ['esm'], + platform: 'node', + target: 'es2024', + fixedExtension: false, + dts: false, + clean: false, + }, + { + entry: ['lib/types/invariant.js'], + outDir: 'lib', + format: ['esm'], + platform: 'node', + target: 'es2024', + fixedExtension: false, + dts: false, + clean: false, + }, +])