diff --git a/src/types.ts b/src/types.ts index c7679e503d..6032146ad4 100644 --- a/src/types.ts +++ b/src/types.ts @@ -55,7 +55,10 @@ export type DependencyShrinkwrap = { id?: string, dev?: true, optional?: true, - name?: string, // is only needed for packages that are hosted not in the npm registry + // name and version are only needed + // for packages that are hosted not in the npm registry + name?: string, + version?: string, resolution: ShrinkwrapResolution, dependencies?: ResolvedDependencies, optionalDependencies?: ResolvedDependencies,