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:
Example: Exclude `file`
Everything except specifiers of the format file:path/to/package.tgz
will be inspected:
Available values
All are enabled by default.
Value | Example |
---|---|
alias | npm:foo@1.2.3 |
exact | 8.1.2 |
file | file:path/to/foo.tgz , file:path/to/directory |
hosted-git | git+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 |
tag | alpha , canary |
unsupported | $typescript , 1.typo.wat |
url | https://server.com/foo.tgz |
workspace-protocol | workspace:* , workspace:~ , workspace:^ |