Skip to content

Commit

Permalink
fix(app): relocate sx.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
VdustR committed Jun 16, 2024
1 parent 939e01b commit 606bb9d
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 10 deletions.
3 changes: 2 additions & 1 deletion packages/vite-react-19/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"devDependencies": {
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1"
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
"vite-tsconfig-paths": "^4.3.2"
}
}
2 changes: 1 addition & 1 deletion packages/vite-react-19/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box, Button, Card, Typography } from "@mui/joy";
import type { SxProps } from "@mui/joy/styles/types";
import useEventCallback from "@mui/utils/useEventCallback";
import { sxUtils } from "@repo/utils/sx";
import { sxUtils } from "@utils/sx";
import { type ComponentProps, type FC, useState } from "react";

import { Layout } from "./layout";
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-react-19/src/TopBar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Box, Typography } from "@mui/joy";
import type { SxProps } from "@mui/joy/styles/types";
import { sxUtils } from "@repo/utils/sx";
import { sxUtils } from "@utils/sx";

import { ModeToggle } from "./ModeSwitch";

Expand Down
2 changes: 1 addition & 1 deletion packages/vite-react-19/src/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Box, Container } from "@mui/joy";
import type { SxProps } from "@mui/joy/styles/types";
import { sxUtils } from "@repo/utils/sx";
import { sxUtils } from "@utils/sx";
import type { ReactNode } from "react";

import { TopBar } from "./TopBar";
Expand Down
7 changes: 6 additions & 1 deletion packages/vite-react-19/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"extends": ["@repo/tsconfig/app/tsconfig"]
"extends": ["@repo/tsconfig/app/tsconfig"],
"compilerOptions": {
"paths": {
"@utils/*": ["./utils/*"]
}
}
}
File renamed without changes.
4 changes: 4 additions & 0 deletions packages/vite-react-19/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";

export default defineConfig({
plugins: [
tsconfigPaths({
projects: ["./src/tsconfig.json"],
}),
react({
babel: {
plugins: [["babel-plugin-react-compiler"]],
Expand Down
51 changes: 46 additions & 5 deletions pnpm-lock.yaml

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

0 comments on commit 606bb9d

Please sign in to comment.