From b8a3571e1014a9f6e2010798fe238f380d0ab22a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 5 Feb 2026 23:46:25 -0600 Subject: [PATCH] Make NIP.md public if it exists --- src/lib/build/index.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lib/build/index.ts b/src/lib/build/index.ts index a4d7d38a..e104e3cd 100644 --- a/src/lib/build/index.ts +++ b/src/lib/build/index.ts @@ -287,6 +287,18 @@ export async function buildProject(options: BuildProjectOptions): Promise<{ // Public directory doesn't exist, which is fine } + // Copy NIP.md if it exists in project root + try { + const nipMdPath = `${projectPath}/NIP.md`; + const nipMdStat = await fs.stat(nipMdPath); + if (nipMdStat.isFile()) { + const nipMdContent = await fs.readFile(nipMdPath); + await fs.writeFile(`${outputPath}/NIP.md`, nipMdContent); + } + } catch { + // NIP.md doesn't exist, which is fine + } + // Extract project ID from the project path // Expected format: /projects/{projectId} const projectId = projectPath.split('/').pop();