Skip to content

Commit

Permalink
feat(lib): use @/* path when import slug
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed May 29, 2023
1 parent 96fe0e8 commit c8b71ea
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion content/definitions/Post.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineDocumentType } from 'contentlayer/source-files'
import { slug } from '../../src/lib/slug'
import { slug } from '@/lib/slug'
import { authors } from '../../src/lib/authors'

export const Post = defineDocumentType(() => ({
Expand Down
2 changes: 1 addition & 1 deletion src/lib/authors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { allPosts } from 'contentlayer/generated'

import { slug } from './slug'
import { slug } from '@/lib/slug'
import { removeRepeatedValuesFromArray } from '@/lib/remove-repeated-values-from-array'
import { getSortedPosts } from './getSortedPosts'

Expand Down
2 changes: 1 addition & 1 deletion src/lib/categories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { allPosts } from 'contentlayer/generated'
import { slug } from './slug'
import { slug } from '@/lib/slug'
import { removeRepeatedValuesFromArray } from '@/lib/remove-repeated-values-from-array'
import { getFrequencyOfValue } from '@/lib/get-frequency-of-value'

Expand Down
2 changes: 1 addition & 1 deletion src/lib/match.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Post } from 'contentlayer/generated'
import { slug } from './slug'
import { slug } from '@/lib/slug'

export function searchMath(post: Post, search: string) {
const sluggedSearch = slug(search)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/tags.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { allPosts } from 'contentlayer/generated'
import { slug } from './slug'
import { slug } from '@/lib/slug'
import { removeRepeatedValuesFromArray } from '@/lib/remove-repeated-values-from-array'

const getRawTagListFromPosts = (): string[] => {
Expand Down

0 comments on commit c8b71ea

Please sign in to comment.