Skip to content

Commit c4fc37c

Browse files
committed
create-mastro: fix Bun blog template
1 parent 84fd730 commit c4fc37c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

create-mastro/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ const main = async () => {
237237
await fs.rename(zipOutDir, dir);
238238

239239
if (packageManager === "npm") {
240+
// otherwise it's already correct from the template repo
240241
try {
241242
await updateDeps(dir, dependencies => {
242243
dependencies["@mastrojs/mastro"] = "npm:@jsr/mastrojs__mastro@^0";
@@ -257,7 +258,7 @@ const main = async () => {
257258
return fs.rename(join(templateOutDir, "examples", "blog", folder), join(dir, folder));
258259
}));
259260
await updateDeps(dir, deps => {
260-
deps["@mastrojs/markdown"] = packageManager === "npm"
261+
deps["@mastrojs/markdown"] = ["npm", "bun"].includes(packageManager)
261262
? "npm:@jsr/mastrojs__markdown@^0"
262263
: "jsr:@mastrojs/markdown@^0";
263264
});

create-mastro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mastrojs/create-mastro",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"type": "module",
55
"scripts": {
66
"npm-publish": "deno check && npm publish --access public"

0 commit comments

Comments
 (0)