You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> All command line options can be combined to target packages and dependencies in multiple ways.
18
18
19
-
Ensure that multiple packages requiring the same dependency define the same version, so that every package requires eg. `react@16.4.2`, instead of a combination of `react@16.4.2`, `react@0.15.9`, and `react@16.0.0`.
Organise package.json files according to a conventional format, where fields appear in a predictable order and nested fields are ordered alphabetically. Shorthand properties are used where available, such as the `"repository"` and `"bugs"` fields.
19
+
### [lint](https://jamiemason.github.io/syncpack/command/lint) and [fix](https://jamiemason.github.io/syncpack/command/fix)
Check whether dependency versions used within "dependencies", "devDependencies", etc follow a consistent format.
21
+
Ensure that multiple packages requiring the same dependency define the same version, so that every package requires eg. `react@16.4.2`, instead of a combination of `react@16.4.2`, `react@0.15.9`, and `react@16.0.0`.
List dependencies which are required by multiple packages, where the version is not the same across every package.
52
+
Update packages to the latest versions from the npm registry, wherever they are in your monorepo.<br/>Semver range preferences are preserved when updating.
Ensure dependency versions used within `"dependencies"`, `"devDependencies"`etc follow a consistent format.
83
+
Organise package.json files according to a conventional format, where fields appear in a predictable order and nested fields are ordered alphabetically. Shorthand properties are used where available, such as the `"repository"` and `"bugs"`fields.
Interactively update packages to the latest versions from the npm registry, wherever they are in your monorepo. You can update every dependency, just dev/peer/prod dependencies, just packages which match a name filter, and more.
87
+
```bash
88
+
# Fix every formatting issue in the monorepo
89
+
syncpack format
90
+
# List all formatting issues in the monorepo
91
+
syncpack format --check
92
+
# Check the formatting of one package
93
+
syncpack format --check --source 'packages/pingu/package.json'
0 commit comments