11export interface RcFile {
22 /** @see https://jamiemason.github.io/syncpack/integrations/json-schema */
33 $schema ?: string ;
4+ /** @see https://jamiemason.github.io/syncpack/config/aliases */
5+ aliases ?: AliasGroup [ ] ;
46 /** @see https://jamiemason.github.io/syncpack/config/custom-types */
57 customTypes ?: Record < string , CustomType . Any > ;
68 /** @see https://jamiemason.github.io/syncpack/config/format-bugs */
@@ -38,6 +40,19 @@ export interface RcFile {
3840 specifierTypes ?: never ;
3941}
4042
43+ export interface AliasGroup {
44+ /** @see https://jamiemason.github.io/syncpack/config/aliases/#dependencies */
45+ dependencies ?: string [ ] ;
46+ /** @see https://jamiemason.github.io/syncpack/config/aliases/#dependencytypes */
47+ dependencyTypes ?: DependencyType [ ] ;
48+ /** @see https://jamiemason.github.io/syncpack/config/aliases/#label */
49+ label ?: string ;
50+ /** @see https://jamiemason.github.io/syncpack/config/aliases/#packages */
51+ packages ?: string [ ] ;
52+ /** @see https://jamiemason.github.io/syncpack/config/aliases/#specifiertypes */
53+ specifierTypes ?: SpecifierType [ ] ;
54+ }
55+
4156export interface DependencyGroup {
4257 /** @see https://jamiemason.github.io/syncpack/config/version-groups/standard/#dependencies */
4358 dependencies ?: string [ ] ;
@@ -82,11 +97,11 @@ namespace VersionGroup {
8297 }
8398 export interface SameRange extends DependencyGroup {
8499 /** @see https://jamiemason.github.io/syncpack/config/version-groups/same-range/#policy */
85- policy : " sameRange" ;
100+ policy : ' sameRange' ;
86101 }
87102 export interface Standard extends DependencyGroup {
88103 /** @see https://jamiemason.github.io/syncpack/config/version-groups/lowest-version/#preferversion */
89- preferVersion ?: " highestSemver" | " lowestSemver" ;
104+ preferVersion ?: ' highestSemver' | ' lowestSemver' ;
90105 }
91106 export type Any =
92107 | Banned
@@ -104,25 +119,25 @@ namespace CustomType {
104119 /** @see https://jamiemason.github.io/syncpack/config/custom-types/#name */
105120 path : string ;
106121 /** @see https://jamiemason.github.io/syncpack/config/custom-types/#namestrategy */
107- strategy : " name~version" ;
122+ strategy : ' name~version' ;
108123 }
109124 export interface NamedVersionString {
110125 /** @see https://jamiemason.github.io/syncpack/config/custom-types/#name */
111126 path : string ;
112127 /** @see https://jamiemason.github.io/syncpack/config/custom-types/#namestrategy */
113- strategy : " name@version" ;
128+ strategy : ' name@version' ;
114129 }
115130 export interface UnnamedVersionString {
116131 /** @see https://jamiemason.github.io/syncpack/config/custom-types/#name */
117132 path : string ;
118133 /** @see https://jamiemason.github.io/syncpack/config/custom-types/#namestrategy */
119- strategy : " version" ;
134+ strategy : ' version' ;
120135 }
121136 export interface VersionsByName {
122137 /** @see https://jamiemason.github.io/syncpack/config/custom-types/#name */
123138 path : string ;
124139 /** @see https://jamiemason.github.io/syncpack/config/custom-types/#namestrategy */
125- strategy : " versionsByName" ;
140+ strategy : ' versionsByName' ;
126141 }
127142 export type Any =
128143 | NameAndVersionProps
@@ -131,35 +146,35 @@ namespace CustomType {
131146 | VersionsByName ;
132147}
133148
134- type SemverRange = "" | "*" | ">" | ">=" | ".x" | "<" | "<=" | "^" | "~" ;
149+ type SemverRange = '' | '*' | '>' | '>=' | '.x' | '<' | '<=' | '^' | '~' ;
135150
136151type DependencyType =
137- | " dev"
138- | " local"
139- | " overrides"
140- | " peer"
141- | " pnpmOverrides"
142- | " prod"
143- | " resolutions"
152+ | ' dev'
153+ | ' local'
154+ | ' overrides'
155+ | ' peer'
156+ | ' pnpmOverrides'
157+ | ' prod'
158+ | ' resolutions'
144159 | AnyString ;
145160
146161type SpecifierType =
147- | " alias"
148- | " exact"
149- | " file"
150- | " git"
151- | " latest"
152- | " major"
153- | " minor"
154- | " missing"
155- | " range"
156- | " range-complex"
157- | " range-major"
158- | " range-minor"
159- | " tag"
160- | " unsupported"
161- | " url"
162- | " workspace-protocol"
162+ | ' alias'
163+ | ' exact'
164+ | ' file'
165+ | ' git'
166+ | ' latest'
167+ | ' major'
168+ | ' minor'
169+ | ' missing'
170+ | ' range'
171+ | ' range-complex'
172+ | ' range-major'
173+ | ' range-minor'
174+ | ' tag'
175+ | ' unsupported'
176+ | ' url'
177+ | ' workspace-protocol'
163178 | AnyString ;
164179
165180type AnyString = string & { } ;
0 commit comments