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"
|
"openpgp": "^5.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@tsconfig/node16": "^1.0.3",
|
||||||
|
"@types/addressparser": "^1.0.1",
|
||||||
"@types/node": "^16.11.26",
|
"@types/node": "^16.11.26",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
||||||
"@typescript-eslint/parser": "^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);
|
await git.setConfig('push.gpgsign', inputs.gitPushGpgsign, inputs.gitConfigGlobal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,7 @@ async function cleanup(): Promise<void> {
|
||||||
|
|
||||||
core.info('Killing GnuPG agent');
|
core.info('Killing GnuPG agent');
|
||||||
await gpg.killAgent();
|
await gpg.killAgent();
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
core.warning(error.message);
|
core.warning(error.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ export const readPrivateKey = async (key: string): Promise<PrivateKey> => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const address = await privateKey.getPrimaryUser().then(primaryUser => {
|
const address = await privateKey.getPrimaryUser().then(primaryUser => {
|
||||||
return addressparser(primaryUser.user.userID?.userID)[0];
|
return addressparser(primaryUser.user.userID?.userID!)[0];
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,16 +1,5 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"extends": "./node_modules/@tsconfig/node16/tsconfig.json",
|
||||||
"target": "es6",
|
|
||||||
"module": "commonjs",
|
|
||||||
"newLine": "lf",
|
|
||||||
"outDir": "./lib",
|
|
||||||
"rootDir": "./src",
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"strict": true,
|
|
||||||
"noImplicitAny": false,
|
|
||||||
"useUnknownInCatchVariables": false,
|
|
||||||
},
|
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"**/*.test.ts",
|
"**/*.test.ts",
|
||||||
|
|
Loading…
Reference in a new issue