Skip to content

chore: release package(s) - #501

Merged
JounQin merged 1 commit into
masterfrom
changeset-release/master
Mar 19, 2026
Merged

JounQin merged 1 commit into
masterfrom
changeset-release/master

Conversation

@JounQin

@JounQin JounQin commented Mar 19, 2026 •

Copy link
Copy Markdown
Member

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

[email protected]

Minor Changes

  • #500 041b9e5 Thanks @porada! - feat(prettier-plugin-pkg): Sort pre/post scripts around the base script, except the following cases:

    pare
    postpare
    
    preprepare
    prepare
    postprepare
    

[email protected]

Minor Changes

Summary by CodeRabbit

  • New Features
    • Added pre/post script sorting capability
    • Added ClickHouse SQL formatting support

Copilot AI review requested due to automatic review settings March 19, 2026 13:23
@coderabbitai

coderabbitai Bot commented Mar 19, 2026 •

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Removes two Changeset files and publishes version bumps: prettier-plugin-pkg 0.21.2 → 0.22.0 (changelog entry about sorting pre/post scripts with exemptions) and prettier-plugin-sql 0.19.2 → 0.20.0 (changelog entry adding ClickHouse SQL formatting).

Changes

Cohort / File(s) Summary
Changeset Removals
.changeset/cold-moles-vanish.md, .changeset/clickhouse-formatting.md
Deleted two Changeset entries that previously declared minor bumps for prettier-plugin-pkg and prettier-plugin-sql.
prettier-plugin-pkg release
packages/pkg/package.json, packages/pkg/CHANGELOG.md
Bumped package version 0.21.2 → 0.22.0 and added a changelog note describing sorting of pre/post scripts around a base script with explicit exemptions (pare, postpare, preprepare, prepare, postprepare).
prettier-plugin-sql release
packages/sql/package.json, packages/sql/CHANGELOG.md
Bumped package version 0.19.2 → 0.20.0 and added a changelog note for ClickHouse SQL formatting support (PR #496).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested labels

enhancement

Suggested reviewers

  • JounQin

Poem

🐰 I hopped through changelogs bright,
Nixed two notes, set versions right,
Scripts aligned in tidy queues,
SQL learns ClickHouse's news,
A little hop — a version's light.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: release package(s)' accurately reflects the main purpose of this PR—automatically releasing new package versions. It is concise, clear, and directly corresponds to the PR's core objective.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch changeset-release/master
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codesandbox-ci

codesandbox-ci Bot commented Mar 19, 2026 •

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@pkg-pr-new

pkg-pr-new Bot commented Mar 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

prettier-plugin-autocorrect

npm i https://pkg.pr.new/prettier-plugin-autocorrect@501

prettier-plugin-pkg

npm i https://pkg.pr.new/prettier-plugin-pkg@501

prettier-plugin-sh

npm i https://pkg.pr.new/prettier-plugin-sh@501

prettier-plugin-sql

npm i https://pkg.pr.new/prettier-plugin-sql@501

prettier-plugin-toml

npm i https://pkg.pr.new/prettier-plugin-toml@501

commit: 332e851

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
packages/autocorrect/lib/index.js 477 B (0%)
packages/pkg/lib/index.js 758 B (0%)
packages/sh/lib/index.js 2.68 KB (0%)
packages/sql/lib/index.js 2.04 KB (0%)

@codecov

codecov Bot commented Mar 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.13%. Comparing base (041b9e5) to head (332e851).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #501   +/-   ##
=======================================
  Coverage   88.13%   88.13%           
=======================================
  Files          10       10           
  Lines         236      236           
  Branches       68       68           
=======================================
  Hits          208      208           
  Misses         27       27           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

📊 Package size report   0.01%↑

File Before After
.changeset/cold-moles-vanish.md 198 B —
packages/pkg/CHANGELOG.md 13.6 kB 3%↑14.0 kB
Total (Includes all files) 3.4 MB 0.01%↑3.4 MB
Tarball size 1.2 MB 1.2 MB
Unchanged files
File Size
.changeset/config.json 313 B
.changeset/README.md 510 B
.codesandbox/ci.json 38 B
.editorconfig 161 B
.gitattributes 152 B
.github/workflows/autofix.yml 932 B
.github/workflows/ci.yml 1.6 kB
.github/workflows/pkg-pr-new.yml 695 B
.github/workflows/pkg-size.yml 609 B
.github/workflows/release.yml 1.3 kB
.github/workflows/size-limit.yml 802 B
.github/workflows/vercel.yml 1.1 kB
.nano-staged.js 48 B
.nvmrc 6 B
.postcssrc.cjs 51 B
.prettierignore 23 B
.prettierrc 24 B
.remarkrc 159 B
.renovaterc 49 B
.simple-git-hooks.js 49 B
.size-limit.json 290 B
.yarn/plugins/plugin-prepare-lifecycle.cjs 202 B
.yarn/releases/yarn-4.9.2.cjs 3.0 MB
.yarnrc.yml 397 B
assets/pkg.svg 15.1 kB
assets/sh.png 14.4 kB
CHANGELOG.md 393 B
docs/App.tsx 1.2 kB
docs/global.css 321 B
docs/index.tsx 211 B
eslint.config.js 503 B
index.html 414 B
LICENSE 1.1 kB
package.json 3.6 kB
packages/autocorrect/CHANGELOG.md 2.2 kB
packages/autocorrect/index.d.cts 63 B
packages/autocorrect/LICENSE 1.1 kB
packages/autocorrect/package.json 1.1 kB
packages/autocorrect/README.md 4.0 kB
packages/autocorrect/src/index.ts 1.4 kB
packages/autocorrect/src/types.ts 78 B
packages/autocorrect/test/__snapshots__/fixtures.spec.ts.snap 4.7 kB
packages/autocorrect/test/fixtures.spec.ts 961 B
packages/autocorrect/test/fixtures/test.css 189 B
packages/autocorrect/test/fixtures/test.go 470 B
packages/autocorrect/test/fixtures/test.html 1.1 kB
packages/autocorrect/test/fixtures/test.md 1.1 kB
packages/autocorrect/test/fixtures/test.py 368 B
packages/autocorrect/test/fixtures/test.rb 234 B
packages/autocorrect/test/fixtures/test0.js 453 B
packages/autocorrect/tsconfig.json 154 B
packages/pkg/index.d.cts 47 B
packages/pkg/LICENSE 16.7 kB
packages/pkg/package.json 1.0 kB
packages/pkg/README.md 7.2 kB
packages/pkg/src/index.ts 2.9 kB
packages/pkg/src/rules/files.ts 1.7 kB
packages/pkg/src/rules/object.ts 1.0 kB
packages/pkg/src/rules/sort.ts 5.5 kB
packages/pkg/src/types.ts 1.1 kB
packages/pkg/src/utils.ts 2.2 kB
packages/pkg/test/__snapshots__/engines.spec.ts.snap 158 B
packages/pkg/test/__snapshots__/files.spec.ts.snap 173 B
packages/pkg/test/__snapshots__/ignore-sort.spec.ts.snap 1.1 kB
packages/pkg/test/__snapshots__/sort-order-preset.spec.ts.snap 7.6 kB
packages/pkg/test/__snapshots__/sort-order.spec.ts.snap 996 B
packages/pkg/test/__snapshots__/test.spec.ts.snap 2.1 kB
packages/pkg/test/engines.spec.ts 417 B
packages/pkg/test/files.spec.ts 409 B
packages/pkg/test/fixtures/fixture1.json 1.0 kB
packages/pkg/test/fixtures/fixture2.json 895 B
packages/pkg/test/fixtures/fixture3.json 430 B
packages/pkg/test/ignore-sort.spec.ts 414 B
packages/pkg/test/sort-order-preset.spec.ts 708 B
packages/pkg/test/sort-order.spec.ts 442 B
packages/pkg/test/test.spec.ts 2.3 kB
packages/pkg/test/utils.spec.ts 1.5 kB
packages/pkg/tsconfig.json 154 B
packages/sh/CHANGELOG.md 15.6 kB
packages/sh/index.d.cts 45 B
packages/sh/LICENSE 1.1 kB
packages/sh/package.json 1.4 kB
packages/sh/README.md 10.4 kB
packages/sh/src/index.ts 13.3 kB
packages/sh/test/__snapshots__/fixtures.spec.ts.snap 29.4 kB
packages/sh/test/__snapshots__/shellscript.spec.ts.snap 394 B
packages/sh/test/error.spec.ts 482 B
packages/sh/test/fixtures.spec.ts 1.4 kB
packages/sh/test/fixtures/.dockerignore 108 B
packages/sh/test/fixtures/.env.development 29 B
packages/sh/test/fixtures/.husky/precommit 17 B
packages/sh/test/fixtures/.nvmrc 6 B
packages/sh/test/fixtures/.properties 177 B
packages/sh/test/fixtures/133.sh 5.2 kB
packages/sh/test/fixtures/162.sh 15.7 kB
packages/sh/test/fixtures/182.sh 1.9 kB
packages/sh/test/fixtures/191.sh 1.7 kB
packages/sh/test/fixtures/278.Dockerfile 32 B
packages/sh/test/fixtures/292.Dockerfile 95 B
packages/sh/test/fixtures/376.Dockerfile 217 B
packages/sh/test/fixtures/384.Dockerfile 51 B
packages/sh/test/fixtures/398.Dockerfile 64 B
packages/sh/test/fixtures/441.Dockerfile 219 B
packages/sh/test/fixtures/445.Dockerfile 198 B
packages/sh/test/fixtures/445.sh 105 B
packages/sh/test/fixtures/Dockerfile 394 B
packages/sh/test/fixtures/hosts 406 B
packages/sh/test/fixtures/jvm.options 162 B
packages/sh/test/fixtures/no-ext 38 B
packages/sh/test/fixtures/shell.sh 368 B
packages/sh/test/loc-functions.spec.ts 1.2 kB
packages/sh/test/parser.spec.ts 2.1 kB
packages/sh/tsconfig.json 154 B
packages/sql/CHANGELOG.md 11.9 kB
packages/sql/index.d.cts 47 B
packages/sql/LICENSE 1.1 kB
packages/sql/package.json 1.3 kB
packages/sql/README.md 7.0 kB
packages/sql/src/index.ts 13.0 kB
packages/sql/test/__snapshots__/fixtures-eol.spec.ts.snap 886 B
packages/sql/test/__snapshots__/fixtures.spec.ts.snap 40.3 kB
packages/sql/test/__snapshots__/sql.spec.ts.snap 374 B
packages/sql/test/fixtures-eol.spec.ts 1.4 kB
packages/sql/test/fixtures-eol/556.sql 73 B
packages/sql/test/fixtures-eol/557.sql 69 B
packages/sql/test/fixtures-eol/558.sql 69 B
packages/sql/test/fixtures-eol/559.sql 73 B
packages/sql/test/fixtures.spec.ts 1.8 kB
packages/sql/test/fixtures/144.sql 68 B
packages/sql/test/fixtures/233.sql 68 B
packages/sql/test/fixtures/277.sql 88 B
packages/sql/test/fixtures/279.sql 106 B
packages/sql/test/fixtures/291.sql 1.2 kB
packages/sql/test/fixtures/334.sql 15 B
packages/sql/test/fixtures/405.sql 160 B
packages/sql/test/fixtures/basic.sql 120 B
packages/sql/test/sql.spec.ts 660 B
packages/sql/tsconfig.json 154 B
packages/toml/CHANGELOG.md 2.5 kB
packages/toml/index.d.cts 49 B
packages/toml/LICENSE 1.1 kB
packages/toml/package.json 1.1 kB
packages/toml/README.md 5.2 kB
packages/toml/src/index.ts 1.3 kB
packages/toml/src/options.ts 2.6 kB
packages/toml/src/types.ts 381 B
packages/toml/test/__snapshots__/fixtures.spec.ts.snap 493 B
packages/toml/test/fixtures.spec.ts 792 B
packages/toml/test/fixtures/comments.toml 87 B
packages/toml/test/fixtures/fixture1.toml 162 B
packages/toml/tsconfig.json 154 B
public/android-chrome-192x192.png 3.5 kB
public/android-chrome-512x512.png 12.6 kB
public/apple-touch-icon.png 3.5 kB
public/favicon-16x16.png 309 B
public/favicon-32x32.png 547 B
public/favicon.ico 15.4 kB
public/site.webmanifest 288 B
README.md 6.8 kB
scripts/format.ts 593 B
scripts/languages.ts 3.3 kB
test/global.d.ts 41 B
test/tsconfig.json 223 B
tsconfig.base.json 89 B
tsconfig.json 275 B
vercel.json 229 B
vite.config.ts 544 B
vitest.config.ts 541 B

🤖 This report was automatically generated by pkg-size-action

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/pkg/CHANGELOG.md`:
- Around line 9-16: The fenced code block starting with the triple backticks
(```) in CHANGELOG.md has no language tag, triggering markdownlint MD040; update
the opening fence to include a language (e.g., `text`) so the block becomes a
language-labeled fenced code block and re-run linting to confirm the MD040
warning is resolved.
- Around line 7-16: The changelog lists multiple special-case exceptions for
pre/post script sorting, but the implementation in packages/pkg/src/utils.ts
only hard-codes "prepare" as excluded from pre* matching and has no equivalent
post* exclusion; either update the CHANGELOG entry to state that only "prepare"
is excluded (and that post* are not specially excluded), or modify the utils
logic (in packages/pkg/src/utils.ts — the pre/post matching/exception logic) to
include the additional exceptions (e.g., "pare", "postpare", "preprepare",
"postprepare") and a post* exclusion rule so the shipped behavior matches the
documented list.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ca044bc2-5e4a-44c2-9a10-f6a6a7c8c544

