refactor(create-discord-bot): replace deps with built-in apis (#10971)

This commit is contained in:
Superchupu
2025-07-08 09:14:19 +02:00
committed by GitHub
parent 024ae5c566
commit ee3ca6f7c6
5 changed files with 25 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
import { execSync } from 'node:child_process';
import process from 'node:process';
import picocolors from 'picocolors';
import { styleText } from 'node:util';
import { DEFAULT_PACKAGE_MANAGER, NODE_PACKAGE_MANAGERS } from '../util/constants.js';
/**
@@ -36,7 +36,8 @@ export function resolvePackageManager(): PackageManager {
}
console.error(
picocolors.yellow(
styleText(
'yellow',
`Detected an unsupported package manager (${npmConfigUserAgent}). Falling back to ${DEFAULT_PACKAGE_MANAGER}.`,
),
);