mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
chore: remove usage of the prefer-global rules (#11279)
This commit is contained in:
committed by
GitHub
parent
548d75258b
commit
9bf1f739e0
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env node
|
||||
/* eslint-disable n/shebang */
|
||||
|
||||
import { readFile } from 'node:fs/promises';
|
||||
import process from 'node:process';
|
||||
import { createCommand } from 'commander';
|
||||
@@ -20,11 +20,8 @@ void generateSplitDocumentation(
|
||||
opts.all
|
||||
? {}
|
||||
: {
|
||||
fetchPackageVersions: async (_) => {
|
||||
return ['main'];
|
||||
},
|
||||
fetchPackageVersionDocs: async (_, __) => {
|
||||
return JSON.parse(await readFile(`${process.cwd()}/docs/docs.api.json`, 'utf8'));
|
||||
},
|
||||
fetchPackageVersions: async (_) => ['main'],
|
||||
fetchPackageVersionDocs: async (_, __) =>
|
||||
JSON.parse(await readFile(`${process.cwd()}/docs/docs.api.json`, 'utf8')),
|
||||
},
|
||||
).then(() => console.log('Generated split documentation.'));
|
||||
|
||||
Reference in New Issue
Block a user