Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(js): sort package.json fields by idiomatic order #29635

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Jan 15, 2025

This PR updates our app/lib generators such that package.json files generated have fields in idiomatic order.

e.g.

{
  "name": "...",
  "version": "...",
  "private": true,
  "type": "module",
  "main": "...",
  ...
  "dependencies": { ... }
}

The import fields such as name, version, private, and type are at the top. Dep fields that could be noisy are at the bottom.

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

Copy link

vercel bot commented Jan 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Jan 15, 2025 8:23pm

@jaysoo jaysoo requested review from a team and Coly010 as code owners January 15, 2025 18:03
Copy link

nx-cloud bot commented Jan 15, 2025

View your CI Pipeline Execution ↗ for commit 1edb6d2.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 7m View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 20s View ↗
nx-cloud record -- nx format:check --base=7ef4f... ✅ Succeeded 4s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗
nx documentation --no-dte ✅ Succeeded <1s View ↗
nx affected -t e2e-macos-local --parallel=1 --b... ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-15 20:34:54 UTC

@jaysoo jaysoo force-pushed the fix/sort-package-json branch from 5a40ef3 to 937aeda Compare January 15, 2025 18:10
@jaysoo jaysoo force-pushed the fix/sort-package-json branch from 937aeda to 1edb6d2 Compare January 15, 2025 18:45
@jaysoo jaysoo requested a review from a team as a code owner January 15, 2025 20:21
@jaysoo jaysoo requested a review from leosvelperez January 15, 2025 20:21
@jaysoo jaysoo force-pushed the fix/sort-package-json branch from 46e8d2e to 1edb6d2 Compare January 15, 2025 20:22
@jaysoo jaysoo merged commit cc441a6 into master Jan 15, 2025
7 checks passed
@jaysoo jaysoo deleted the fix/sort-package-json branch January 15, 2025 20:52
FrozenPandaz pushed a commit that referenced this pull request Jan 17, 2025
This PR updates our app/lib generators such that `package.json` files
generated have fields in idiomatic order.

e.g.

```json
{
  "name": "...",
  "version": "...",
  "private": true,
  "type": "module",
  "main": "...",
  ...
  "dependencies": { ... }
}
```

The import fields such as name, version, private, and type are at the
top. Dep fields that could be noisy are at the bottom.

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

(cherry picked from commit cc441a6)
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants