flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
14 lines (11 loc) • 480 B
JavaScript
import { getPackageJson } from '../utils/get-package-json.js';
async function ensureTailwind() {
const packageJson = await getPackageJson();
const packageName = "tailwindcss";
if (!(packageJson?.dependencies?.[packageName] || packageJson?.devDependencies?.[packageName])) {
console.error("Install Tailwind CSS first.\n\nSee: https://tailwindcss.com/docs/installation");
process.exit(1);
}
}
export { ensureTailwind };
//# sourceMappingURL=ensure-tailwind.js.map