vendor: support native TypeScript source loading

This commit is contained in:
imccyu
2026-07-28 23:03:23 +08:00
parent eb38a365dc
commit 5ea161fa68
23 changed files with 77 additions and 72 deletions

View File

@@ -1,10 +1,9 @@
import { defineConfig } from 'tsdown'
/**
* schemastery has no `"type": "module"` and publishes dual-format output
* (package.json: main → lib/index.cjs, module → lib/index.mjs). The entry is
* the JS emitted by tsc under lib/types; pin the bundled extensions
* explicitly because the defaults for a CommonJS package would emit .mjs/.js.
* Schemastery publishes dual-format output (package.json: main → lib/index.cjs,
* module → lib/index.mjs). The entry is the JS emitted by tsc under lib/types;
* pin the bundled extensions explicitly so the package retains both formats.
*/
export default defineConfig({
entry: ['lib/types/index.js'],