@@ -35,22 +35,6 @@ aliases:
35
35
when :
36
36
not : *manual-build-conditions
37
37
38
- licenses-generate : &licensesGenerate
39
- run :
40
- name : Generate license file for all vscode dependencies
41
- command : |
42
- sudo npm i -g license-checker
43
- sudo license-checker --json --out licenses.json
44
- shell : /bin/bash
45
-
46
- licenses-generate-windows : &licensesGenerateWindows
47
- run :
48
- name : Generate license file for all vscode dependencies
49
- command : |
50
- npm i -g license-checker
51
- license-checker --json --out licenses.json
52
- shell : powershell.exe
53
-
54
38
orbs :
55
39
node : circleci/node@5.3.0
56
40
win : circleci/windows@5.0.0
@@ -195,7 +179,6 @@ jobs:
195
179
name : Install dependencies
196
180
command : |
197
181
yarn install --frozen-lockfile --cache-folder ~/.cache/yarn
198
- - << : *licensesGenerate
199
182
- run :
200
183
name : Build .vsix package
201
184
command : |
@@ -205,13 +188,13 @@ jobs:
205
188
206
189
if [ << parameters.env >> == 'prod' ]; then
207
190
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY'" >> $envFile
208
- yarn package:prod --out ${packagePath}
191
+ yarn package:prod --ignore-other-target-folders --target linux-x64 -- out ${packagePath}
209
192
exit 0;
210
193
fi
211
194
212
195
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY_STAGE'" >> $envFile
213
196
sed -i "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" $envFile
214
- yarn package:stage --out ${packagePath}
197
+ yarn package:stage --ignore-other-target-folders --target linux-x64 -- out ${packagePath}
215
198
- persist_to_workspace :
216
199
root : .
217
200
paths :
@@ -245,7 +228,6 @@ jobs:
245
228
command : |
246
229
yarn install
247
230
no_output_timeout : 15m
248
- - << : *licensesGenerate
249
231
- run :
250
232
name : Build .vsix package
251
233
command : |
@@ -257,27 +239,27 @@ jobs:
257
239
258
240
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY_STAGE'" >> $envFile
259
241
sed -i '' "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" $envFile
260
- yarn package:stage --target darwin-<< parameters.target >> --out ${packagePath}-<< parameters.target >>.vsix
242
+ yarn package:stage --ignore-other-target-folders -- target darwin-<< parameters.target >> --out ${packagePath}-<< parameters.target >>.vsix
261
243
exit 0;
262
244
fi
263
245
264
246
if [ << parameters.env >> == 'prod' ]; then
265
247
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY'" >> $envFile
266
248
yarn download:backend arm64
267
- yarn package:prod --target darwin-arm64 --out ${packagePath}-arm64.vsix
249
+ yarn package:prod --ignore-other-target-folders -- target darwin-arm64 --out ${packagePath}-arm64.vsix
268
250
269
251
yarn download:backend x64
270
- yarn package:prod --target darwin-x64 --out ${packagePath}-x64.vsix
252
+ yarn package:prod --ignore-other-target-folders -- target darwin-x64 --out ${packagePath}-x64.vsix
271
253
exit 0;
272
254
fi
273
255
274
256
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY_STAGE'" >> $envFile
275
257
sed -i '' "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" $envFile
276
258
yarn download:backend arm64
277
- yarn package:stage --target darwin-arm64 --out ${packagePath}-arm64.vsix
259
+ yarn package:stage --ignore-other-target-folders -- target darwin-arm64 --out ${packagePath}-arm64.vsix
278
260
279
261
yarn download:backend x64
280
- yarn package:stage --target darwin-x64 --out ${packagePath}-x64.vsix
262
+ yarn package:stage --ignore-other-target-folders -- target darwin-x64 --out ${packagePath}-x64.vsix
281
263
- persist_to_workspace :
282
264
root : .
283
265
paths :
@@ -310,7 +292,6 @@ jobs:
310
292
yarn install
311
293
shell : bash.exe
312
294
no_output_timeout : 15m
313
- - << : *licensesGenerateWindows
314
295
- run :
315
296
name : Build .vsix package
316
297
command : |
@@ -320,12 +301,12 @@ jobs:
320
301
321
302
if [ << parameters.env >> == 'prod' ]; then
322
303
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY'" >> $envFile
323
- yarn package:prod --out ${packagePath}
304
+ yarn package:prod --ignore-other-target-folders --target win32-x64 -- out ${packagePath}
324
305
exit 0;
325
306
fi
326
307
327
308
sed -i "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" $envFile
328
- yarn package:stage --out ${packagePath}
309
+ yarn package:stage --ignore-other-target-folders --target win32-x64 -- out ${packagePath}
329
310
shell : bash.exe
330
311
no_output_timeout : 20m
331
312
- persist_to_workspace :
0 commit comments