Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: Update build and typecheck scripts in React Router 7 example
  • Loading branch information
bryanjtc committed Oct 25, 2024
commit f94a30cfb92050e952ee6e33b5d1afa82260cbed
3 changes: 2 additions & 1 deletion examples/react-router-7-app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ dist-ssr
*.sln
*.sw?

.react-router
.react-router
build
9 changes: 5 additions & 4 deletions examples/react-router-7-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
"dev": "run-p dev:mock dev:client",
"dev:client": "react-router dev",
"dev:mock": "prism mock ../petstore.yaml --dynamic",
"build": "tsc && react-router build",
"build": "pnpm typecheck && react-router build",
"preview": "react-router-serve ./build/server/index.js",
"typegen": "react-router typegen",
"typecheck": "pnpm typegen && tsc",
"generate:api": "rimraf ./openapi && node ../../dist/cli.mjs -i ../petstore.yaml --format=biome --lint=biome",
"test:generated": "tsc -p ./tsconfig.json --noEmit",
"typegen": "react-router typegen"
"test:generated": "tsc -p ./tsconfig.json --noEmit"
},
"dependencies": {
"@react-router/fs-routes": "^7.0.0-pre.2",
Expand All @@ -37,4 +38,4 @@
"typescript": "^5.4.5",
"vite": "^5.0.12"
}
}
}
Loading