From 2118732e3657cf6a52d50f31bf2331b38b4f2b32 Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Mon, 22 Apr 2024 13:39:22 +0200 Subject: [PATCH] Remove unneeded check --- scripts/gen-tags.mjs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/scripts/gen-tags.mjs b/scripts/gen-tags.mjs index 9dec08b7..eba5851f 100755 --- a/scripts/gen-tags.mjs +++ b/scripts/gen-tags.mjs @@ -1,17 +1,9 @@ import { promises as fs } from "fs"; import matter from "gray-matter"; -import process from "node:process"; - -const repoRoot = "docs"; - -if (!process.cwd().endsWith(repoRoot)) { - console.info("Tags should be generated from the repo's root directory"); - process.exit(1); -} - -console.info("Generating tags…"); (async function genTags() { + console.info("Generating tags…"); + const pagesDir = "src/pages"; const wholeDir = await fs.readdir(pagesDir, { recursive: true });