diff --git a/AGENTS.md b/AGENTS.md index 4bb814cab7..f9631fed4d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -87,7 +87,7 @@ pnpm run test:snapshot:record # re-record fixtures + goldens against the real pnpm run typecheck # tsc -b tsconfig.json pnpm run lint # eslint . pnpm run lint:fix # eslint . --fix -pnpm run build # tsc emits lib/typings, then tsdown bundles runtime lib/index.* +pnpm run build # tsc emits lib/types, then tsdown bundles runtime lib/index.* pnpm run knip # dead-code / unused-dependency check pnpm run publint # package.json publish-correctness check (publishable packages/*) pnpm run hygiene # knip + publint + workspace constraints @@ -126,7 +126,7 @@ Dev/test/demo run **unbuilt** via tsx + the source `paths` map in the root `tsco ## Conventions - **Package naming**: every npm package in this repo is `@deepseek-ai/dsh-` (vendored packages keep their upstream names and are `private: true`). -- **ESM everywhere** (`"type": "module"`); imports between workspace packages use package names, never relative paths across package boundaries. In-package relative imports are extensionless so generated `.d.ts` files stay extensionless; `lib/typings/**/*.js` is a bundler-only intermediate, not a Node ESM entrypoint. +- **ESM everywhere** (`"type": "module"`); imports between workspace packages use package names, never relative paths across package boundaries. In-package relative imports are extensionless so generated `.d.ts` files stay extensionless; `lib/types/**/*.js` is a bundler-only intermediate, not a Node ESM entrypoint. - **`cordis` is a peerDependency** (+ devDependency) of every harness package, mirroring upstream convention. - **Registrations are effects**: anything a plugin contributes (adapter, tool, section, agent, event listener) goes through `ctx.effect()` / `ctx.on()` so disposal and HMR work. If you write a registry, `register()` must return the disposer. - **Typed events via declaration merging**: services declare their events in `declare module 'cordis' { interface Events { … } }`, and their ctx key in `interface Context`. Extensible unions use the merge-extensible-map pattern (see `ContentBlockMap`, `MessageSourceMap`). diff --git a/docs/cookbook/adding-a-package.md b/docs/cookbook/adding-a-package.md index c9962f27a1..dac46e4db6 100644 --- a/docs/cookbook/adding-a-package.md +++ b/docs/cookbook/adding-a-package.md @@ -7,7 +7,7 @@ The file-by-file checklist for a new `@deepseek-ai/dsh-` package. (Verifie ``` packages// package.json # copy from packages/tools, adjust name/description/deps - tsconfig.json # extends ../../tsconfig.base.json, rootDir src, outDir lib/typings, + tsconfig.json # extends ../../tsconfig.base.json, rootDir src, outDir lib/types, # references: vendor/cosmokit, vendor/cordis (+ vendor/schemastery # if you use Config, + ../ for each dsh dependency) src/index.ts # service default export or plugin (name/inject/apply/Config) @@ -15,7 +15,7 @@ packages// README.md # service API, events, extension points, design notes ``` -package.json invariants (enforced by `pnpm run constraints` / `scripts/check-workspace-constraints.ts`): `private: true`, `version: 0.0.1`, `type: module`, `main: "lib/index.js"`, `types: "lib/typings/index.d.ts"`, `exports["."].types: "./lib/typings/index.d.ts"`, `exports["."].default: "./lib/index.js"`, `cordis` in BOTH peerDependencies and devDependencies (same range). Mirror every dsh peer dependency in devDependencies. `schemastery` goes in `dependencies` (it is a runtime validator), matching agent-loop. The `files` list is precise: `lib/index.js`, `lib/typings/**/*.d.ts`, `lib/typings/**/*.d.ts.map`, and `src`; do not publish `lib/typings` JS/map intermediates or stale root declaration files. +package.json invariants (enforced by `pnpm run constraints` / `scripts/check-workspace-constraints.ts`): `private: true`, `version: 0.0.1`, `type: module`, `main: "lib/index.js"`, `types: "lib/types/index.d.ts"`, `exports["."].types: "./lib/types/index.d.ts"`, `exports["."].default: "./lib/index.js"`, `cordis` in BOTH peerDependencies and devDependencies (same range). Mirror every dsh peer dependency in devDependencies. `schemastery` goes in `dependencies` (it is a runtime validator), matching agent-loop. The `files` list is precise: `lib/index.js`, `lib/types/**/*.d.ts`, `lib/types/**/*.d.ts.map`, and `src`; do not publish `lib/types` JS or JS-map intermediates or stale root declaration files. ## 2. Register it in the root configs diff --git a/docs/cookbook/adding-a-vendored-package.md b/docs/cookbook/adding-a-vendored-package.md index ed54a0a578..c45427e0b6 100644 --- a/docs/cookbook/adding-a-vendored-package.md +++ b/docs/cookbook/adding-a-vendored-package.md @@ -12,13 +12,13 @@ vendor// README.md LICENSE # if upstream ships them ``` -`tsconfig.json` mirrors the other vendored packages — `rootDir: src`, `outDir: lib/typings`, the strictness relaxations upstream code needs, and a `references` entry for every other vendored package it imports: +`tsconfig.json` mirrors the other vendored packages — `rootDir: src`, `outDir: lib/types`, the strictness relaxations upstream code needs, and a `references` entry for every other vendored package it imports: ```jsonc { "extends": "../../tsconfig.base.json", "compilerOptions": { - "rootDir": "src", "outDir": "lib/typings", + "rootDir": "src", "outDir": "lib/types", "noUncheckedIndexedAccess": false, "exactOptionalPropertyTypes": false, "noImplicitOverride": false, "noUnusedLocals": false, "noUnusedParameters": false }, @@ -27,7 +27,7 @@ vendor// } ``` -`package.json` invariants: `"private": true` (vendored packages are never published), keep upstream's `name`/`version`/`exports`/`type`, point declaration metadata at `lib/typings`, publish `.d.ts` and `.d.ts.map` declaration outputs, and list its cordis deps in `peerDependencies` (matching the upstream manifest). Transitive upstream deps must themselves be vendored or already present — vendoring one package often means vendoring its dependency tree (e.g. `@cordisjs/plugin-http` pulls `@cordisjs/fetch-file`). +`package.json` invariants: `"private": true` (vendored packages are never published), keep upstream's `name`/`version`/`exports`/`type`, point declaration metadata at `lib/types`, publish `.d.ts` and `.d.ts.map` declaration outputs, and list its cordis deps in `peerDependencies` (matching the upstream manifest). Transitive upstream deps must themselves be vendored or already present — vendoring one package often means vendoring its dependency tree (e.g. `@cordisjs/plugin-http` pulls `@cordisjs/fetch-file`). ## 2. Register it in the root configs @@ -39,7 +39,7 @@ vendor// | `vendor/README.md` | add a manifest table row (dir, npm name, version, upstream repo, commit SHA) and log any local modifications | | `scripts/publint-all.ts` | only if the vendored package is itself published from here (vendored deps normally are not — skip) | -Covered automatically by globs — no edits needed: root `package.json` workspaces (`vendor/*`), `tsdown.config.ts`, `vitest.config.ts`, `eslint.config.mjs`. A per-package `vendor//tsdown.config.ts` is needed ONLY if the build shape diverges from the root default (dual ESM/CJS or multiple entries — see `vendor/schemastery` and `vendor/logger-console`); its entry should read the JS emitted under `lib/typings`. +Covered automatically by globs — no edits needed: root `package.json` workspaces (`vendor/*`), `tsdown.config.ts`, `vitest.config.ts`, `eslint.config.mjs`. A per-package `vendor//tsdown.config.ts` is needed ONLY if the build shape diverges from the root default (dual ESM/CJS or multiple entries — see `vendor/schemastery` and `vendor/logger-console`); its entry should read the JS emitted under `lib/types`. ## 3. Mind the manifest guard diff --git a/docs/development.md b/docs/development.md index 700b25251d..83d1cb3fac 100644 --- a/docs/development.md +++ b/docs/development.md @@ -99,7 +99,7 @@ pnpm run verify-md-links # fail on broken relative Markdown links in checked do pnpm run doc-sync # doc-typecheck, event taxonomy, markdown wrap, and link verification pnpm run gen-module-graph # regenerate docs/module-graph.md from package peerDeps pnpm run verify-module-graph # fail if docs/module-graph.md is stale -pnpm run build # emit lib/typings intermediates, then bundle lib/index.* runtime files +pnpm run build # emit lib/types intermediates, then bundle lib/index.* runtime files pnpm run hygiene # knip, publint, and workspace constraints ``` diff --git a/docs/rfc/implemented/2026-06-11-tsdown-over-dumble.md b/docs/rfc/implemented/2026-06-11-tsdown-over-dumble.md index bd69ebbf31..dc028d7e9b 100644 --- a/docs/rfc/implemented/2026-06-11-tsdown-over-dumble.md +++ b/docs/rfc/implemented/2026-06-11-tsdown-over-dumble.md @@ -15,7 +15,7 @@ Build output currently matters only for `pnpm run build` + publint (nothing publ Replace dumble with **tsdown** (rolldown-based, ~2.5M downloads/week, VoidZero-backed, actively released): - Root `tsdown.config.ts` with `workspace: ['vendor/*', 'packages/*']` (explicit globs, not `workspace: true`, which would also pick up `examples/*` — they have package.json files but are not pnpm workspaces). -- Shared shape: entry `lib/typings/index.js`, `outDir: 'lib'`, ESM, `platform: node`, `target: es2024`, `fixedExtension: false` (keeps `.js` for `"type": "module"` packages), `dts: false` (tsc -b owns declarations), `clean: false` (lib/ also holds TSC's `lib/typings` intermediate tree). The entry was originally `src/index.ts`; the [TSC-first build RFC](2026-06-17-ts-build-config.md) later moved tsdown to bundling TSC-emitted JS so TypeScript transform behavior comes from one compiler. +- Shared shape: entry `lib/types/index.js`, `outDir: 'lib'`, ESM, `platform: node`, `target: es2024`, `fixedExtension: false` (keeps `.js` for `"type": "module"` packages), `dts: false` (tsc -b owns declarations), `clean: false` (lib/ also holds TSC's `lib/types` intermediate tree). The entry was originally `src/index.ts`; the [TSC-first build RFC](2026-06-17-ts-build-config.md) later moved tsdown to bundling TSC-emitted JS so TypeScript transform behavior comes from one compiler. - Two per-package overrides in vendor/ (ours, like the regenerated tsconfigs; logged in vendor/README.md): schemastery (dual `.mjs`/`.cjs` via `outExtensions`), logger-console (two single-entry passes so the shared base class is inlined into each entry instead of a hash-named chunk, matching upstream's published shape). - `scripts/build.ts` deleted; `pnpm run build` = `tsc -b tsconfig.build.json && tsdown`. @@ -23,4 +23,4 @@ Alternatives considered: **direct esbuild script** (most established engine, zer ## Consequences -Runtime bundle outputs still follow the dumble-era public entry shape (`lib/index.js`, plus package-specific variants such as `schemastery`'s `lib/index.mjs`/`lib/index.cjs` and `logger-console`'s `lib/browser.js`); declarations now live under `lib/typings` per the [TSC-first build RFC](2026-06-17-ts-build-config.md). Externals still come from each package's dependencies/peerDependencies. We give up dumble's exports-field inference — new packages with non-default shapes need a per-package `tsdown.config.ts` instead of just package.json fields. Future option: tsdown could also absorb declaration bundling (isolatedDeclarations) if `tsc -b` ever becomes the bottleneck; that would be a new RFC. +Runtime bundle outputs still follow the dumble-era public entry shape (`lib/index.js`, plus package-specific variants such as `schemastery`'s `lib/index.mjs`/`lib/index.cjs` and `logger-console`'s `lib/browser.js`); declarations now live under `lib/types` per the [TSC-first build RFC](2026-06-17-ts-build-config.md). Externals still come from each package's dependencies/peerDependencies. We give up dumble's exports-field inference — new packages with non-default shapes need a per-package `tsdown.config.ts` instead of just package.json fields. Future option: tsdown could also absorb declaration bundling (isolatedDeclarations) if `tsc -b` ever becomes the bottleneck; that would be a new RFC. diff --git a/docs/rfc/implemented/2026-06-17-ts-build-config.md b/docs/rfc/implemented/2026-06-17-ts-build-config.md index 9c64de454f..6c5a11156f 100644 --- a/docs/rfc/implemented/2026-06-17-ts-build-config.md +++ b/docs/rfc/implemented/2026-06-17-ts-build-config.md @@ -30,15 +30,15 @@ In-package relative imports are extensionless. `pnpm run build` is a two-stage build: -- Stage 1: `tsc -b tsconfig.build.json` emits per-module `.js`, declarations `.d.ts`, JS sourcemaps `.js.map`, and declaration sourcemaps `.d.ts.map` into each package's `lib/typings`. This is the authoritative TypeScript compilation result. For publish we keep `.d.ts` / `.d.ts.map` and ignore `.js` / `.js.map`. +- Stage 1: `tsc -b tsconfig.build.json` emits per-module `.js`, declarations `.d.ts`, JS sourcemaps `.js.map`, and declaration sourcemaps `.d.ts.map` into each package's `lib/types`. This is the authoritative TypeScript compilation result. For publish we keep `.d.ts` / `.d.ts.map` and ignore `.js` / `.js.map`. - The build project uses the project-reference graph that `tsc -b` compiles. For example, root `tsconfig.build.json` references package and vendor tsconfigs. It validates and emits package/vendor build results. -- Stage 2: a bundler reads the emitted JS under `lib/typings` and writes the bundled runtime entry as `lib/index.js` or `lib/index.mjs` (follow current behavior). This stage is bundling only. It must not read TypeScript source or emit declarations. +- Stage 2: a bundler reads the emitted JS under `lib/types` and writes the bundled runtime entry as `lib/index.js` or `lib/index.mjs` (follow current behavior). This stage is bundling only. It must not read TypeScript source or emit declarations. `tsdown` is no longer the owner of TypeScript compilation or declaration output. `pnpm run typecheck` runs build mode over the root `tsconfig.json`. - The root `tsconfig.json` is the single development/typecheck project. It typechecks examples, tests, and scripts with `noEmit`, and validates package/vendor source through references. -- Referenced package/vendor projects keep the same emit behavior as build, so typecheck can refresh their `lib/typings` outputs instead of using a separate no-emit graph. Project-specific strictness changes live in the owning `packages/*/tsconfig.json` or `vendor/*/tsconfig.json`. +- Referenced package/vendor projects keep the same emit behavior as build, so typecheck can refresh their `lib/types` outputs instead of using a separate no-emit graph. Project-specific strictness changes live in the owning `packages/*/tsconfig.json` or `vendor/*/tsconfig.json`. The command orchestration shape is: @@ -59,8 +59,8 @@ Build responsibilities are clearer: - Each module under `packages/*` and `vendor/*` has one local tsconfig for build, typecheck, and tools that run source directly, such as `tsx` and `vitest`. - The `build` command uses `tsconfig.build.json`. `tsc -b` owns the publishable per-module `.js` and `.d.ts` output, and the bundler owns only `lib/index.*`. - - `lib/typings/*.d.ts` and `.d.ts.map` are the publish declaration output. - - `lib/typings/*.js` is only a bundler input and must not be used as a runtime entry or public import target. + - `lib/types/*.d.ts` and `.d.ts.map` are the publish declaration output. + - `lib/types/*.js` is only a bundler input and must not be used as a runtime entry or public import target. - `lib/index.*` is the publish runtime output and is generated by the bundler, currently `tsdown`. - The `typecheck` command uses `tsconfig.json`. Examples, tests, and scripts are checked by the root no-emit project, while packages and vendor modules keep the same emit behavior as `build`. Package and vendor source stays behind project-reference boundaries. diff --git a/packages/acp/package.json b/packages/acp/package.json index 9f052e5753..6973dc5e20 100644 --- a/packages/acp/package.json +++ b/packages/acp/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/acp/tsconfig.json b/packages/acp/tsconfig.json index 73d850e990..75c578f9ec 100644 --- a/packages/acp/tsconfig.json +++ b/packages/acp/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/agent-loop/package.json b/packages/agent-loop/package.json index ae7296d4df..6e92adb6ab 100644 --- a/packages/agent-loop/package.json +++ b/packages/agent-loop/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/agent-loop/tsconfig.json b/packages/agent-loop/tsconfig.json index 93a07b2e41..afec654d20 100644 --- a/packages/agent-loop/tsconfig.json +++ b/packages/agent-loop/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/agent/package.json b/packages/agent/package.json index eb3a967338..3d2d421a75 100644 --- a/packages/agent/package.json +++ b/packages/agent/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/agent/tsconfig.json b/packages/agent/tsconfig.json index c2b740741a..47e367a340 100644 --- a/packages/agent/tsconfig.json +++ b/packages/agent/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/bash-local/package.json b/packages/bash-local/package.json index 7a8f6fb2a4..bc1dc7eb40 100644 --- a/packages/bash-local/package.json +++ b/packages/bash-local/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/bash-local/tsconfig.json b/packages/bash-local/tsconfig.json index 576ebe64a8..6a578833d6 100644 --- a/packages/bash-local/tsconfig.json +++ b/packages/bash-local/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/bash/package.json b/packages/bash/package.json index 8f33a4ccff..865de7b643 100644 --- a/packages/bash/package.json +++ b/packages/bash/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/bash/tsconfig.json b/packages/bash/tsconfig.json index f5803cec7f..e4c6cd4e12 100644 --- a/packages/bash/tsconfig.json +++ b/packages/bash/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/invariants/package.json b/packages/invariants/package.json index 20ffc74bbf..97d6160b03 100644 --- a/packages/invariants/package.json +++ b/packages/invariants/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/invariants/tsconfig.json b/packages/invariants/tsconfig.json index e87cca530d..784b64253b 100644 --- a/packages/invariants/tsconfig.json +++ b/packages/invariants/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/llm-deepseek/package.json b/packages/llm-deepseek/package.json index 0da7a35b5e..8ebf71c5b5 100644 --- a/packages/llm-deepseek/package.json +++ b/packages/llm-deepseek/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/llm-deepseek/tsconfig.json b/packages/llm-deepseek/tsconfig.json index ceacbf1ee2..f6e5755202 100644 --- a/packages/llm-deepseek/tsconfig.json +++ b/packages/llm-deepseek/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/llm-pi-ai/package.json b/packages/llm-pi-ai/package.json index d212037a95..30911915ff 100644 --- a/packages/llm-pi-ai/package.json +++ b/packages/llm-pi-ai/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/llm-pi-ai/tsconfig.json b/packages/llm-pi-ai/tsconfig.json index ceacbf1ee2..f6e5755202 100644 --- a/packages/llm-pi-ai/tsconfig.json +++ b/packages/llm-pi-ai/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/llm-replay/package.json b/packages/llm-replay/package.json index d9569c2d02..ce57ea18ef 100644 --- a/packages/llm-replay/package.json +++ b/packages/llm-replay/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/llm-replay/tsconfig.json b/packages/llm-replay/tsconfig.json index c2b740741a..47e367a340 100644 --- a/packages/llm-replay/tsconfig.json +++ b/packages/llm-replay/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/llm/package.json b/packages/llm/package.json index 6a01d52c6c..9e45e31f28 100644 --- a/packages/llm/package.json +++ b/packages/llm/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/llm/tsconfig.json b/packages/llm/tsconfig.json index f5803cec7f..e4c6cd4e12 100644 --- a/packages/llm/tsconfig.json +++ b/packages/llm/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/session-persistence-jsonl/package.json b/packages/session-persistence-jsonl/package.json index 8620858548..ac18a38838 100644 --- a/packages/session-persistence-jsonl/package.json +++ b/packages/session-persistence-jsonl/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/session-persistence-jsonl/tsconfig.json b/packages/session-persistence-jsonl/tsconfig.json index 23465c380e..3209f6092d 100644 --- a/packages/session-persistence-jsonl/tsconfig.json +++ b/packages/session-persistence-jsonl/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/session-persistence-sqlite/package.json b/packages/session-persistence-sqlite/package.json index ad5cec37d6..b26c69461e 100644 --- a/packages/session-persistence-sqlite/package.json +++ b/packages/session-persistence-sqlite/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/session-persistence-sqlite/tsconfig.json b/packages/session-persistence-sqlite/tsconfig.json index 23465c380e..3209f6092d 100644 --- a/packages/session-persistence-sqlite/tsconfig.json +++ b/packages/session-persistence-sqlite/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/session-persistence/package.json b/packages/session-persistence/package.json index 17b3c7a796..ed6c80dfd9 100644 --- a/packages/session-persistence/package.json +++ b/packages/session-persistence/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/session-persistence/tsconfig.json b/packages/session-persistence/tsconfig.json index ebfd4b98f3..bfe2438963 100644 --- a/packages/session-persistence/tsconfig.json +++ b/packages/session-persistence/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/session/package.json b/packages/session/package.json index 42ef62567e..6136423ca2 100644 --- a/packages/session/package.json +++ b/packages/session/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/session/tsconfig.json b/packages/session/tsconfig.json index 747dd65daa..619f5e63cc 100644 --- a/packages/session/tsconfig.json +++ b/packages/session/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/system-prompt/package.json b/packages/system-prompt/package.json index 7e419ed29a..672f7a03ef 100644 --- a/packages/system-prompt/package.json +++ b/packages/system-prompt/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/system-prompt/tsconfig.json b/packages/system-prompt/tsconfig.json index 747dd65daa..619f5e63cc 100644 --- a/packages/system-prompt/tsconfig.json +++ b/packages/system-prompt/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/tool-bash/package.json b/packages/tool-bash/package.json index 23baf69058..f9092fabb6 100644 --- a/packages/tool-bash/package.json +++ b/packages/tool-bash/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/tool-bash/tsconfig.json b/packages/tool-bash/tsconfig.json index 131f52aca6..e47b47335c 100644 --- a/packages/tool-bash/tsconfig.json +++ b/packages/tool-bash/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/tools/package.json b/packages/tools/package.json index c78caf0f51..a6d3bbe0ca 100644 --- a/packages/tools/package.json +++ b/packages/tools/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/tools/tsconfig.json b/packages/tools/tsconfig.json index 20d6ab9643..c7a62d2fc3 100644 --- a/packages/tools/tsconfig.json +++ b/packages/tools/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/packages/ui-stdio/package.json b/packages/ui-stdio/package.json index 8e7c54454f..5d65356e79 100644 --- a/packages/ui-stdio/package.json +++ b/packages/ui-stdio/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "license": "BSD-3-Clause", diff --git a/packages/ui-stdio/tsconfig.json b/packages/ui-stdio/tsconfig.json index f87b686386..2f209f4bcc 100644 --- a/packages/ui-stdio/tsconfig.json +++ b/packages/ui-stdio/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings" + "outDir": "lib/types" }, "include": ["src"], "references": [ diff --git a/scripts/check-workspace-constraints.ts b/scripts/check-workspace-constraints.ts index 263be4af5a..306e09b132 100644 --- a/scripts/check-workspace-constraints.ts +++ b/scripts/check-workspace-constraints.ts @@ -69,8 +69,8 @@ function workspaceManifests(): WorkspaceManifest[] { const dshPackageFiles = [ 'lib/index.js', - 'lib/typings/**/*.d.ts', - 'lib/typings/**/*.d.ts.map', + 'lib/types/**/*.d.ts', + 'lib/types/**/*.d.ts.map', 'src', ] as const @@ -108,11 +108,11 @@ function checkWorkspace({ dir, manifest }: WorkspaceManifest): string[] { if (manifest.main !== 'lib/index.js') { errors.push(`${label}: package.json must set "main": "lib/index.js"`) } - if (manifest.types !== 'lib/typings/index.d.ts') { - errors.push(`${label}: package.json must set "types": "lib/typings/index.d.ts"`) + if (manifest.types !== 'lib/types/index.d.ts') { + errors.push(`${label}: package.json must set "types": "lib/types/index.d.ts"`) } - if (manifest.exports?.['.']?.types !== './lib/typings/index.d.ts') { - errors.push(`${label}: package.json exports["."].types must be "./lib/typings/index.d.ts"`) + if (manifest.exports?.['.']?.types !== './lib/types/index.d.ts') { + errors.push(`${label}: package.json exports["."].types must be "./lib/types/index.d.ts"`) } if (manifest.exports?.['.']?.default !== './lib/index.js') { errors.push(`${label}: package.json exports["."].default must be "./lib/index.js"`) diff --git a/tsdown.config.ts b/tsdown.config.ts index d6c3cca603..13570868f2 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -3,7 +3,7 @@ import { defineConfig } from 'tsdown' /** * Runtime bundling for all workspace packages (vendor/* + packages/*). * TypeScript source is compiled first by `tsc -b tsconfig.build.json`; tsdown - * reads only the emitted JS under lib/typings and writes lib/index.* runtime + * reads only the emitted JS under lib/types and writes lib/index.* runtime * bundles. Declarations are NOT produced here, hence `dts: false`. * * Per-package shape overrides live in `/tsdown.config.ts` @@ -13,7 +13,7 @@ export default defineConfig({ // Explicit globs: `workspace: true` would also discover examples/* (any // package.json), but only vendor/* and packages/* are pnpm workspaces. workspace: ['vendor/*', 'packages/*'], - entry: ['lib/typings/index.js'], + entry: ['lib/types/index.js'], outDir: 'lib', format: ['esm'], platform: 'node', diff --git a/vendor/README.md b/vendor/README.md index 43c53cfb53..dd55a9cd05 100644 --- a/vendor/README.md +++ b/vendor/README.md @@ -31,10 +31,10 @@ Intentionally **not** vendored (verified unused by this set): `reggol`, `@cordis Keep this log exhaustive — every divergence from upstream must be listed. 1. **`hmr/src/index.ts`**: removed the `./locales/en-US.yml` / `./locales/zh-CN.yml` imports, the `.i18n({...})` call on the `Config` schema, and the `src/locales/` directory. Rationale: those imports require a runtime YAML loader hook (`@cordisjs/unyaml`) that we do not vendor; the i18n texts only localize config descriptions. -2. **All `package.json` files**: regenerated — added `private: true`, added precise `files` entries for bundled runtime files and `lib/typings/**/*.d.ts` / `.d.ts.map`, preserved `src` in `files` only for packages whose previous file list already shipped it, added a `./src/*` export where missing, pointed declaration metadata at `lib/typings`, and removed upstream `devDependencies`/`scripts`/`repository` fields. Dependency and peer-dependency ranges preserved, except `hmr` declares `esbuild` as a direct dev dependency because its source imports the `BuildFailure` type and pnpm's strict workspace resolution requires the owner package to name that dependency. -3. **All `tsconfig.json` files**: regenerated to extend the repo-root `tsconfig.base.json`, emit TypeScript intermediates to `lib/typings`, and declare project references. +2. **All `package.json` files**: regenerated — added `private: true`, added precise `files` entries for bundled runtime files and `lib/types/**/*.d.ts` / `.d.ts.map`, preserved `src` in `files` only for packages whose previous file list already shipped it, added a `./src/*` export where missing, pointed declaration metadata at `lib/types`, and removed upstream `devDependencies`/`scripts`/`repository` fields. Dependency and peer-dependency ranges preserved, except `hmr` declares `esbuild` as a direct dev dependency because its source imports the `BuildFailure` type and pnpm's strict workspace resolution requires the owner package to name that dependency. +3. **All `tsconfig.json` files**: regenerated to extend the repo-root `tsconfig.base.json`, emit TypeScript intermediates to `lib/types`, and declare project references. 4. **Vendored TypeScript source internal specifiers**: changed local relative imports/exports from explicit `.ts` / `.js` specifiers to extensionless specifiers so generated `.js` and `.d.ts` intermediates are extensionless and no declaration postprocess is needed. This includes `loader/src/config/isolate.ts` changing `declare module './entry.ts'` to `declare module './entry'`. -5. **`schemastery/tsdown.config.ts` and `logger-console/tsdown.config.ts`**: ours, not upstream files — per-package build-shape overrides (dual ESM+CJS output; separate node/browser entries) for the repo-root tsdown build. They read the JS emitted under `lib/typings` and then write the publish runtime entries under `lib/`. Like the regenerated tsconfigs, they are not part of the upstream sync surface. +5. **`schemastery/tsdown.config.ts` and `logger-console/tsdown.config.ts`**: ours, not upstream files — per-package build-shape overrides (dual ESM+CJS output; separate node/browser entries) for the repo-root tsdown build. They read the JS emitted under `lib/types` and then write the publish runtime entries under `lib/`. Like the regenerated tsconfigs, they are not part of the upstream sync surface. ## Sync procedure diff --git a/vendor/cordis/package.json b/vendor/cordis/package.json index 59c3f69649..9d9ac07a34 100644 --- a/vendor/cordis/package.json +++ b/vendor/cordis/package.json @@ -6,11 +6,11 @@ "sideEffects": false, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "bin": "bin.js", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -18,8 +18,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "bin.js" ], "author": "Shigma ", diff --git a/vendor/cordis/tsconfig.json b/vendor/cordis/tsconfig.json index e0b2a46462..c7357481fd 100644 --- a/vendor/cordis/tsconfig.json +++ b/vendor/cordis/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings", + "outDir": "lib/types", "noImplicitAny": false, "noImplicitThis": false, "strictFunctionTypes": false, diff --git a/vendor/cosmokit/package.json b/vendor/cosmokit/package.json index d313ce5477..940fcdb539 100644 --- a/vendor/cosmokit/package.json +++ b/vendor/cosmokit/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "author": "Shigma ", diff --git a/vendor/cosmokit/tsconfig.json b/vendor/cosmokit/tsconfig.json index eb79653390..b7411f94f2 100644 --- a/vendor/cosmokit/tsconfig.json +++ b/vendor/cosmokit/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings", + "outDir": "lib/types", "noUncheckedIndexedAccess": false, "exactOptionalPropertyTypes": false, "noImplicitOverride": false, diff --git a/vendor/group/package.json b/vendor/group/package.json index d8d56c7675..34a8f59ae2 100644 --- a/vendor/group/package.json +++ b/vendor/group/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "author": "Shigma ", diff --git a/vendor/group/tsconfig.json b/vendor/group/tsconfig.json index 2d93e6ae42..e512d1d84c 100644 --- a/vendor/group/tsconfig.json +++ b/vendor/group/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings", + "outDir": "lib/types", "noUncheckedIndexedAccess": false, "exactOptionalPropertyTypes": false, "noImplicitOverride": false, diff --git a/vendor/hmr/package.json b/vendor/hmr/package.json index 7bab5dd3d8..28087d5fa8 100644 --- a/vendor/hmr/package.json +++ b/vendor/hmr/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "author": "Shigma ", diff --git a/vendor/hmr/tsconfig.json b/vendor/hmr/tsconfig.json index cfa1f07afd..8464912787 100644 --- a/vendor/hmr/tsconfig.json +++ b/vendor/hmr/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings", + "outDir": "lib/types", "noUncheckedIndexedAccess": false, "exactOptionalPropertyTypes": false, "noImplicitOverride": false, diff --git a/vendor/include/package.json b/vendor/include/package.json index 0c91733947..f9314d0c5e 100644 --- a/vendor/include/package.json +++ b/vendor/include/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "author": "Shigma ", diff --git a/vendor/include/tsconfig.json b/vendor/include/tsconfig.json index 056206ecab..6fe5099b43 100644 --- a/vendor/include/tsconfig.json +++ b/vendor/include/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings", + "outDir": "lib/types", "noImplicitAny": false, "noUncheckedIndexedAccess": false, "exactOptionalPropertyTypes": false, diff --git a/vendor/loader/package.json b/vendor/loader/package.json index 75b45a89a3..fde6d01d27 100644 --- a/vendor/loader/package.json +++ b/vendor/loader/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "author": "Shigma ", diff --git a/vendor/loader/tsconfig.json b/vendor/loader/tsconfig.json index ca6d75810a..2db62c7b63 100644 --- a/vendor/loader/tsconfig.json +++ b/vendor/loader/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings", + "outDir": "lib/types", "noImplicitAny": false, "noUncheckedIndexedAccess": false, "exactOptionalPropertyTypes": false, diff --git a/vendor/logger-console/package.json b/vendor/logger-console/package.json index 33ec1d566a..8c0d8a0bda 100644 --- a/vendor/logger-console/package.json +++ b/vendor/logger-console/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/shared.d.ts", + "types": "lib/types/shared.d.ts", "exports": { ".": { - "types": "./lib/typings/shared.d.ts", + "types": "./lib/types/shared.d.ts", "node": "./lib/index.js", "default": "./lib/browser.js" }, @@ -18,8 +18,8 @@ "files": [ "lib/index.js", "lib/browser.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "author": "Shigma ", diff --git a/vendor/logger-console/tsconfig.json b/vendor/logger-console/tsconfig.json index 8714f410b6..cba4d151c7 100644 --- a/vendor/logger-console/tsconfig.json +++ b/vendor/logger-console/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings", + "outDir": "lib/types", "noUncheckedIndexedAccess": false, "exactOptionalPropertyTypes": false, "noImplicitOverride": false, diff --git a/vendor/logger-console/tsdown.config.ts b/vendor/logger-console/tsdown.config.ts index c85dad4a28..0df6d4bd0b 100644 --- a/vendor/logger-console/tsdown.config.ts +++ b/vendor/logger-console/tsdown.config.ts @@ -3,7 +3,7 @@ import { defineConfig } from 'tsdown' /** * logger-console ships two entries: the node exporter (index) and the * browser exporter (browser), selected via package.json `exports` - * conditions. The entries are JS emitted by tsc under lib/typings and are + * conditions. The entries are JS emitted by tsc under lib/types and are * bundled as two single-entry passes so the shared base class is inlined into * each (matching upstream's published shape) instead of split into a hash-named * chunk. @@ -19,6 +19,6 @@ const shared = { } as const export default defineConfig([ - { ...shared, entry: ['lib/typings/index.js'] }, - { ...shared, entry: ['lib/typings/browser.js'] }, + { ...shared, entry: ['lib/types/index.js'] }, + { ...shared, entry: ['lib/types/browser.js'] }, ]) diff --git a/vendor/schemastery/package.json b/vendor/schemastery/package.json index 8ce5cc5aff..ec5791f3af 100644 --- a/vendor/schemastery/package.json +++ b/vendor/schemastery/package.json @@ -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 ", diff --git a/vendor/schemastery/tsconfig.json b/vendor/schemastery/tsconfig.json index f901861a39..b25fa05af7 100644 --- a/vendor/schemastery/tsconfig.json +++ b/vendor/schemastery/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings", + "outDir": "lib/types", "module": "preserve", "noUncheckedIndexedAccess": false, "exactOptionalPropertyTypes": false, diff --git a/vendor/schemastery/tsdown.config.ts b/vendor/schemastery/tsdown.config.ts index b16c217750..57f2f5f6c4 100644 --- a/vendor/schemastery/tsdown.config.ts +++ b/vendor/schemastery/tsdown.config.ts @@ -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', diff --git a/vendor/timer/package.json b/vendor/timer/package.json index ff68a84aa0..07c41150e8 100644 --- a/vendor/timer/package.json +++ b/vendor/timer/package.json @@ -5,10 +5,10 @@ "private": true, "type": "module", "main": "lib/index.js", - "types": "lib/typings/index.d.ts", + "types": "lib/types/index.d.ts", "exports": { ".": { - "types": "./lib/typings/index.d.ts", + "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./src/*": "./src/*", @@ -16,8 +16,8 @@ }, "files": [ "lib/index.js", - "lib/typings/**/*.d.ts", - "lib/typings/**/*.d.ts.map", + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "src" ], "author": "Shigma ", diff --git a/vendor/timer/tsconfig.json b/vendor/timer/tsconfig.json index fc4fc9f4fc..843303e870 100644 --- a/vendor/timer/tsconfig.json +++ b/vendor/timer/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "outDir": "lib/typings", + "outDir": "lib/types", "noUncheckedIndexedAccess": false, "exactOptionalPropertyTypes": false, "noImplicitOverride": false,