Skip to content

specifierTypes

Dependencies can be toggled on and off by the type of version specifier they have via this property.

Example: Only include `latest` and `workspace-protocol`

Only * and workspace:*, workspace:~ etc will be inspected:

.syncpackrc
{
"specifierTypes": ["latest", "workspace-protocol"]
}
Example: Exclude `file`

Everything except specifiers of the format file:path/to/package.tgz will be inspected:

.syncpackrc
{
"specifierTypes": ["!file"]
}

Available values

All are enabled by default.

ValueExample
aliasnpm:foo@1.2.3
exact8.1.2
filefile:path/to/foo.tgz, file:path/to/directory
hosted-gitgit+https://github.com/user/foo, git+ssh://git@notgithub.com/user/foo#1.2.3 etc
latest* or latest
range^4.1.1, >=5.0.0, ~1.2.1 etc
tagalpha, canary
unsupported$typescript, 1.typo.wat
urlhttps://server.com/foo.tgz
workspace-protocolworkspace:*, workspace:~, workspace:^