refactor: move lib/* to src/
This commit is contained in:
parent
2745bb32c7
commit
7ae10b4ecc
6 changed files with 5 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import { prisma } from "~/server/db";
|
import { prisma } from "~/server/db";
|
||||||
import { getAllTrainingsWithMetadata } from "~/lib/content/training";
|
import { getAllTrainingsWithMetadata } from "~/content/training";
|
||||||
|
|
||||||
async function seed() {
|
async function seed() {
|
||||||
const trainings = await getAllTrainingsWithMetadata();
|
const trainings = await getAllTrainingsWithMetadata();
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { type GetServerSideProps } from "next";
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
|
||||||
import { formatCurrency } from "~/lib/currency/formatter";
|
import { formatCurrency } from "~/currency/formatter";
|
||||||
|
|
||||||
import { getServerAuthSession } from "~/server/auth";
|
import { getServerAuthSession } from "~/server/auth";
|
||||||
import { prisma } from "~/server/db";
|
import { prisma } from "~/server/db";
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@ import { type GetServerSideProps } from "next";
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
|
||||||
import { formatCurrency } from "~/lib/currency/formatter";
|
import { formatCurrency } from "~/currency/formatter";
|
||||||
|
|
||||||
import { getServerAuthSession } from "~/server/auth";
|
import { getServerAuthSession } from "~/server/auth";
|
||||||
import { prisma } from "~/server/db";
|
import { prisma } from "~/server/db";
|
||||||
import { Training } from "lib/content/training";
|
import { Training } from "~/content/training";
|
||||||
import { Layout } from "~/components/Layout";
|
import { Layout } from "~/components/Layout";
|
||||||
import { Button } from "~/components/Button";
|
import { Button } from "~/components/Button";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,7 @@
|
||||||
"noUncheckedIndexedAccess": true,
|
"noUncheckedIndexedAccess": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"~/*": ["./src/*"],
|
"~/*": ["./src/*"]
|
||||||
"~/lib/*": ["./lib/*"]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
|
|
|
||||||
Reference in a new issue