Make NIP.md public if it exists

This commit is contained in:
Alex Gleason committed 2026-02-05 23:46:25 -06:00
1 parent 236eb0c16a
commit b8a3571e10
1 file changed
+12
+12
View File
@@ -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();