Skip to content

Commit

Permalink
chore : vite 절대경로 설정 (#15)
Browse files Browse the repository at this point in the history
* chore(common): vite 절대 경로 설정

* chore(common): lint-staged에서 prettier --write 제거
  • Loading branch information
DongjaJ authored Nov 1, 2023
1 parent 9ff431c commit 6e5a018
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"*.{ts,tsx}": ["eslint --fix", "prettier --write"]
"*.{ts,tsx}": ["eslint --fix"]
}
3 changes: 2 additions & 1 deletion apps/shelter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"zustand": "^4.4.4"
},
"devDependencies": {
"@types/node": "^20.8.10",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react-swc": "^3.4.0",
Expand All @@ -42,4 +43,4 @@
"msw": {
"workerDirectory": "public"
}
}
}
8 changes: 7 additions & 1 deletion apps/shelter/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"extends": "tsconfig/vite.json",
"include": ["src"]
"include": ["src"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
}
}
3 changes: 3 additions & 0 deletions apps/shelter/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: [{ find: '@', replacement: '/src' }],
},
});
1 change: 1 addition & 0 deletions apps/volunteer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"zustand": "^4.4.4"
},
"devDependencies": {
"@types/node": "^20.8.10",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react-swc": "^3.4.0",
Expand Down
8 changes: 7 additions & 1 deletion apps/volunteer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"extends": "tsconfig/vite.json",
"include": ["src"]
"include": ["src"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
}
}
3 changes: 3 additions & 0 deletions apps/volunteer/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: [{ find: '@', replacement: '/src' }],
},
});
22 changes: 17 additions & 5 deletions pnpm-lock.yaml

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

1 comment on commit 6e5a018

@vercel
Copy link

@vercel vercel bot commented on 6e5a018 Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

anifriends-frontend-volunteer – ./apps/volunteer

anifriends-frontend-volunteer.vercel.app
anifriends-frontend-volunteer-dongja.vercel.app
anifriends-frontend-volunteer-git-main-dongja.vercel.app

Please sign in to comment.