move utils out of app

This commit is contained in:
Ivan Dimitrov 2023-11-19 08:18:30 +02:00
parent df74cb16c8
commit fab7b6718e
7 changed files with 4 additions and 4 deletions

2
new.ts
View File

@ -1,4 +1,4 @@
import { baseDir, getAllContent } from "@/app/lib/content";
import { baseDir, getAllContent } from "$lib/content";
import fs from "fs"
const args = process.argv.slice(2)

View File

@ -1,5 +1,5 @@
import './globals.css'
import Navbar from './components/navbar'
import Navbar from '$components/navbar'
import type { Metadata } from 'next'
export const metadata: Metadata = {

View File

@ -20,8 +20,8 @@
],
"paths": {
"@/*": ["./src/*"],
"$components/*": ["./src/app/components/*"],
"$lib/*": ["./src/app/lib/*"]
"$components/*": ["./src/components/*"],
"$lib/*": ["./src/lib/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],