mirror of
https://github.com/tiennm99/hugo-blox-builder.git
synced 2026-09-20 04:23:30 +00:00
chore: apply biome formatter to source files
This commit is contained in:
1 parent
27711e4f42
commit
b564ceaffa
10 files changed
+41
-99
No files matched your search
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
import { readdirSync, readFileSync, statSync } from "node:fs";
|
||||
import { join, resolve } from "node:path";
|
||||
import {readdirSync, readFileSync, statSync} from "node:fs";
|
||||
import {join, resolve} from "node:path";
|
||||
|
||||
const REQUIRED = ["tailwindcss", "@tailwindcss/cli"];
|
||||
const TEMPLATES_DIR = resolve(process.argv[2] ?? "templates");
|
||||
@@ -22,7 +22,7 @@ for (const name of readdirSync(TEMPLATES_DIR).sort()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const deps = { ...pkg.dependencies, ...pkg.devDependencies };
|
||||
const deps = {...pkg.dependencies, ...pkg.devDependencies};
|
||||
const missing = REQUIRED.filter((dep) => !(dep in deps));
|
||||
if (missing.length) {
|
||||
failures.push(`${name}: missing ${missing.join(", ")}`);
|
||||
@@ -34,9 +34,7 @@ for (const name of readdirSync(TEMPLATES_DIR).sort()) {
|
||||
if (failures.length) {
|
||||
console.error("✗ Template dependency audit failed:\n");
|
||||
for (const f of failures) console.error(` ${f}`);
|
||||
console.error(
|
||||
`\nHugo >= 0.161.0 requires the npm @tailwindcss/cli package — the standalone tailwindcss binary is no longer accepted.`,
|
||||
);
|
||||
console.error(`\nHugo >= 0.161.0 requires the npm @tailwindcss/cli package — the standalone tailwindcss binary is no longer accepted.`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user