diff --git a/package.json b/package.json index 5f9cca4..06994b1 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "classnames": "^2.5.1", "dayjs": "^1.11.11", "front-matter": "^4.0.2", + "glob": "^11.0.2", "markdown-to-jsx": "^7.7.1", "next": "^15.2.1", "react": "^19.0.0", @@ -23,6 +24,7 @@ "@stackbit/types": "^2.1.11", "@tailwindcss/typography": "^0.5.16", "@types/glob": "^8.1.0", + "@types/node": "22.15.15", "@types/react": "^19.0.1", "@types/react-syntax-highlighter": "^15.5.13", "eslint": "^9.21.0", diff --git a/src/utils/content.ts b/src/utils/content.ts index f442654..62a0d55 100644 --- a/src/utils/content.ts +++ b/src/utils/content.ts @@ -1,11 +1,12 @@ import * as fs from 'fs'; import path from 'path'; -import glob from 'glob'; -import frontmatter from 'front-matter'; +//import glob from 'glob'; import { allModels } from '.stackbit/models'; import * as types from '@/types'; -import { isDev } from './common'; import { PAGE_MODEL_NAMES, PageModelType } from '@/types/generated'; +import frontmatter from 'front-matter'; +import * as glob from 'glob'; +import { isDev } from './common'; const contentBaseDir = 'content'; const pagesBaseDir = contentBaseDir + '/pages';