refactor: rename build typings dir to types
This commit is contained in:
6
vendor/schemastery/package.json
vendored
6
vendor/schemastery/package.json
vendored
@@ -5,12 +5,12 @@
|
||||
"private": true,
|
||||
"main": "lib/index.cjs",
|
||||
"module": "lib/index.mjs",
|
||||
"types": "lib/typings/index.d.ts",
|
||||
"types": "lib/types/index.d.ts",
|
||||
"files": [
|
||||
"lib/index.mjs",
|
||||
"lib/index.cjs",
|
||||
"lib/typings/**/*.d.ts",
|
||||
"lib/typings/**/*.d.ts.map",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"src"
|
||||
],
|
||||
"author": "Shigma <shigma10826@gmail.com>",
|
||||
|
||||
2
vendor/schemastery/tsconfig.json
vendored
2
vendor/schemastery/tsconfig.json
vendored
@@ -2,7 +2,7 @@
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "lib/typings",
|
||||
"outDir": "lib/types",
|
||||
"module": "preserve",
|
||||
"noUncheckedIndexedAccess": false,
|
||||
"exactOptionalPropertyTypes": false,
|
||||
|
||||
4
vendor/schemastery/tsdown.config.ts
vendored
4
vendor/schemastery/tsdown.config.ts
vendored
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user