refactor: rename build typings dir to types

This commit is contained in:
Tianyi Cui
2026-06-20 00:26:02 +08:00
parent ed94daed9e
commit 7f131dd4d8
65 changed files with 166 additions and 166 deletions

View File

@@ -3,11 +3,11 @@ 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/typings; pin the bundled extensions
* the JS emitted by tsc under lib/types; pin the bundled extensions
* explicitly because the defaults for a CommonJS package would emit .mjs/.js.
*/
export default defineConfig({
entry: ['lib/typings/index.js'],
entry: ['lib/types/index.js'],
outDir: 'lib',
format: ['esm', 'cjs'],
platform: 'node',