Skip to content

fix: add final newlines to serialized JSON files - #342

Open
lixiaoyan wants to merge 1 commit into
yarnpkg:mainfrom
lixiaoyan:fix/serialized-file-newlines
Open

lixiaoyan wants to merge 1 commit into
yarnpkg:mainfrom
lixiaoyan:fix/serialized-file-newlines

Conversation

@lixiaoyan

Copy link
Copy Markdown
  • Terminate generated JSON files while preserving existing formatting.
  • Update checked-in data and the constraints adapter.
  • Cover lockfile newline stability and immutable installs.

- Terminate generated JSON files while preserving existing formatting.
- Update checked-in data and the constraints adapter.
- Cover lockfile newline stability and immutable installs.

Co-authored-by: Codex (GPT-6 Astra) <codex@openai.com>
@netlify

netlify Bot commented Sep 21, 2026

Copy link
Copy Markdown

馃懛 Deploy request for yarn-v6 pending review.

Visit the deploys page to approve it

Name Link
馃敤 Latest commit 000b6c8

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.

Copilot review overview

馃煝 Approval recommended

No unresolved review issues remain.

Review effort: Lite
Findings: None

What changed in this PR

Adds trailing newlines to generated JSON artifacts and lockfiles while preserving formatting and immutable-install stability.

Changes:

  • Updated JSON serializers across Rust and JavaScript components.
  • Refreshed generated data and lockfile contents.
  • Added lockfile newline and immutable-install coverage.
File Description
yarn.lock Adds final newline.
tests/鈥媋cceptance-tests/鈥媝kg-tests-specs/鈥媠ources/鈥媍ommands/鈥媔nstall.test.ts Tests lockfile newline stability.
scripts/鈥媔mport-artifacts.mjs Terminates generated artifact JSON.
packages/鈥媧pm/鈥媠rc/鈥媝roject.rs Terminates serialized lockfiles.
packages/鈥媧pm/鈥媠rc/鈥媗inker/鈥媝np.rs Terminates PnP data JSON.
packages/鈥媧pm/鈥媠rc/鈥媍onstraints/鈥媍onstraints.tpl.js Terminates constraints output.
packages/鈥媧pm/鈥媠rc/鈥媍ommands/鈥媍onstraints.rs Avoids duplicate output newlines.
packages/鈥媧pm/鈥媠rc/鈥媌uiltins/鈥媙ode.rs Terminates generated manifests.
packages/鈥媧pm/鈥媠rc/鈥媌uild.rs Terminates build state JSON.
packages/鈥媧pm/鈥媎ata/鈥媌uiltin-extensions.json Updates generated data newline.
packages/鈥媧pm-switch/鈥媠rc/鈥媗inks.rs Terminates switch configuration JSON.
packages/鈥媧pm-switch/鈥媠rc/鈥媎aemons.rs Terminates daemon metadata JSON.
packages/鈥媧pm-switch/鈥媠rc/鈥媍ache.rs Terminates cache metadata JSON.
packages/鈥媧pm-constraints/鈥媔ndex.ts Terminates constraints result JSON.

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

This branch has not been deployed

No deployments
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