create-nextblock 0.2.66 → 0.2.67

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.
@@ -156,6 +156,9 @@ async function handleCommand(projectDirectory, options) {
156
156
  await transformPackageJson(projectDir);
157
157
  console.log(chalk.green('Dependencies updated for public packages.'));
158
158
 
159
+ await ensurePublicNpmrc(projectDir);
160
+ console.log(chalk.green('Enforced public registry for initial install.'));
161
+
159
162
  if (!skipInstall) {
160
163
  await installDependencies(projectDir);
161
164
  } else {
@@ -636,7 +639,7 @@ async function runSetupWizard(projectDir, projectName) {
636
639
  '',
637
640
  ].join('\n');
638
641
 
639
- await fs.appendFile(npmrcPath, npmrcContent);
642
+ await fs.writeFile(npmrcPath, npmrcContent);
640
643
  clack.note('Premium modules configured in .npmrc!');
641
644
  }
642
645
 
@@ -1445,6 +1448,15 @@ async function sanitizeNextConfig(projectDir, editorUtilNames = []) {
1445
1448
  await fs.writeFile(nextConfigPath, content);
1446
1449
  }
1447
1450
 
1451
+ async function ensurePublicNpmrc(projectDir) {
1452
+ const npmrcPath = resolve(projectDir, '.npmrc');
1453
+ // Force the public registry for the @nextblock-cms scope for the initial install
1454
+ // This ensures that even if the user has a global .npmrc pointing to GitHub,
1455
+ // we use the public ghost modules (or full modules) from npmjs.org first.
1456
+ const content = '@nextblock-cms:registry=https://registry.npmjs.org\n';
1457
+ await fs.writeFile(npmrcPath, content);
1458
+ }
1459
+
1448
1460
  async function transformPackageJson(projectDir) {
1449
1461
  const packageJsonPath = resolve(projectDir, 'package.json');
1450
1462
  if (!(await fs.pathExists(packageJsonPath))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nextblock",
3
- "version": "0.2.66",
3
+ "version": "0.2.67",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -41,8 +41,8 @@ If you are contributing to the core repo or prefer manual setup:
41
41
  1. **Clone the repo:**
42
42
 
43
43
  ```bash
44
- git clone https://github.com/Webman-Dev/nextblock-monorepo.git
45
- cd nextblock-monorepo
44
+ git clone https://github.com/nextblock-cms/nextblock.git
45
+ cd nextblock
46
46
  ```
47
47
 
48
48
  2. **Install dependencies:**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextblock-cms/template",
3
- "version": "0.2.44",
3
+ "version": "0.2.45",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "next dev",