Fix bun run build

This commit is contained in:
Mona Mayrhofer 2025-12-26 14:12:06 +01:00
parent b4f7769375
commit 7462e56d74
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 374AB152BDEBA1AE
5 changed files with 7 additions and 6 deletions

2
.gitignore vendored
View file

@ -10,7 +10,7 @@ node_modules
# React Router # React Router
.react-router/ .react-router/
/build/ build/
# misc # misc

View file

@ -1,3 +1,3 @@
import { type RouteConfig, index } from "@react-router/dev/routes"; import { index, type RouteConfig } from "@react-router/dev/routes";
export default [index("routes/home.tsx")] satisfies RouteConfig; export default [index("routes/home.tsx")] satisfies RouteConfig;

View file

@ -1,5 +1,5 @@
import type { Route } from "./+types/home";
import { Welcome } from "../welcome/welcome"; import { Welcome } from "../welcome/welcome";
import type { Route } from "./+types/home";
export function meta(_args: Route.MetaArgs) { export function meta(_args: Route.MetaArgs) {
return [ return [

View file

@ -7,7 +7,7 @@
"build": "react-router build", "build": "react-router build",
"dev": "react-router dev", "dev": "react-router dev",
"start": "react-router-serve ./build/server/index.js", "start": "react-router-serve ./build/server/index.js",
"typecheck": "react-router typegen && tsc", "typecheck": "react-router typegen && tsc -p tsconfig.cssmodulehack.json",
"test": "vitest" "test": "vitest"
}, },
"dependencies": { "dependencies": {

View file

@ -2,7 +2,8 @@
"files": [], "files": [],
"extends": "../../tsconfig.base.json", "extends": "../../tsconfig.base.json",
"include": [ "include": [
"**/*", "app/**/*",
"*.ts",
"**/.server/**/*", "**/.server/**/*",
"**/.client/**/*", "**/.client/**/*",
".react-router/types/**/*" ".react-router/types/**/*"
@ -12,7 +13,7 @@
{ {
"name": "typescript-plugin-css-modules", "name": "typescript-plugin-css-modules",
"options": { "options": {
"classnameTransform": "camelCaseOnly", "classnameTransform": "camelCaseOnly"
} }
} }
], ],