Repository navigation
chore(prettier): move old formatter and document maintenance - #943
Merged
Merged
Conversation
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.
Move the existing formatter from
packages/prettier-plugintopackages/old-prettier-pluginto prepare the package transition as a separate, reviewable step. Its source and tests are unchanged renames. Update the repository path, typecheck and test paths, and workspace links.Update the new implementation's README to use
@tsrx/prettier-pluginas its title and public import name, remove the experimental and undecided-package-name wording, and add Ongoing: keeping up with Prettier from #852. The checklist covers importing upstream tests, refreshing known failures, maintaining copied JSX printers, checking AST postprocessing, and reviewing range/cursor behavior when upgrading Prettier. The README also documents selection formatting for users and recommends Prettier 3.9.9 or newer while retaining the>=3.6.0peer range.Existing consumers continue to resolve
@tsrx/prettier-pluginto the old implementation at its new path. The new implementation stays inpackages/tsrx-prettier-plugin; the package identity and final folder rename follow in a separate PR after this one merges. This is an internal folder move and documentation update, with no release changeset.Validation:
pnpm test --project prettier-plugin --project tsrx-prettier-plugin --project tsrx-prettier-plugin-3.6 --project tsrx-mcp: 6,005 passed, 17 existing skips.pnpm exec tsgo --noEmit -p packages/old-prettier-plugin/tsconfig.typecheck.json.@tsrx/prettier-plugintopackages/old-prettier-plugin/src/index.js.pnpm install --frozen-lockfile --ignore-scripts --offline.pnpm rules:check,pnpm changeset:check, andgit diff --check.Note
Low Risk
Internal path and documentation updates only; published package name and consumer resolution stay the same until a follow-up PR.
Overview
This PR renames the published formatter package directory from
packages/prettier-plugintopackages/old-prettier-pluginwithout changing its npm name (@tsrx/prettier-plugin). Root typecheck, Vitest (prettier-pluginproject), and pnpm lockfile workspace links now point at the new path so CI and dependents keep resolving the same package.packages/tsrx-prettier-plugin/README.mdis updated for the upcoming swap: it drops experimental/undecided naming language, documents@tsrx/prettier-pluginas the public import, adds a Selection formatting section, splits Prettier versions guidance, links migrated tests to the previous implementation, and adds an Ongoing: keeping up with Prettier upgrade checklist from #852.The new formatter in
packages/tsrx-prettier-pluginis unchanged in this PR; package identity and folder rename follow separately.Reviewed by Cursor Bugbot for commit e6019ce. Bugbot is set up for automated code reviews on this repo. Configure here.