📥 Commits

Reviewing files that changed from the base of the PR and between 041b9e5 and 332e851.

📒 Files selected for processing (3)
  • .changeset/cold-moles-vanish.md
  • packages/pkg/CHANGELOG.md
  • packages/pkg/package.json
💤 Files with no reviewable changes (1)
  • .changeset/cold-moles-vanish.md

Comment thread packages/pkg/CHANGELOG.md Resolved
Comment thread packages/pkg/CHANGELOG.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This is an auto-generated Changesets release PR to publish [email protected], capturing the user-facing changelog entry for the minor feature added in #500.

Changes:

  • Bump prettier-plugin-pkg version from 0.21.2 to 0.22.0.
  • Add 0.22.0 release notes to packages/pkg/CHANGELOG.md.
  • Remove the consumed Changeset file for this release.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/pkg/package.json Updates the package version to 0.22.0 for the npm publish.
packages/pkg/CHANGELOG.md Adds the 0.22.0 changelog entry describing the minor change from #500.
.changeset/cold-moles-vanish.md Removes the Changeset now that it has been applied to versioning/changelog.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@github-actions
github-actions Bot force-pushed the changeset-release/master branch from 332e851 to 6541aa3 Compare March 19, 2026 13:27

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (2)
packages/pkg/CHANGELOG.md (2)

