Skip to content

Commit

Permalink
🐛 Fix bug with "@" dir not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Jan 2, 2020
1 parent d9fdc93 commit 1bceeec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@staart/site",
"version": "1.12.1",
"version": "1.12.2",
"module": "dist/module.js",
"main": "dist/index.js",
"bin": "./dist/index.js",
Expand Down
16 changes: 9 additions & 7 deletions src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,15 @@ ${filesList}`;
join(await getDistPath(), "assets", "staart.js")
);
}
const userFiles = await listContentFiles("@");
for await (const file of userFiles) {
await copyFile(
join(await getDistPath(), `@/${file.replace(".md", ".html")}`),
join(await getDistPath(), `@${file.replace(".md", ".html")}`)
);
}
try {
const userFiles = await listContentFiles("@");
for await (const file of userFiles) {
await copyFile(
join(await getDistPath(), `@/${file.replace(".md", ".html")}`),
join(await getDistPath(), `@${file.replace(".md", ".html")}`)
);
}
} catch (error) {}
await copyAssets();
};

Expand Down

1 comment on commit 1bceeec

@vercel
Copy link

@vercel vercel bot commented on 1bceeec Jan 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.