@@ -113,7 +113,7 @@ exports.run = async (options) => {
113
113
114
114
const allowScripts = pkg . allowScripts || { } ;
115
115
116
- const allowedScripts = queue
116
+ const allowedPackages = queue
117
117
. map ( ( path ) => {
118
118
119
119
const childPkg = require ( Path . join ( cwd , path , 'package.json' ) ) ;
@@ -141,7 +141,7 @@ exports.run = async (options) => {
141
141
}
142
142
143
143
if ( ! Semver . validRange ( allowScripts [ name ] ) ) {
144
- throw new Error ( `Invalid version range in allowedScripts [${ name } ]: ${ allowScripts [ name ] } ` ) ;
144
+ throw new Error ( `Invalid version range in allowScripts [${ name } ]: ${ allowScripts [ name ] } ` ) ;
145
145
}
146
146
147
147
if ( ! Semver . satisfies ( childPkg . version , allowScripts [ name ] ) ) {
@@ -154,15 +154,15 @@ exports.run = async (options) => {
154
154
155
155
await internals . runScript ( 'preinstall' , { pkg, path : '' , cwd, unsafePerm : true } , options ) ;
156
156
157
- for ( const { path, childPkg } of allowedScripts ) {
157
+ for ( const { path, childPkg } of allowedPackages ) {
158
158
await internals . runScript ( 'preinstall' , { pkg : childPkg , path, cwd } , options ) ;
159
159
}
160
160
161
- for ( const { path, childPkg } of allowedScripts ) {
161
+ for ( const { path, childPkg } of allowedPackages ) {
162
162
await internals . runScript ( 'install' , { pkg : childPkg , path, cwd } , options ) ;
163
163
}
164
164
165
- for ( const { path, childPkg } of allowedScripts ) {
165
+ for ( const { path, childPkg } of allowedPackages ) {
166
166
await internals . runScript ( 'postinstall' , { pkg : childPkg , path, cwd } , options ) ;
167
167
}
168
168
0 commit comments