7-16: ⚠️ Potential issue | 🟠 Major

Verify that documented exceptions match the implementation.

This was previously flagged: the changelog lists five exception cases (pare, postpare, preprepare, prepare, postprepare), but the earlier review indicated that packages/pkg/src/utils.ts only hard-codes prepare as excluded from pre* matching, with no equivalent post* exclusion logic. Before releasing, confirm the implementation matches this documented behavior.

Run the following script to verify the implementation:

#!/bin/bash
# Description: Check how pre/post script exceptions are actually implemented in utils.ts

# Search for the pre/post matching logic and exception handling
echo "=== Searching for pre/post script matching logic ==="
rg -n -A10 -B5 'prepare|pre\*|post\*' packages/pkg/src/utils.ts

echo -e "\n=== Searching for script sorting/exception logic ==="
ast-grep --pattern 'if ($_.includes($SCRIPT)) { $$$ }'
ast-grep --pattern 'if ($_.startsWith("pre")) { $$$ }'
ast-grep --pattern 'if ($_.startsWith("post")) { $$$ }'
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/pkg/CHANGELOG.md` around lines 7 - 16, The changelog lists five
exception cases for sorting pre/post scripts but the implementation in
packages/pkg/src/utils.ts only hard-codes `prepare` as excluded from `pre*`
matching; update the implementation or the changelog so they match: inspect the
functions that detect and sort scripts (e.g., any helpers named isPreScript,
isPostScript, sortScriptsAroundBase or the array/condition that currently checks
for "prepare"), and either extend the exclusion list to include "pare",
"postpare", "preprepare", "prepare", and "postprepare" and add equivalent post*
exclusion logic, or remove/adjust entries in the changelog to reflect the actual
behavior; ensure the matching logic uses the unified exception list and add a
unit test to verify each exception case.

9-16: ⚠️ Potential issue | 🟡 Minor

Add language identifier to fenced code block.

The fenced code block is missing a language identifier, triggering markdownlint MD040.

📝 Proposed fix
-  ```
+  ```text
   pare
   postpare

   preprepare
   prepare
   postprepare
</details>

<details>
<summary>🤖 Prompt for AI Agents</summary>

Verify each finding against the current code and only fix it if needed.

In @packages/pkg/CHANGELOG.md around lines 9 - 16, Add a language identifier to
the fenced code block (the triple-backtick block shown) so markdownlint MD040 is
satisfied; update the opening fence from totext (or another appropriate
language) in the CHANGELOG.md block containing the lines "pare", "postpare",
"preprepare", "prepare", "postprepare" so the code fence is explicitly labeled.


</details>

</blockquote></details>

</blockquote></details>

<details>
<summary>🤖 Prompt for all review comments with AI agents</summary>

Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In @packages/pkg/CHANGELOG.md:

  • Around line 7-16: The changelog lists five exception cases for sorting
    pre/post scripts but the implementation in packages/pkg/src/utils.ts only
    hard-codes prepare as excluded from pre* matching; update the implementation
    or the changelog so they match: inspect the functions that detect and sort
    scripts (e.g., any helpers named isPreScript, isPostScript,
    sortScriptsAroundBase or the array/condition that currently checks for
    "prepare"), and either extend the exclusion list to include "pare", "postpare",
    "preprepare", "prepare", and "postprepare" and add equivalent post* exclusion
    logic, or remove/adjust entries in the changelog to reflect the actual behavior;
    ensure the matching logic uses the unified exception list and add a unit test to
    verify each exception case.
  • Around line 9-16: Add a language identifier to the fenced code block (the
    triple-backtick block shown) so markdownlint MD040 is satisfied; update the
    opening fence from totext (or another appropriate language) in the
    CHANGELOG.md block containing the lines "pare", "postpare", "preprepare",
    "prepare", "postprepare" so the code fence is explicitly labeled.

</details>

---

<details>
<summary>ℹ️ Review info</summary>

<details>
<summary>⚙️ Run configuration</summary>

**Configuration used**: defaults

**Review profile**: CHILL

**Plan**: Pro

**Run ID**: `d4e8b574-ad2a-4197-a3f6-b226556a74fb`

</details>

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 332e851935078291b2b2943205bfb788c9393a37 and 6541aa31d9bb364014f691514787204e71d502e0.

</details>

<details>
<summary>📒 Files selected for processing (5)</summary>

* `.changeset/cold-moles-vanish.md`
* `packages/pkg/CHANGELOG.md`
* `packages/pkg/package.json`
* `packages/sql/CHANGELOG.md`
* `packages/sql/package.json`

</details>

<details>
<summary>💤 Files with no reviewable changes (1)</summary>

* .changeset/cold-moles-vanish.md

</details>

<details>
<summary>✅ Files skipped from review due to trivial changes (3)</summary>

* packages/sql/CHANGELOG.md
* packages/pkg/package.json
* packages/sql/package.json

</details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

@github-actions
github-actions Bot force-pushed the changeset-release/master branch from 6541aa3 to 8fdfd63 Compare March 19, 2026 14:08

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (2)
packages/pkg/CHANGELOG.md (2)

9-16: ⚠️ Potential issue | 🟡 Minor

Add a language identifier to the fenced code block.

The fenced code block starting at line 9 lacks a language identifier, triggering markdownlint MD040. Add a language tag for proper rendering and linting compliance.

🔧 Suggested fix
-  ```
+  ```text
   pare
   postpare

   preprepare
   prepare
   postprepare

</details>

As per coding guidelines, markdownlint-cli2 reports MD040 violations for fenced code blocks without language specifications.

<details>
<summary>🤖 Prompt for AI Agents</summary>

Verify each finding against the current code and only fix it if needed.

In @packages/pkg/CHANGELOG.md around lines 9 - 16, The fenced code block
containing the lines "pare postpare preprepare prepare postprepare" is missing a
language identifier; update that triple-backtick fence to include a language tag
(e.g., add "text" after ``` ) so the block becomes a language-specified fenced
code block and satisfies markdownlint MD040.


