create-geekron-website 0.2.2 → 0.2.4

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/dist/index.js +12 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11109,22 +11109,29 @@ var CMS_CONFIGS = {
11109
11109
  name: "strapi",
11110
11110
  displayName: "Strapi",
11111
11111
  createCommand: (pm, serverDir) => {
11112
+ const quotedPath = `"${serverDir}"`;
11112
11113
  switch (pm) {
11113
11114
  case "bun":
11114
- return ["bunx", "create-strapi-app@latest", serverDir];
11115
+ return ["bunx", "create-strapi-app@latest", quotedPath];
11115
11116
  case "pnpm":
11116
- return ["pnpm", "dlx", "create-strapi-app@latest", serverDir];
11117
+ return ["pnpm", "dlx", "create-strapi-app@latest", quotedPath];
11117
11118
  case "yarn":
11118
- return ["yarn", "dlx", "create-strapi-app@latest", serverDir];
11119
+ return ["yarn", "dlx", "create-strapi-app@latest", quotedPath];
11119
11120
  case "npm":
11120
11121
  default:
11121
- return ["npx", "create-strapi-app@latest", serverDir];
11122
+ return ["npx", "create-strapi-app@latest", quotedPath];
11122
11123
  }
11123
11124
  },
11124
11125
  dependencies: {
11125
11126
  "@geekron/strapi": "latest"
11126
11127
  },
11127
11128
  filesToCopy: [
11129
+ {
11130
+ source: "strapi/src/admin",
11131
+ destination: "src/admin",
11132
+ isDirectory: true,
11133
+ overwrite: false
11134
+ },
11128
11135
  {
11129
11136
  source: "strapi/src/api",
11130
11137
  destination: "src/api",
@@ -11135,7 +11142,7 @@ var CMS_CONFIGS = {
11135
11142
  source: "strapi/src/components",
11136
11143
  destination: "src/components",
11137
11144
  isDirectory: true,
11138
- overwrite: true
11145
+ overwrite: false
11139
11146
  },
11140
11147
  {
11141
11148
  source: "strapi/config/plugins.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-geekron-website",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "CLI tool to create Geekron websites",
5
5
  "author": {
6
6
  "name": "Geekron",