syncpack 14.0.0-alpha.17 → 14.0.0-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/package.json +7 -7
- package/syncpack.d.ts +22 -0
package/README.md
CHANGED
|
@@ -144,6 +144,25 @@ syncpack list --help
|
|
|
144
144
|
syncpack list -h
|
|
145
145
|
```
|
|
146
146
|
|
|
147
|
+
### [json](https://jamiemason.github.io/syncpack/command/json)
|
|
148
|
+
|
|
149
|
+
Output the state of every instance of every dependency as a JSON object, one per line. This command is best used with tools like [`jq`](https://jqlang.org/) for filtering and processing.
|
|
150
|
+
|
|
151
|
+
#### Examples
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
# Output all dependencies as JSON
|
|
155
|
+
syncpack json
|
|
156
|
+
# Output only AWS SDK dependencies
|
|
157
|
+
syncpack json --dependencies '@aws-sdk/**'
|
|
158
|
+
# Count dependencies by type
|
|
159
|
+
syncpack json | jq -r '.dependencyType' | sort | uniq -c
|
|
160
|
+
# See more examples
|
|
161
|
+
syncpack json --help
|
|
162
|
+
# See a short summary of options
|
|
163
|
+
syncpack json -h
|
|
164
|
+
```
|
|
165
|
+
|
|
147
166
|
## Badges
|
|
148
167
|
|
|
149
168
|
- [](https://ko-fi.com/C0C4PY4P)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "syncpack",
|
|
3
3
|
"description": "Consistent dependency versions in large JavaScript Monorepos",
|
|
4
|
-
"version": "14.0.0-alpha.
|
|
4
|
+
"version": "14.0.0-alpha.18",
|
|
5
5
|
"author": "Jamie Mason <jamie@foldleft.io> (https://github.com/JamieMason)",
|
|
6
6
|
"bugs": "https://github.com/JamieMason/syncpack/issues",
|
|
7
7
|
"contributors": [
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
"syncpack": "./index.cjs"
|
|
69
69
|
},
|
|
70
70
|
"optionalDependencies": {
|
|
71
|
-
"syncpack-linux-x64": "14.0.0-alpha.
|
|
72
|
-
"syncpack-linux-arm64": "14.0.0-alpha.
|
|
73
|
-
"syncpack-darwin-x64": "14.0.0-alpha.
|
|
74
|
-
"syncpack-darwin-arm64": "14.0.0-alpha.
|
|
75
|
-
"syncpack-windows-x64": "14.0.0-alpha.
|
|
76
|
-
"syncpack-windows-arm64": "14.0.0-alpha.
|
|
71
|
+
"syncpack-linux-x64": "14.0.0-alpha.18",
|
|
72
|
+
"syncpack-linux-arm64": "14.0.0-alpha.18",
|
|
73
|
+
"syncpack-darwin-x64": "14.0.0-alpha.18",
|
|
74
|
+
"syncpack-darwin-arm64": "14.0.0-alpha.18",
|
|
75
|
+
"syncpack-windows-x64": "14.0.0-alpha.18",
|
|
76
|
+
"syncpack-windows-arm64": "14.0.0-alpha.18"
|
|
77
77
|
},
|
|
78
78
|
"types": "./syncpack.d.ts"
|
|
79
79
|
}
|
package/syncpack.d.ts
CHANGED
|
@@ -139,4 +139,26 @@ type SemverRange = '' | '*' | '>' | '>=' | '.x' | '<' | '<=' | '^' | '~';
|
|
|
139
139
|
type DependencyType = 'dev' | 'local' | 'overrides' | 'peer' | 'pnpmOverrides' | 'prod' | 'resolutions' | AnyString;
|
|
140
140
|
type SpecifierType = 'alias' | 'exact' | 'file' | 'git' | 'latest' | 'major' | 'minor' | 'missing' | 'range' | 'range-complex' | 'range-major' | 'range-minor' | 'tag' | 'unsupported' | 'url' | 'workspace-protocol' | AnyString;
|
|
141
141
|
type AnyString = string & {};
|
|
142
|
+
/** Each Instance printed by `syncpack json` */
|
|
143
|
+
export type JsonOutput = {
|
|
144
|
+
dependency: string;
|
|
145
|
+
dependencyGroup: string;
|
|
146
|
+
dependencyType: DependencyType;
|
|
147
|
+
package: string;
|
|
148
|
+
property: ['dependencies'];
|
|
149
|
+
strategy: CustomType.Any['strategy'];
|
|
150
|
+
versionGroup: VersionGroupVariant;
|
|
151
|
+
preferredSemverRange: SemverRange | null;
|
|
152
|
+
statusCode: StatusCode;
|
|
153
|
+
actual: {
|
|
154
|
+
raw: string;
|
|
155
|
+
type: SpecifierType;
|
|
156
|
+
};
|
|
157
|
+
expected: {
|
|
158
|
+
raw: string;
|
|
159
|
+
type: SpecifierType;
|
|
160
|
+
} | null;
|
|
161
|
+
};
|
|
162
|
+
export type VersionGroupVariant = 'Banned' | 'HighestSemver' | 'Ignored' | 'LowestSemver' | 'Pinned' | 'SameRange' | 'SnappedTo';
|
|
163
|
+
export type StatusCode = 'IsHighestOrLowestSemver' | 'IsIdenticalToLocal' | 'IsIdenticalToPin' | 'IsIdenticalToSnapTarget' | 'IsIgnored' | 'IsLocalAndValid' | 'IsNonSemverButIdentical' | 'SatisfiesHighestOrLowestSemver' | 'SatisfiesLocal' | 'SatisfiesSameRangeGroup' | 'SatisfiesSnapTarget' | 'DiffersToHighestOrLowestSemver' | 'DiffersToLocal' | 'DiffersToNpmRegistry' | 'DiffersToPin' | 'DiffersToSnapTarget' | 'IsBanned' | 'PinOverridesSemverRange' | 'PinOverridesSemverRangeMismatch' | 'SemverRangeMismatch' | 'DependsOnInvalidLocalPackage' | 'NonSemverMismatch' | 'SameRangeMismatch' | 'DependsOnMissingSnapTarget' | 'InvalidLocalVersion' | 'RefuseToBanLocal' | 'RefuseToPinLocal' | 'RefuseToSnapLocal' | 'MatchConflictsWithHighestOrLowestSemver' | 'MatchConflictsWithLocal' | 'MatchConflictsWithSnapTarget' | 'MismatchConflictsWithHighestOrLowestSemver' | 'MismatchConflictsWithLocal' | 'MismatchConflictsWithSnapTarget';
|
|
142
164
|
export {};
|