</details>

---

`7-16`: _⚠️ Potential issue_ | _🟠 Major_

**Changelog entry does not accurately describe the implementation.**

The exception list implies all five cases are specially handled, but the implementation in `packages/pkg/src/utils.ts` only explicitly excludes `'prepare'` from being treated as `pre` + `pare`. The other names (`pare`, `postpare`, `preprepare`, `postprepare`) are implicitly handled by the logic that checks whether the base script exists—they are not hardcoded exceptions.

Consider revising the changelog to accurately reflect the implementation: "Sort `pre`/`post` scripts around the base script, with special handling to ensure `prepare` is not treated as `pre` + `pare`."




<details>
<summary>📝 Suggested revision</summary>

```diff
-- [`#500`](https://github.com/un-ts/prettier/pull/500) [`041b9e5`](https://github.com/un-ts/prettier/commit/041b9e50928f078ac109f334c3c2e16ddd064c29) Thanks [`@porada`](https://github.com/porada)! - feat(prettier-plugin-pkg): Sort `pre`/`post` scripts around the base script, except the following cases:
-
-  ```
-  pare
-  postpare
-
-  preprepare
-  prepare
-  postprepare
-  ```
+- [`#500`](https://github.com/un-ts/prettier/pull/500) [`041b9e5`](https://github.com/un-ts/prettier/commit/041b9e50928f078ac109f334c3c2e16ddd064c29) Thanks [`@porada`](https://github.com/porada)! - feat(prettier-plugin-pkg): Sort `pre`/`post` scripts around the base script, with special handling to ensure `prepare` is not treated as `pre` + `pare`.
```

</details>

Based on the implementation in `packages/pkg/src/utils.ts:16-53`, which only contains `scriptName !== 'prepare'` as the hardcoded exception.

<details>
<summary>🤖 Prompt for AI Agents</summary>

```
Verify each finding against the current code and only fix it if needed.

In `@packages/pkg/CHANGELOG.md` around lines 7 - 16, The changelog overstates the
implementation by listing several hardcoded exceptions while the code only
hardcodes the check scriptName !== 'prepare' (see the logic in
packages/pkg/src/utils.ts); update the CHANGELOG.md entry to remove the
five-item exception list and instead state: "Sort `pre`/`post` scripts around
the base script, with special handling to ensure `prepare` is not treated as
`pre` + `pare`," so the description matches the actual behavior.
```

</details>

</blockquote></details>

</blockquote></details>

<details>
<summary>🤖 Prompt for all review comments with AI agents</summary>

Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In @packages/pkg/CHANGELOG.md:

  • Around line 9-16: The fenced code block containing the lines "pare postpare
    preprepare prepare postprepare" is missing a language identifier; update that
    triple-backtick fence to include a language tag (e.g., add "text" after ``` ) so
    the block becomes a language-specified fenced code block and satisfies
    markdownlint MD040.
  • Around line 7-16: The changelog overstates the implementation by listing
    several hardcoded exceptions while the code only hardcodes the check scriptName
    !== 'prepare' (see the logic in packages/pkg/src/utils.ts); update the
    CHANGELOG.md entry to remove the five-item exception list and instead state:
    "Sort pre/post scripts around the base script, with special handling to
    ensure prepare is not treated as pre + pare," so the description matches
    the actual behavior.

