From fa50e8cc4a94564d10b81e2512414d91fdb46274 Mon Sep 17 00:00:00 2001 From: Kia King Ishii Date: Wed, 24 Feb 2021 16:26:22 +0900 Subject: [PATCH] fix(types): `@` symbol not resolving on build files --- package.json | 2 +- src/client/app/composables/pageData.ts | 2 +- src/client/app/composables/siteData.ts | 2 +- src/shared/config.ts | 2 +- src/shared/tsconfig.json | 5 +---- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 4bf35b41..46fc953b 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "dependencies": { "@docsearch/css": "^1.0.0-alpha.28", "@docsearch/js": "^1.0.0-alpha.28", + "@types/markdown-it": "^10.0.2", "@vitejs/plugin-vue": "^1.1.4", "@vue/compiler-sfc": "^3.0.5", "@vue/server-renderer": "^3.0.5", @@ -97,7 +98,6 @@ "@types/koa": "^2.11.7", "@types/koa-static": "^4.0.1", "@types/lru-cache": "^5.1.0", - "@types/markdown-it": "^10.0.2", "@types/node": "^14.14.25", "@types/postcss-load-config": "^2.0.1", "chokidar": "^3.5.1", diff --git a/src/client/app/composables/pageData.ts b/src/client/app/composables/pageData.ts index 666af353..cae167a2 100644 --- a/src/client/app/composables/pageData.ts +++ b/src/client/app/composables/pageData.ts @@ -1,5 +1,5 @@ import { Ref, computed } from 'vue' -import { PageData } from '/@types/shared' +import { PageData } from '../../../../types/shared' import { Route, useRoute } from '../router' export type PageDataRef = Ref diff --git a/src/client/app/composables/siteData.ts b/src/client/app/composables/siteData.ts index 7829e317..2bb33874 100644 --- a/src/client/app/composables/siteData.ts +++ b/src/client/app/composables/siteData.ts @@ -1,5 +1,5 @@ import serialized from '@siteData' -import { SiteData } from '/@types/shared' +import { SiteData } from '../../../../types/shared' import { Ref, ref, readonly } from 'vue' export type SiteDataRef = Ref> diff --git a/src/shared/config.ts b/src/shared/config.ts index 378829e1..310a00bb 100644 --- a/src/shared/config.ts +++ b/src/shared/config.ts @@ -1,4 +1,4 @@ -import { SiteData } from '/@types/shared' +import { SiteData } from '../../../types/shared' const inBrowser = typeof window !== 'undefined' diff --git a/src/shared/tsconfig.json b/src/shared/tsconfig.json index b005ef10..507b92bc 100644 --- a/src/shared/tsconfig.json +++ b/src/shared/tsconfig.json @@ -1,10 +1,7 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "baseUrl": ".", - "paths": { - "/@types/*": ["../../types/*"] - } + "baseUrl": "." }, "include": [ ".",