Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use tsconfig for node16 #153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

9,440 changes: 9,440 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand All @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/openpgp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
13 changes: 1 addition & 12 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5,727 changes: 2,724 additions & 3,003 deletions yarn.lock

Large diffs are not rendered by default.