feat(invariants): add package-owned service seam
This commit is contained in:
27
packages/core/scope/tsdown.config.ts
Normal file
27
packages/core/scope/tsdown.config.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
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,
|
||||
// Preserve the root entry's carrier WeakMap identity across bundles.
|
||||
deps: { neverBundle: ['@deepseek-ai/dsh-scope'] },
|
||||
},
|
||||
])
|
||||
Reference in New Issue
Block a user