mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
ci: update scripts for documentation changes (#9055)
* ci: update scripts for documentation changes * refactor: use tsconfig files Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import { chdir } from 'node:process';
|
||||
import { copy } from 'fs-extra';
|
||||
import { parse as parseYAML, stringify as stringifyYAML } from 'yaml';
|
||||
import cliffJumperJSON from './template/.cliff-jumperrc.json';
|
||||
import apiExtractorJSON from './template/api-extractor.json';
|
||||
import templateJSON from './template/template.package.json';
|
||||
|
||||
interface LabelerData {
|
||||
@@ -52,6 +53,15 @@ export async function createPackage(packageName: string, packageDescription?: st
|
||||
|
||||
await writeFile('.cliff-jumperrc.json', JSON.stringify(newCliffJumperJSON, null, 2));
|
||||
|
||||
// Update api-extractor.json
|
||||
const newApiExtractorJSON = { ...apiExtractorJSON };
|
||||
newApiExtractorJSON.docModel.projectFolderUrl = newApiExtractorJSON.docModel.projectFolderUrl.replace(
|
||||
'{name}',
|
||||
packageName,
|
||||
);
|
||||
|
||||
await writeFile('api-extractor.json', JSON.stringify(newApiExtractorJSON, null, 2));
|
||||
|
||||
// Move to github directory
|
||||
chdir(join('..', '..', '.github'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user