fix: update MeiliSearch import to Meilisearch and adjust tsconfig paths
This commit is contained in:
19
data.ts
Normal file
19
data.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
|
||||
const reposPath = path.join(process.cwd(), 'starred-repos.json');
|
||||
|
||||
const reposData = fs.readFileSync(reposPath, 'utf-8');
|
||||
|
||||
export const repos = JSON.parse(reposData) as Repo[];
|
||||
|
||||
export type Repo = {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
author: string;
|
||||
stars: number;
|
||||
lastUpdated: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user