Repository navigation
fix(types): publish declarations without a compiler peer - #32
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: d319476 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
YLfjuk
commented
Nov 16, 2026
| ``` | ||
|
|
||
| The package is type-only, uses ESM package metadata, and requires TypeScript 7. | ||
| The package is type-only, uses ESM package metadata, and publishes declaration files without a TypeScript peer dependency. |
Owner
Author
There was a problem hiding this comment.
No need to say what the package doesn't need
| ``` | ||
|
|
||
| The package is type-only, uses ESM package metadata, and requires TypeScript 7. | ||
| The package is type-only, uses ESM package metadata, and publishes declaration files without a TypeScript peer dependency. |
Owner
Author
There was a problem hiding this comment.
The packag is type only is enough - maybe not even that
| }, | ||
| "scripts": { | ||
| "build": "pnpm run test && pnpm run test:types && publint && attw --pack --profile esm-only", | ||
| "build": "pnpm run test && pnpm run test:types && tsc --emitDeclarationOnly --outDir dist --rootDir src && publint && attw --pack --profile esm-only", |
YLfjuk
commented
Nov 16, 2026
| }, | ||
| "scripts": { | ||
| "build": "pnpm run test && pnpm run test:types && publint && attw --pack --profile esm-only", | ||
| "build": "pnpm run test && pnpm run test:types && tsdown", |
Owner
Author
There was a problem hiding this comment.
Use turbo for the task dependencies instead of keeping them in the script
YLfjuk
commented
Nov 16, 2026
| "lint": { | ||
| "dependsOn": ["^lint"] | ||
| }, | ||
| "@ylfjuk-core/types#build": { |
Owner
Author
There was a problem hiding this comment.
Prefer a scoped turbo config over declaring package specific dependencies in the root turbo config
YLfjuk
commented
Nov 16, 2026
| { | ||
| "extends": ["//"], | ||
| "tasks": { | ||
| "build": { |
Owner
Author
There was a problem hiding this comment.
Does it inherit the root config's output value?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Publish @ylfjuk-core/types as a type-only package using tsdown declaration-only mode. Keep dist-only packaging, declaration metadata and the development source condition; remove the compiler peer dependency. The README identifies the package as type-only.
The types config follows the existing tsdown configs and enables dts.emitDtsOnly, verified against installed tsdown 0.22.14 and rolldown-plugin-dts 0.27.14 documentation/source. Its distribution contains only dist/index.d.ts. Existing validation tests and the root TypeScript development dependency remain.
Validation: Node 24.19.0 / pnpm 11.22.0 frozen install; uncached builds, tests and owning type checks; publint and attw for all three packages; formatting and diff checks. Lint passes with ten existing warnings. Strict Bundler and NodeNext probes consume local tarballs throughout the dependency graph, with no paths, development conditions, skipLibCheck or consumer compiler installation. Compiler validation covers TypeScript 7.0.2 only; tsdown reports its existing experimental API warning.
PR36 owns validation deduplication and needs reconciliation onto this head, preserving tsdown. Broader consumer CI remains deferred.