Skip to content

Commit

Permalink
fix: build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
melchor629 committed Feb 17, 2024
1 parent b0a6f5d commit e410847
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 43 deletions.
57 changes: 16 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
},
"devDependencies": {
"prettier": "^3.1.1",
"serve": "^14.0.1"
"serve": "^14.0.1",
"typescript": "^5.3.3"
}
}
2 changes: 1 addition & 1 deletion packages/hny-scripts/config/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const host = process.env.HOST || '0.0.0.0'
const port = parseInt(process.env.PORT || '3000', 10)

export default defineConfig({
plugins: [react(), checker({ typescript: paths.useTypeScript })],
plugins: [react(), ...(paths.useTypeScript ? [checker({ typescript: true })] : [])],
root: paths.projectPath,
base: paths.publicPath,
build: {
Expand Down

0 comments on commit e410847

Please sign in to comment.