@@ -109,7 +109,6 @@ const nodeMetaKeys = [
109109 'inBundle' ,
110110 'hasShrinkwrap' ,
111111 'hasInstallScript' ,
112- 'ideallyInert' ,
113112]
114113
115114const metaFieldFromPkg = ( pkg , key ) => {
@@ -136,10 +135,6 @@ const assertNoNewer = async (path, data, lockTime, dir, seen) => {
136135
137136 const parent = isParent ? dir : resolve ( dir , 'node_modules' )
138137 const rel = relpath ( path , dir )
139- const inert = data . packages [ rel ] ?. ideallyInert
140- if ( inert ) {
141- return
142- }
143138 seen . add ( rel )
144139 let entries
145140 if ( dir === path ) {
@@ -178,7 +173,7 @@ const assertNoNewer = async (path, data, lockTime, dir, seen) => {
178173
179174 // assert that all the entries in the lockfile were seen
180175 for ( const loc in data . packages ) {
181- if ( ! seen . has ( loc ) && ! data . packages [ loc ] . ideallyInert ) {
176+ if ( ! seen . has ( loc ) ) {
182177 throw new Error ( `missing from node_modules: ${ loc } ` )
183178 }
184179 }
@@ -788,10 +783,6 @@ class Shrinkwrap {
788783 // ok, I did my best! good luck!
789784 }
790785
791- if ( lock . ideallyInert ) {
792- meta . ideallyInert = true
793- }
794-
795786 if ( lock . bundled ) {
796787 meta . inBundle = true
797788 }
@@ -962,12 +953,6 @@ class Shrinkwrap {
962953 this . #buildLegacyLockfile( this . tree , this . data )
963954 }
964955
965- if ( ! this . hiddenLockfile ) {
966- for ( const node of Object . values ( this . data . packages ) ) {
967- delete node . ideallyInert
968- }
969- }
970-
971956 // lf version 1 = dependencies only
972957 // lf version 2 = dependencies and packages
973958 // lf version 3 = packages only
0 commit comments