@nextsparkjs/cli 0.1.0-beta.8 → 0.1.0-beta.9

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/cli.js +10 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1228,10 +1228,8 @@ async function updateDevConfig(config) {
1228
1228
  return;
1229
1229
  }
1230
1230
  let content = await fs.readFile(devConfigPath, "utf-8");
1231
- content = content.replace(/@starter\.dev/g, `@${config.projectSlug}.dev`);
1232
1231
  content = content.replace(/STARTER THEME/g, `${config.projectName.toUpperCase()}`);
1233
1232
  content = content.replace(/Starter Theme/g, config.projectName);
1234
- content = content.replace(/Starter Team/g, `${config.projectName} Team`);
1235
1233
  await fs.writeFile(devConfigPath, content, "utf-8");
1236
1234
  }
1237
1235
  async function updateAppConfig(config) {
@@ -1824,11 +1822,18 @@ async function copyPagesFeature(config) {
1824
1822
  const targetThemeDir = getTargetThemeDir(config.projectSlug);
1825
1823
  const sourcePagesEntity = path4.join(featuresDir, "pages", "entities", "pages");
1826
1824
  const targetEntitiesDir = path4.join(targetThemeDir, "entities", "pages");
1827
- if (!await fs4.pathExists(sourcePagesEntity)) {
1825
+ if (await fs4.pathExists(sourcePagesEntity)) {
1826
+ await fs4.copy(sourcePagesEntity, targetEntitiesDir);
1827
+ } else {
1828
1828
  console.warn(`Warning: Pages entity not found at: ${sourcePagesEntity}`);
1829
- return;
1830
1829
  }
1831
- await fs4.copy(sourcePagesEntity, targetEntitiesDir);
1830
+ const sourceHeroBlock = path4.join(featuresDir, "pages", "blocks", "hero");
1831
+ const targetHeroBlock = path4.join(targetThemeDir, "blocks", "hero");
1832
+ if (await fs4.pathExists(sourceHeroBlock)) {
1833
+ await fs4.copy(sourceHeroBlock, targetHeroBlock);
1834
+ } else {
1835
+ console.warn(`Warning: Hero block not found at: ${sourceHeroBlock}`);
1836
+ }
1832
1837
  }
1833
1838
  async function copyBlogFeature(config) {
1834
1839
  const featuresDir = getFeaturesDir();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextsparkjs/cli",
3
- "version": "0.1.0-beta.8",
3
+ "version": "0.1.0-beta.9",
4
4
  "description": "NextSpark CLI - Complete development toolkit",
5
5
  "type": "module",
6
6
  "bin": {