mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
ci: remove debug logging
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import { readFile, readdir } from 'node:fs/promises';
|
import { readFile } from 'node:fs/promises';
|
||||||
import { dirname } from 'node:path';
|
|
||||||
import process from 'node:process';
|
import process from 'node:process';
|
||||||
import { getInput, setFailed } from '@actions/core';
|
import { getInput, setFailed } from '@actions/core';
|
||||||
import { create } from '@actions/glob';
|
import { create } from '@actions/glob';
|
||||||
@@ -24,7 +23,6 @@ const promises = [];
|
|||||||
const globber = await create(`packages/${pkg}/docs/docs.api.json`);
|
const globber = await create(`packages/${pkg}/docs/docs.api.json`);
|
||||||
console.log('Glob: ', await globber.glob());
|
console.log('Glob: ', await globber.glob());
|
||||||
for await (const file of globber.globGenerator()) {
|
for await (const file of globber.globGenerator()) {
|
||||||
console.log('Dir:', dirname(file), 'Files:', await readdir(dirname(file)));
|
|
||||||
const data = await readFile(file, 'utf8');
|
const data = await readFile(file, 'utf8');
|
||||||
try {
|
try {
|
||||||
promises.push(
|
promises.push(
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { readFile, readdir } from 'node:fs/promises';
|
import { readFile } from 'node:fs/promises';
|
||||||
import { basename, dirname, relative, sep } from 'node:path';
|
import { basename, dirname, relative, sep } from 'node:path';
|
||||||
import { cwd } from 'node:process';
|
import { cwd } from 'node:process';
|
||||||
import { getInput } from '@actions/core';
|
import { getInput } from '@actions/core';
|
||||||
@@ -15,7 +15,6 @@ const promises = [];
|
|||||||
const globber = await create(`packages/${pkg}/docs/${pkg}/split/*.api.json`);
|
const globber = await create(`packages/${pkg}/docs/${pkg}/split/*.api.json`);
|
||||||
console.log('Glob: ', await globber.glob());
|
console.log('Glob: ', await globber.glob());
|
||||||
for await (const file of globber.globGenerator()) {
|
for await (const file of globber.globGenerator()) {
|
||||||
console.log('Dir:', dirname(file), 'Files:', await readdir(dirname(file)));
|
|
||||||
const data = await readFile(file, 'utf8');
|
const data = await readFile(file, 'utf8');
|
||||||
const pkgName = dirname(relative(cwd(), file)).split(sep)[1];
|
const pkgName = dirname(relative(cwd(), file)).split(sep)[1];
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user