Quellcode durchsuchen

build(settings): bundle the package root and invariant companion independently

Yichen Jiang vor 2 Monaten
Ursprung
Commit
353f5c0a39
1 geänderte Dateien mit 25 neuen und 0 gelöschten Zeilen
  1. 25 0
      packages/settings/settings/tsdown.config.ts

+ 25 - 0
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,
+  },
+])