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

//#region ../cli/dist/utils/getDirChoices.mjs
/*! © 2026 Yahoo, Inc. UDS CLI v0.0.0-development */
const lessCommonDirs = [
	"node_modules",
	".git",
	".github",
	".husky",
	".vscode",
	"dist",
	"build",
	"public"
];
const getDirChoices = (rootDir = ".") => {
	return fs.readdirSync(rootDir).filter((dir) => fs.statSync(dir).isDirectory() && dir !== "node_modules" && !dir.startsWith(".")).map((dir) => ({
		title: dir,
		value: dir,
		selected: !lessCommonDirs.includes(dir)
	}));
};

//#endregion
export { getDirChoices };