/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
import path from "node:path";

//#region src/css/runner.helpers.ts
const getMainCssSummaryMessage = (options) => {
	const { optimizationStats, sizeGzipBytes, formatBytes } = options;
	if (!optimizationStats) return `Main CSS: ${formatBytes(sizeGzipBytes)} gzip`;
	const { originalSizeGzip, fontFacesRemoved, emptyRulesRemoved } = optimizationStats;
	const savedBytesGzip = originalSizeGzip - sizeGzipBytes;
	if (savedBytesGzip <= 0) return `Main CSS: ${formatBytes(sizeGzipBytes)} gzip`;
	return `Main CSS: ${formatBytes(sizeGzipBytes)} gzip)(optimized: saved ${formatBytes(savedBytesGzip)} gzip, ${fontFacesRemoved} unused @font-face, ${emptyRulesRemoved} empty rules removed)`;
};
const getWatchDirectoryGroups = (entryDirs, dirs) => {
	const watchDirs = [...new Set(dirs.filter((dir) => !dir.split(path.sep).includes("node_modules")))];
	return {
		watchDirs,
		filteredPackageDirs: watchDirs.filter((dir) => !entryDirs.includes(dir))
	};
};

//#endregion
export { getMainCssSummaryMessage, getWatchDirectoryGroups };
//# sourceMappingURL=runner.helpers.js.map