@nextsparkjs/cli 0.1.0-beta.46 → 0.1.0-beta.48

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.
package/bin/nextspark.js CHANGED
File without changes
package/dist/cli.js CHANGED
@@ -1789,6 +1789,18 @@ async function copyEnvExampleToEnv() {
1789
1789
  await fs2.copy(envExamplePath, envPath);
1790
1790
  }
1791
1791
  }
1792
+ async function updateGlobalsCss(config2) {
1793
+ const globalsCssPath = path2.resolve(process.cwd(), "app", "globals.css");
1794
+ if (!await fs2.pathExists(globalsCssPath)) {
1795
+ return;
1796
+ }
1797
+ let content = await fs2.readFile(globalsCssPath, "utf-8");
1798
+ content = content.replace(
1799
+ /@import\s+["']\.\.\/contents\/themes\/[^/]+\/styles\/globals\.css["'];?/,
1800
+ `@import "../contents/themes/${config2.projectSlug}/styles/globals.css";`
1801
+ );
1802
+ await fs2.writeFile(globalsCssPath, content, "utf-8");
1803
+ }
1792
1804
 
1793
1805
  // src/wizard/generators/messages-generator.ts
1794
1806
  import fs3 from "fs-extra";
@@ -2495,6 +2507,7 @@ contents/themes/*/tests/jest/coverage
2495
2507
  }
2496
2508
  async function generateProject(config2) {
2497
2509
  await copyProjectFiles();
2510
+ await updateGlobalsCss(config2);
2498
2511
  await copyStarterTheme(config2);
2499
2512
  await copyContentFeatures(config2);
2500
2513
  await updateThemeConfig(config2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextsparkjs/cli",
3
- "version": "0.1.0-beta.46",
3
+ "version": "0.1.0-beta.48",
4
4
  "description": "NextSpark CLI - Complete development toolkit",
5
5
  "type": "module",
6
6
  "bin": {
@@ -12,9 +12,13 @@
12
12
  "dist",
13
13
  "bin"
14
14
  ],
15
+ "scripts": {
16
+ "build": "tsup src/cli.ts --format esm --dts --outDir dist",
17
+ "dev": "tsup src/cli.ts --format esm --watch"
18
+ },
15
19
  "dependencies": {
16
20
  "@inquirer/prompts": "^7.2.0",
17
- "@nextsparkjs/core": "^0.1.0-beta.34",
21
+ "@nextsparkjs/core": "^0.1.0-beta.48",
18
22
  "chalk": "^5.3.0",
19
23
  "commander": "^12.0.0",
20
24
  "dotenv": "^17.2.2",
@@ -23,12 +27,12 @@
23
27
  "tar": "^7.0.0"
24
28
  },
25
29
  "devDependencies": {
30
+ "@nextsparkjs/core": "workspace:*",
26
31
  "@types/fs-extra": "^11.0.4",
27
32
  "@types/node": "^20.0.0",
28
33
  "@types/tar": "^6.1.0",
29
34
  "tsup": "^8.0.0",
30
- "typescript": "^5.0.0",
31
- "@nextsparkjs/core": "0.1.0-beta.34"
35
+ "typescript": "^5.0.0"
32
36
  },
33
37
  "keywords": [
34
38
  "nextspark",
@@ -45,9 +49,5 @@
45
49
  },
46
50
  "engines": {
47
51
  "node": ">=18.0.0"
48
- },
49
- "scripts": {
50
- "build": "tsup src/cli.ts --format esm --dts --outDir dist",
51
- "dev": "tsup src/cli.ts --format esm --watch"
52
52
  }
53
- }
53
+ }