</details>

---

<details>
<summary>ℹ️ Review info</summary>

<details>
<summary>⚙️ Run configuration</summary>

**Configuration used**: defaults

**Review profile**: CHILL

**Plan**: Pro

**Run ID**: `08d2862d-5609-4a27-837a-8361fc51e504`

</details>

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 6541aa31d9bb364014f691514787204e71d502e0 and 8fdfd63e2b6e169e0c2888c8f8da2432252ec486.

</details>

<details>
<summary>📒 Files selected for processing (6)</summary>

* `.changeset/clickhouse-formatting.md`
* `.changeset/cold-moles-vanish.md`
* `packages/pkg/CHANGELOG.md`
* `packages/pkg/package.json`
* `packages/sql/CHANGELOG.md`
* `packages/sql/package.json`

</details>

<details>
<summary>💤 Files with no reviewable changes (2)</summary>

* .changeset/clickhouse-formatting.md
* .changeset/cold-moles-vanish.md

</details>

<details>
<summary>✅ Files skipped from review due to trivial changes (3)</summary>

* packages/sql/package.json
* packages/sql/CHANGELOG.md
* packages/pkg/package.json

</details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

@sonarqubecloud

Copy link
Copy Markdown

@JounQin
JounQin merged commit 6d198f4 into master Mar 19, 2026
7 checks passed
@JounQin
JounQin deleted the changeset-release/master branch March 19, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants