From 2faf2e34331703b3bdea3eb487cb8799c8d65377 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 19 Sep 2023 18:13:57 +0200 Subject: refactor(build): replace paths aliases with relative paths Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases. --- src/services/graphql/articles.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/services/graphql/articles.ts') diff --git a/src/services/graphql/articles.ts b/src/services/graphql/articles.ts index 1a7b2e0..5f98fe9 100644 --- a/src/services/graphql/articles.ts +++ b/src/services/graphql/articles.ts @@ -1,14 +1,17 @@ -import { type Article, type ArticleCard, type Slug } from '@ts/types/app'; -import { GraphQLEdgesInput, GraphQLPageInfo } from '@ts/types/graphql/generics'; -import { EdgesResponse, EndCursorResponse } from '@ts/types/graphql/queries'; +import { type Article, type ArticleCard, type Slug } from '../../types/app'; +import { + GraphQLEdgesInput, + GraphQLPageInfo, +} from '../../types/graphql/generics'; +import { EdgesResponse, EndCursorResponse } from '../../types/graphql/queries'; import { type RawArticle, type RawArticlePreview, type TotalItems, -} from '@ts/types/raw-data'; -import { getAuthorFromRawData } from '@utils/helpers/author'; -import { getImageFromRawData } from '@utils/helpers/images'; -import { getPageLinkFromRawData } from '@utils/helpers/pages'; +} from '../../types/raw-data'; +import { getAuthorFromRawData } from '../../utils/helpers/author'; +import { getImageFromRawData } from '../../utils/helpers/images'; +import { getPageLinkFromRawData } from '../../utils/helpers/pages'; import { fetchAPI } from './api'; import { articleBySlugQuery, -- cgit v1.2.3