File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,8 +65,6 @@ export default async function convertPackageLockToShrinkwrap(workspaceRootDir, t
6565 if ( pkg . link ) {
6666 pkg = packageLockJson . packages [ pkg . resolved ] ;
6767 }
68-
69- const originalLocation = packageLoc ;
7068 if ( pkg . name === targetPackageName ) {
7169 // Make the target package the root package
7270 packageLoc = "" ;
@@ -86,14 +84,14 @@ export default async function convertPackageLockToShrinkwrap(workspaceRootDir, t
8684 pkg . integrity = integrity ;
8785 }
8886
89- extractedPackages [ packageLoc ] = { pkg, originalLocation } ;
87+ extractedPackages [ packageLoc ] = pkg ;
9088 }
9189
9290 // Sort packages by key to ensure consistent order (just like the npm cli does it)
9391 const sortedExtractedPackages = Object . create ( null ) ;
9492 const sortedKeys = Object . keys ( extractedPackages ) . sort ( ( a , b ) => a . localeCompare ( b ) ) ;
9593 for ( const key of sortedKeys ) {
96- sortedExtractedPackages [ key ] = extractedPackages [ key ] . pkg ;
94+ sortedExtractedPackages [ key ] = extractedPackages [ key ] ;
9795 }
9896
9997 // Generate npm-shrinkwrap.json
You can’t perform that action at this time.
0 commit comments