feat(cordis): add repository package cache

This commit is contained in:
Tianyi Cui
2026-07-30 03:45:49 +08:00
parent f941ba1b5f
commit fd4d369907
14 changed files with 482 additions and 6 deletions

18
vendor/loader/tsdown.config.ts vendored Normal file
View File

@@ -0,0 +1,18 @@
import { defineConfig } from 'tsdown'
/** Keep the browser-reachable Loader entry separate from the Node-only repository cache. */
const shared = {
outDir: 'lib',
format: ['esm'],
platform: 'node',
target: 'es2024',
fixedExtension: false,
outputOptions: { codeSplitting: false },
dts: false,
clean: false,
} as const
export default defineConfig([
{ ...shared, entry: ['lib/types/index.js'] },
{ ...shared, entry: ['lib/types/repository.js'] },
])