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/
/build/
build/
# 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;

View file

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

View file

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

View file

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