File tree Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change
1
+ declare namespace NodeJS {
2
+ interface Process {
3
+ noAsar ?: boolean ;
4
+ }
5
+ }
Original file line number Diff line number Diff line change @@ -47,13 +47,10 @@ export class FiddleFactory {
47
47
await fs . remove ( folder ) ;
48
48
49
49
// Disable asar in case any deps bundle Electron - ex. @electron/remote
50
- // @ts -ignore
51
50
const { noAsar } = process ;
52
- // @ts -ignore
53
51
process . noAsar = true ;
54
52
await fs . copy ( source , folder ) ;
55
- // @ts -ignore
56
- process . noAsar = noAsar ; // eslint-disable-line
53
+ process . noAsar = noAsar ;
57
54
58
55
return new Fiddle ( path . join ( folder , 'main.js' ) , source ) ;
59
56
}
Original file line number Diff line number Diff line change @@ -346,26 +346,20 @@ export class Installer extends EventEmitter {
346
346
if ( alreadyExtracted ) {
347
347
await this . installVersionImpl ( version , zipFile , ( ) => {
348
348
// Simply copy over the files from preinstalled version to `electronInstall`
349
- // @ts -ignore
350
349
const { noAsar } = process ;
351
- // @ts -ignore
352
350
process . noAsar = true ;
353
351
fs . copySync ( zipFile , electronInstall ) ;
354
- // @ts -ignore
355
- process . noAsar = noAsar ; // eslint-disable-line
352
+ process . noAsar = noAsar ;
356
353
} ) ;
357
354
} else {
358
355
await this . installVersionImpl ( version , zipFile , async ( ) => {
359
356
// FIXME(anyone) is there a less awful way to wrangle asar
360
- // @ts -ignore: yes, I know noAsar isn't defined in process
361
357
const { noAsar } = process ;
362
358
try {
363
- // @ts -ignore: yes, I know noAsar isn't defined in process
364
359
process . noAsar = true ;
365
360
await extract ( zipFile , { dir : electronInstall } ) ;
366
361
} finally {
367
- // @ts -ignore: yes, I know noAsar isn't defined in process
368
- process . noAsar = noAsar ; // eslint-disable-line
362
+ process . noAsar = noAsar ;
369
363
}
370
364
} ) ;
371
365
}
You can’t perform that action at this time.
0 commit comments