Skip to content

Commit

Permalink
added import alias
Browse files Browse the repository at this point in the history
  • Loading branch information
nmacdon3 committed Jan 21, 2023
1 parent 9b343d3 commit 2f5eee3
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Resume from "./components/Resume";
import Resume from "~/components/Resume";

function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/About.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { aboutText } from "../content";
import { aboutText } from "~/content";
import Section from "./Section";

const About = () => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Education.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { education } from "../content";
import { motif } from "../classes";
import { education } from "~/content";
import { motif } from "~/classes";
import Section from "./Section";

const Education = () => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Experience.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import classnames from "classnames";
import { HiChevronRight } from "react-icons/hi";
import { accent } from "../classes";
import { jobs } from "../content";
import { accent } from "~/classes";
import { jobs } from "~/content";
import Job from "./Job";
import Section from "./Section";

Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AiOutlinePhone, AiFillLinkedin } from "react-icons/ai";
import { BsCode } from "react-icons/bs";
import { FaReact } from "react-icons/fa";
import { HiOutlineMail } from "react-icons/hi";
import { contactInfo } from "../content";
import { contactInfo } from "~/content";

const FooterItem = ({
icon,
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HiPlus } from "react-icons/hi";
import PROFILE_PIC from "../assets/brighter.png";
import COVER_PIC from "../assets/cover.png";
import PROFILE_PIC from "~/assets/brighter.png";
import COVER_PIC from "~/assets/cover.png";

const Header = () => {
return (
Expand Down
6 changes: 3 additions & 3 deletions src/components/Job.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { motif } from "../classes";
import { JobType } from "../content";
import { motif } from "~/classes";
import { JobType } from "~/content";
import { BsDot } from "react-icons/bs";
import SubHeading from "../components/SubHeading";
import SubHeading from "~/components/SubHeading";

const Job = ({ job }: { job: JobType }) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/Skills.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { technicalSkills, professionalSkills } from "../content";
import { technicalSkills, professionalSkills } from "~/content";
import Section from "./Section";
import SubHeading from "./SubHeading";

Expand Down
8 changes: 6 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
"jsx": "react-jsx",
"baseUrl": "./",
"paths": {
"~/*": ["src/*"]
}
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
"exclude": ["node_modules", "dist", "public"]
}
8 changes: 0 additions & 8 deletions tsconfig.node.json

This file was deleted.

4 changes: 3 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: "/Resume/",
resolve: {
alias: { "~": "/src" },
},
});

0 comments on commit 2f5eee3

Please sign in to comment.