@mastrojs/create-mastro 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +6 -4
  2. package/package.json +2 -5
package/index.js CHANGED
@@ -225,10 +225,12 @@ const main = async () => {
225
225
  ? undefined
226
226
  : fetch(`https://github.com/mastrojs/mastro/archive/refs/heads/main.zip`);
227
227
 
228
- const addSveltia = await select(
229
- "Do you want to add a git-based CMS? This adds a routes/admin/ folder.",
230
- ["No", "Add Sveltia CMS"],
231
- ) === "Add Sveltia CMS";
228
+ const addSveltia = template === "blog"
229
+ ? await select(
230
+ "Do you want to add a git-based CMS? This adds a routes/admin/ folder.",
231
+ ["No", "Add Sveltia CMS"],
232
+ ) === "Add Sveltia CMS"
233
+ : false;
232
234
 
233
235
  const zipOutDir = repoName + "-main"; // cannot be changed and is determined by the zip file
234
236
  await unzip({ fetchZipPromise, zipFileName: zipOutDir + ".zip" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastrojs/create-mastro",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "npm-publish": "deno check && npm publish --access public"
@@ -17,8 +17,5 @@
17
17
  "bugs": {
18
18
  "url": "https://github.com/mastrojs/mastro/issues"
19
19
  },
20
- "homepage": "https://mastrojs.github.io/",
21
- "volta": {
22
- "node": "24.9.0"
23
- }
20
+ "homepage": "https://mastrojs.github.io/"
24
21
  }