use tsconfig for node16

This commit is contained in:
uzlopak 2022-10-20 16:22:18 +02:00
parent 4793705041
commit 50c50ad9e6
8 changed files with 11778 additions and 2626 deletions

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

9440
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -28,6 +28,8 @@
"openpgp": "^5.5.0"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.3",
"@types/addressparser": "^1.0.1",
"@types/node": "^16.11.26",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",

View file

@ -121,7 +121,7 @@ async function run(): Promise<void> {
await git.setConfig('push.gpgsign', inputs.gitPushGpgsign, inputs.gitConfigGlobal);
}
}
} catch (error) {
} catch (error: any) {
core.setFailed(error.message);
}
}
@ -137,7 +137,7 @@ async function cleanup(): Promise<void> {
core.info('Killing GnuPG agent');
await gpg.killAgent();
} catch (error) {
} catch (error: any) {
core.warning(error.message);
}
}

View file

@ -20,7 +20,7 @@ export const readPrivateKey = async (key: string): Promise<PrivateKey> => {
});
const address = await privateKey.getPrimaryUser().then(primaryUser => {
return addressparser(primaryUser.user.userID?.userID)[0];
return addressparser(primaryUser.user.userID?.userID!)[0];
});
return {

View file

@ -1,16 +1,5 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"newLine": "lf",
"outDir": "./lib",
"rootDir": "./src",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitAny": false,
"useUnknownInCatchVariables": false,
},
"extends": "./node_modules/@tsconfig/node16/tsconfig.json",
"exclude": [
"node_modules",
"**/*.test.ts",

4939
yarn.lock

File diff suppressed because it is too large Load diff