vendor: support native TypeScript source loading
This commit is contained in:
7
vendor/schemastery/tsdown.config.ts
vendored
7
vendor/schemastery/tsdown.config.ts
vendored
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user