mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
fix: header link on packages with entrypoints (#11285)
* fix: header link on packages with entrypoints * types: add types --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -3,7 +3,7 @@ import { join } from 'node:path';
|
||||
import { PACKAGES_WITH_ENTRY_POINTS } from './constants';
|
||||
import { ENV } from './env';
|
||||
|
||||
export async function fetchEntryPoints(packageName: string, version: string) {
|
||||
export async function fetchEntryPoints(packageName: string, version: string): Promise<EntryPoint[] | null> {
|
||||
const hasEntryPoint = PACKAGES_WITH_ENTRY_POINTS.includes(packageName);
|
||||
|
||||
if (!hasEntryPoint) {
|
||||
@@ -37,3 +37,7 @@ export async function fetchEntryPoints(packageName: string, version: string) {
|
||||
|
||||
return fileContent.json();
|
||||
}
|
||||
|
||||
export interface EntryPoint {
|
||||
readonly entryPoint: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user