build(deps): update deps and fix compilation errors (#20)
* Update all deps. Rebuild yarn.lock. Fix tsc compilation errors. * cherry-pick dependency updates and typescript fixes
This commit is contained in:
Родитель
8731b4a180
Коммит
4f764827b1
13
package.json
13
package.json
|
@ -16,14 +16,15 @@
|
|||
"README.md"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@types/debug": "^4.1.4",
|
||||
"@types/fs-extra": "^7.0.0",
|
||||
"electron": "^5.0.2",
|
||||
"prettier": "1.18.2",
|
||||
"typescript": "^3.4.5"
|
||||
"@types/node": "^12.12.5",
|
||||
"@types/debug": "^4.1.5",
|
||||
"@types/fs-extra": "^8.0.1",
|
||||
"electron": "^7.0.1",
|
||||
"prettier": "^1.18.2",
|
||||
"typescript": "^3.6.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": "^4.1.1",
|
||||
"fs-extra": "^8.0.1"
|
||||
"fs-extra": "^8.1.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,11 +51,11 @@ export interface NotarizationInfo {
|
|||
}
|
||||
|
||||
export function parseNotarizationInfo(info: string): NotarizationInfo {
|
||||
const out: NotarizationInfo = {} as any;
|
||||
const matchToProperty = <K extends keyof NotarizationInfo, T extends NotarizationInfo[K]>(
|
||||
const out = {} as any;
|
||||
const matchToProperty = <K extends keyof NotarizationInfo>(
|
||||
key: K,
|
||||
r: RegExp,
|
||||
modifier?: (s: string) => T,
|
||||
modifier?: (s: string) => NotarizationInfo[K],
|
||||
) => {
|
||||
const exec = r.exec(info);
|
||||
if (exec) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import { isSecret } from './helpers';
|
|||
const d = debug('electron-notarize:spawn');
|
||||
|
||||
export interface SpawnResult {
|
||||
code: number;
|
||||
code: number | null;
|
||||
output: string;
|
||||
}
|
||||
|
||||
|
@ -25,8 +25,8 @@ export const spawn = (
|
|||
const child = cpSpawn(cmd, args, opts);
|
||||
const out: string[] = [];
|
||||
const dataHandler = (data: Buffer) => out.push(data.toString());
|
||||
child.stdout.on('data', dataHandler);
|
||||
child.stderr.on('data', dataHandler);
|
||||
child.stdout!.on('data', dataHandler);
|
||||
child.stderr!.on('data', dataHandler);
|
||||
return new Promise<SpawnResult>(resolve => {
|
||||
child.on('exit', code => {
|
||||
d(`cmd ${cmd} terminated with code: ${code}`);
|
||||
|
|
|
@ -1,27 +1,18 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es5",
|
||||
"target": "es2015",
|
||||
"outDir": "lib",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom",
|
||||
"es7"
|
||||
],
|
||||
"sourceMap": true,
|
||||
"rootDir": "src",
|
||||
"jsx": "react",
|
||||
"experimentalDecorators": true,
|
||||
"strictNullChecks": true,
|
||||
"noUnusedLocals": true,
|
||||
"noImplicitThis": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitUseStrict": true,
|
||||
"declaration": true
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"public",
|
||||
"lib"
|
||||
]
|
||||
"declaration": true,
|
||||
"skipDefaultLibCheck": true,
|
||||
"skipLibCheck": true,
|
||||
}
|
||||
}
|
1054
yarn.lock
1054
yarn.lock
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче