Skip to main content
Glama
getEntries.ts587 B
import type { IntlayerConfig } from '@intlayer/types'; import fg from 'fast-glob'; import type { EntryObject } from 'webpack'; import { getFileHash } from './utils'; export const getEntries = (configuration: IntlayerConfig) => { const { content } = configuration; const { watchedFilesPatternWithPath } = content; const entries = fg.sync(watchedFilesPatternWithPath).reduce((obj, el) => { const hash = getFileHash(el); obj[`intlayer-content/${hash}`] = { import: el, dependOn: undefined, }; return obj; }, {} as EntryObject); return entries; };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aymericzip/intlayer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server