@@ -135,7 +135,7 @@ class Builder {
135
135
] )
136
136
} )
137
137
138
- await this . copyDependencies ( "code-server" , this . rootPath , this . buildPath , {
138
+ await this . copyDependencies ( "code-server" , this . rootPath , this . buildPath , false , {
139
139
commit,
140
140
version : this . codeServerVersion ,
141
141
} )
@@ -181,13 +181,19 @@ class Builder {
181
181
] )
182
182
} )
183
183
184
- await this . copyDependencies ( "vs code" , this . vscodeSourcePath , vscodeBuildPath , {
184
+ await this . copyDependencies ( "vs code" , this . vscodeSourcePath , vscodeBuildPath , true , {
185
185
commit,
186
186
date : new Date ( ) . toISOString ( ) ,
187
187
} )
188
188
}
189
189
190
- private async copyDependencies ( name : string , sourcePath : string , buildPath : string , merge : object ) : Promise < void > {
190
+ private async copyDependencies (
191
+ name : string ,
192
+ sourcePath : string ,
193
+ buildPath : string ,
194
+ ignoreScripts : boolean ,
195
+ merge : object ,
196
+ ) : Promise < void > {
191
197
await this . task ( `copying ${ name } dependencies` , async ( ) => {
192
198
return Promise . all (
193
199
[ "node_modules" , "package.json" , "yarn.lock" ] . map ( ( fileName ) => {
@@ -214,7 +220,9 @@ class Builder {
214
220
215
221
if ( process . env . MINIFY ) {
216
222
await this . task ( `restricting ${ name } to production dependencies` , async ( ) => {
217
- await util . promisify ( cp . exec ) ( "yarn --production --ignore-scripts" , { cwd : buildPath } )
223
+ await util . promisify ( cp . exec ) ( `yarn --production ${ ignoreScripts ? "--ignore-scripts" : "" } ` , {
224
+ cwd : buildPath ,
225
+ } )
218
226
} )
219
227
}
220
228
}
0 commit comments