Skip to content

Commit d3556b3

Browse files
authored
devDeps: typescript@~4.8.4->~5.1.6 (#93)
* deps/devDeps: lockbumps deps: yargs@17.7.1->17.7.2 deps: semver@7.5.0->7.5.4, 6.3.0->6.3.1 deps: lru-cache@9.1.1->9.1.2 yarn bumps jest/@jridgewell * devDeps: typescript@~4.8.4->~5.1.6 * fix default Env value to have explicit default EDITOR=undefined set * restore exclude entry of tsconfig.build.json * yarn dedupe
1 parent 203b612 commit d3556b3

File tree

4 files changed

+210
-323
lines changed

4 files changed

+210
-323
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"debug": "^4.3.4",
2929
"execa": "^5.1.1",
3030
"pony-cause": "^2.1.9",
31-
"semver": "^7.5.0",
31+
"semver": "^7.5.4",
3232
"which": "^3.0.0",
3333
"yaml": "^2.2.2",
3434
"yargs": "^17.7.1"
@@ -47,8 +47,8 @@
4747
"@types/rimraf": "^4.0.5",
4848
"@types/which": "^3.0.0",
4949
"@types/yargs": "^17.0.10",
50-
"@typescript-eslint/eslint-plugin": "^5.42.1",
51-
"@typescript-eslint/parser": "^5.42.1",
50+
"@typescript-eslint/eslint-plugin": "^5.62.0",
51+
"@typescript-eslint/parser": "^5.62.0",
5252
"deepmerge": "^4.2.2",
5353
"eslint": "^8.27.0",
5454
"eslint-config-prettier": "^8.5.0",
@@ -67,7 +67,7 @@
6767
"stdio-mock": "^1.2.0",
6868
"ts-jest": "^29.1.0",
6969
"ts-node": "^10.7.0",
70-
"typescript": "~4.8.4"
70+
"typescript": "~5.1.6"
7171
},
7272
"packageManager": "yarn@3.2.1",
7373
"engines": {

src/env.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ type Env = {
99
* this tool needs to access, whether their values are defined or not.
1010
*/
1111
export function getEnvironmentVariables(): Env {
12-
return ['EDITOR'].reduce((object, key) => {
13-
return { ...object, [key]: process.env[key] };
14-
}, {} as Env);
12+
return ['EDITOR'].reduce(
13+
(object, key) => {
14+
return { ...object, [key]: process.env[key] };
15+
},
16+
{
17+
EDITOR: undefined,
18+
},
19+
);
1520
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"strict": true,
1313
"target": "es2017"
1414
},
15-
"exclude": ["./dist/**/*"]
15+
"exclude": ["./dist/**/*", "node_modules"]
1616
}

0 commit comments

Comments
 (0)