From 84f3514899cc8f5a4cc0c1f2b49650e2d83e8aba Mon Sep 17 00:00:00 2001 From: Parinya T Date: Wed, 22 Mar 2023 23:54:04 +0700 Subject: [PATCH 1/2] fix: build error astro@2.1.4 && update astro@2.1.5 --- package.json | 2 +- tsconfig.json | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3d34e615d..db026a367 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "dependencies": { "@astrojs/rss": "^2.3.0", "@resvg/resvg-js": "^2.4.1", - "astro": "^2.1.3", + "astro": "^2.1.5", "fuse.js": "^6.6.2", "github-slugger": "^2.0.0", "remark-collapse": "^0.1.2", diff --git a/tsconfig.json b/tsconfig.json index 76732982a..30725a1ad 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,17 @@ { "extends": "astro/tsconfigs/strict", "compilerOptions": { - "baseUrl": ".", + "baseUrl": "src", "paths": { - "@*": ["./src/*"] + "@assets/*": ["assets/*"], + "@config": ["config.ts"], + "@components/*": ["components/*"], + "@content/*": ["content/*"], + "@layouts/*": ["layouts/*"], + "@pages/*": ["pages/*"], + "@scripts/*": ["scripts/*"], + "@styles/*": ["styles/*"], + "@utils/*": ["utils/*"] } } } From 97c1a30f21255ed446d2c1b34811b30639416e5e Mon Sep 17 00:00:00 2001 From: Parinya T Date: Thu, 23 Mar 2023 23:22:41 +0700 Subject: [PATCH 2/2] fix: tsconfig.json --- tsconfig.json | 1 - 1 file changed, 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 30725a1ad..11ed177ab 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,6 @@ "@content/*": ["content/*"], "@layouts/*": ["layouts/*"], "@pages/*": ["pages/*"], - "@scripts/*": ["scripts/*"], "@styles/*": ["styles/*"], "@utils/*": ["utils/*"] }