Skip to content

Commit 028bb89

Browse files
committed
Add missing type-check task to tools/shell
There was a type error here from the createEnvironment changes yesterday that were not caught because of this
1 parent 2461d46 commit 028bb89

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

tools/shell/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"scripts": {
55
"start": "tsx ./src/index.ts",
66
"lint": "biome check . --write",
7-
"lint-check": "biome check ."
7+
"lint-check": "biome check .",
8+
"type-check": "tsc --noEmit"
89
},
910
"dependencies": {
1011
"@dotkomonline/db": "workspace:*",

tools/shell/src/env.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import { createEnvironment, variable } from "@dotkomonline/environment"
22

3-
export const env = createEnvironment({
4-
DATABASE_URL: variable,
5-
AWS_REGION: variable,
6-
MANAGEMENT_OAUTH_CLIENT_ID: variable,
7-
MANAGEMENT_OAUTH_CLIENT_SECRET: variable,
8-
OAUTH_ISSUER: variable,
9-
})
3+
export const env = createEnvironment(
4+
{
5+
DATABASE_URL: variable,
6+
AWS_REGION: variable,
7+
MANAGEMENT_OAUTH_CLIENT_ID: variable,
8+
MANAGEMENT_OAUTH_CLIENT_SECRET: variable,
9+
OAUTH_ISSUER: variable,
10+
},
11+
{
12+
env: process.env,
13+
skipValidation: false,
14+
}
15+
)

0 commit comments

Comments
 (0)