Skip to content

Commit

Permalink
fix: include NodeJS types in the frontend build
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Unix4ever committed Nov 2, 2024
1 parent abaee03 commit be3e67c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file modified frontend/bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@
"devDependencies": {
"@heroicons/vue": "^2.1.5",
"@types/luxon": "^3.4.2",
"@types/node": "^22.8.6",
"@types/pluralize": "^0.0.33",
"@vitejs/plugin-vue": "^5.1.4",
"eslint-plugin-typescript": "^0.14.0",
"autoprefixer": "^10.4.20",
"eslint-plugin-typescript": "^0.14.0",
"eslint-plugin-vue": "^9.29.1",
"fetch-intercept": "^2.4.0",
"jsdom": "^25.0.0",
Expand Down
2 changes: 1 addition & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
"baseUrl": ".",
"types": ["vite/client"],
"types": ["vite/client", "node"],

/* Bundler mode */
"allowSyntheticDefaultImports": true,
Expand Down

0 comments on commit be3e67c

Please sign in to comment.