syncpack 14.0.0-alpha.17 → 14.0.0-alpha.19

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 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
  - [![support on ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/C0C4PY4P)
package/index.cjs CHANGED
@@ -13,9 +13,6 @@ process.exit(
13
13
  spawnSync(pathToBinary, args, {
14
14
  cwd: process.cwd(),
15
15
  stdio: ['ignore', 'inherit', 'inherit'],
16
- env: {
17
- ...process.env,
18
- RUST_BACKTRACE: 'full',
19
- },
16
+ env: process.env,
20
17
  }).status || 0,
21
18
  );
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.17",
4
+ "version": "14.0.0-alpha.19",
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.17",
72
- "syncpack-linux-arm64": "14.0.0-alpha.17",
73
- "syncpack-darwin-x64": "14.0.0-alpha.17",
74
- "syncpack-darwin-arm64": "14.0.0-alpha.17",
75
- "syncpack-windows-x64": "14.0.0-alpha.17",
76
- "syncpack-windows-arm64": "14.0.0-alpha.17"
71
+ "syncpack-linux-x64": "14.0.0-alpha.19",
72
+ "syncpack-linux-arm64": "14.0.0-alpha.19",
73
+ "syncpack-darwin-x64": "14.0.0-alpha.19",
74
+ "syncpack-darwin-arm64": "14.0.0-alpha.19",
75
+ "syncpack-windows-x64": "14.0.0-alpha.19",
76
+ "syncpack-windows-arm64": "14.0.0-alpha.19"
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 {};