1
0
Fork 0

refactor: move lib/* to src/

This commit is contained in:
Vojtěch Mareš 2023-07-04 18:47:05 +02:00
parent 2745bb32c7
commit 7ae10b4ecc
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
6 changed files with 5 additions and 6 deletions

View file

@ -1,5 +1,5 @@
import { prisma } from "~/server/db";
import { getAllTrainingsWithMetadata } from "~/lib/content/training";
import { getAllTrainingsWithMetadata } from "~/content/training";
async function seed() {
const trainings = await getAllTrainingsWithMetadata();

View file

@ -3,7 +3,7 @@ import { type GetServerSideProps } from "next";
import Head from "next/head";
import Link from "next/link";
import { formatCurrency } from "~/lib/currency/formatter";
import { formatCurrency } from "~/currency/formatter";
import { getServerAuthSession } from "~/server/auth";
import { prisma } from "~/server/db";

View file

@ -2,11 +2,11 @@ import { type GetServerSideProps } from "next";
import Head from "next/head";
import Link from "next/link";
import { formatCurrency } from "~/lib/currency/formatter";
import { formatCurrency } from "~/currency/formatter";
import { getServerAuthSession } from "~/server/auth";
import { prisma } from "~/server/db";
import { Training } from "lib/content/training";
import { Training } from "~/content/training";
import { Layout } from "~/components/Layout";
import { Button } from "~/components/Button";

View file

@ -18,8 +18,7 @@
"noUncheckedIndexedAccess": true,
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"],
"~/lib/*": ["./lib/*"]
"~/*": ["./src/*"]
}
},
"include": [