mirror of
https://github.com/crazy-max/ghaction-import-gpg.git
synced 2024-11-25 22:41:04 -05:00
use tsconfig for node16
This commit is contained in:
parent
4793705041
commit
50c50ad9e6
8 changed files with 11778 additions and 2626 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
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
9440
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue