From 82de608a70ea87ae195c485b6351901a2d360dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 20 Dec 2023 17:54:35 -0500 Subject: [PATCH] fix(nuxt): edit path aliases rollup fucking sucks --- nuxt.config.ts | 13 +++++++++++++ tsconfig.json | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 6a09acf..d3ca9d7 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -115,6 +115,19 @@ export default defineNuxtConfig({ // }, // }, // ssr: false, + alias: { + "@models": "./lib/models", + "@client": "./lib/client", + "@server": "./lib/server", + "@models/*": "./models/*", + "@client/*": "./lib/client/*", + "@server/*": "./lib/server/*", + // "@models/**": "./models/**", + // "@client/**": "./lib/client/**", + // "@server/**": "./lib/server/**", + "@functions": "./lib/functions.ts", + "@dbconfig": "./lib/dbconfig.ts", + }, sourcemap: { server: true, client: true, diff --git a/tsconfig.json b/tsconfig.json index cab916c..80ec1b2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,9 +13,9 @@ "@models/*": ["./models/*"], "@client/*": ["./lib/client/*"], "@server/*": ["./lib/server/*"], - "@models/**": ["./models/**"], - "@client/**": ["./lib/client/**"], - "@server/**": ["./lib/server/**"], + // "@models/**": ["./models/**"], + // "@client/**": ["./lib/client/**"], + // "@server/**": ["./lib/server/**"], "@functions": ["./lib/functions.ts"], "@dbconfig": ["./lib/dbconfig.ts"] }