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

devDeps: typescript@~4.8.4->~5.1.6 #93

Merged
merged 6 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"debug": "^4.3.4",
"execa": "^5.1.1",
"pony-cause": "^2.1.9",
"semver": "^7.5.0",
"semver": "^7.5.4",
"which": "^3.0.0",
"yaml": "^2.2.2",
"yargs": "^17.7.1"
Expand All @@ -47,8 +47,8 @@
"@types/rimraf": "^4.0.5",
"@types/which": "^3.0.0",
"@types/yargs": "^17.0.10",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"deepmerge": "^4.2.2",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.5.0",
Expand All @@ -67,7 +67,7 @@
"stdio-mock": "^1.2.0",
"ts-jest": "^29.1.0",
"ts-node": "^10.7.0",
"typescript": "~4.8.4"
"typescript": "~5.1.6"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
11 changes: 8 additions & 3 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ type Env = {
* this tool needs to access, whether their values are defined or not.
*/
export function getEnvironmentVariables(): Env {
return ['EDITOR'].reduce((object, key) => {
return { ...object, [key]: process.env[key] };
}, {} as Env);
return ['EDITOR'].reduce(
(object, key) => {
return { ...object, [key]: process.env[key] };
},
{
EDITOR: undefined,
},
);
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"strict": true,
"target": "es2017"
},
"exclude": ["./dist/**/*"]
"exclude": ["./dist/**/*", "node_modules"]
mcmire marked this conversation as resolved.
Show resolved Hide resolved
}
Loading
Loading