Repository navigation
Declare typescript as a peer dependency - #784
Open
Purv-Kabaria wants to merge 1 commit into
Open
Purv-Kabaria wants to merge 1 commit into
Purv-Kabaria wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: d391475 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
Author
|
@mattiamanzati could you approve the workflows when you get a chance? Small change: typescript is declared as a peer dependency and added to the generated dist/package.json, with a changeset included (#772). |
Author
|
Hi! Thanks for getting the workflows running. Build, lint, and both the v3 and v4 test suites are green. The peer dependency also goes into the generated dist/package.json, and the changeset is included. Happy to adjust the version range or packaging approach if you would prefer something different. |
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.
Closes #772
@effect/language-serviceimportstypescript/lib/tsserverlibrarybut its published manifest declares no relationship totypescript. With an isolated linker (Bun's, or pnpm without hoisting) that import can resolve to an unrelated hoisted copy, e.g. a TypeScript 7 alias, and the CLI fails withPackage subpath './lib/tsserverlibrary' is not defined by "exports".This adds
typescript: "^5.0.0 || ^6.0.0"as a peer dependency, matching the range the CLI already reports as supported (supports TypeScript 5.x and 6.xinsrc/cli/utils.ts).Since the published
package.jsonis generated intsup.config.tsfrom a fixed list of fields, thepeerDependenciesfield is passed through there too; otherwise it would never reach npm. I built the package and checked thatdist/package.jsonnow contains it. The lockfile change is the new importer entry that pnpm 8.11.0 records for the peer.Checked:
pnpm install --frozen-lockfile,pnpm --filter @effect/language-service build, andtsc -bfor the package. No TypeScript sources changed, so I didn't run the full v3/v4 test suites.