Skip to content

Commit be3e67c

Browse files
committed
fix: include NodeJS types in the frontend build
Something got changed after bun update and it was no longer working. Changed tsconfig to include node types and installed it as the dev deps. Signed-off-by: Artem Chernyshev <[email protected]>
1 parent abaee03 commit be3e67c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

frontend/bun.lockb

392 Bytes
Binary file not shown.

frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@
3737
"devDependencies": {
3838
"@heroicons/vue": "^2.1.5",
3939
"@types/luxon": "^3.4.2",
40+
"@types/node": "^22.8.6",
4041
"@types/pluralize": "^0.0.33",
4142
"@vitejs/plugin-vue": "^5.1.4",
42-
"eslint-plugin-typescript": "^0.14.0",
4343
"autoprefixer": "^10.4.20",
44+
"eslint-plugin-typescript": "^0.14.0",
4445
"eslint-plugin-vue": "^9.29.1",
4546
"fetch-intercept": "^2.4.0",
4647
"jsdom": "^25.0.0",

frontend/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"lib": ["ES2020", "DOM", "DOM.Iterable"],
77
"skipLibCheck": true,
88
"baseUrl": ".",
9-
"types": ["vite/client"],
9+
"types": ["vite/client", "node"],
1010

1111
/* Bundler mode */
1212
"allowSyntheticDefaultImports": true,

0 commit comments

Comments
 (0)