Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Remove unecessary sorts, add undefined check to packageJson sort#153

Closed
kpaxton wants to merge 1 commit intonxpm:mainfrom
kpaxton:fix/workspace-lint
Closed

Remove unecessary sorts, add undefined check to packageJson sort#153
kpaxton wants to merge 1 commit intonxpm:mainfrom
kpaxton:fix/workspace-lint

Conversation

@kpaxton
Copy link
Copy Markdown
Contributor

@kpaxton kpaxton commented Jan 19, 2022

Nx 13+ already handles sorting the TsConfig paths and Workspace projects so I've removed them from the command so this now only sorts the package.json scripts property now.

Added an undefined check to the sort function so that it doesn't add the property if it doesn't exist. Should never happen since package.json should always have the scripts property.

Fixes:
#152

@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented Jan 19, 2022

☁️ Nx Cloud Report

CI ran the following commands for commit a9dcf5c. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

beeman added a commit that referenced this pull request Jan 20, 2022
Remove unecessary sorts, add undefined check to packageJson sort

Merges #153
@beeman
Copy link
Copy Markdown
Contributor

beeman commented Jan 20, 2022

Merged in #154

@beeman beeman closed this Jan 20, 2022
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