@deneb-ui/create-template 2.0.23 → 2.0.24

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/index.js CHANGED
@@ -109,6 +109,19 @@ function runScaffolding(targetInput) {
109
109
 
110
110
  if (installRes.status === 0) {
111
111
  console.log(`\n\x1b[32m✔ All dependencies and DENEB UI components installed successfully!\x1b[0m\n`);
112
+ try {
113
+ const denebBin = path.join(targetPath, 'node_modules', '@deneb-ui', 'cli', 'bin', 'index.js');
114
+ if (fs.existsSync(denebBin)) {
115
+ console.log(`\x1b[36mAa Downloading and configuring DENEB Google Fonts...\x1b[0m\n`);
116
+ require('node:child_process').spawnSync(process.execPath, [denebBin, 'fonts', 'install', '.'], {
117
+ cwd: targetPath,
118
+ stdio: 'inherit',
119
+ shell: false,
120
+ });
121
+ }
122
+ } catch (err) {
123
+ console.log(`\x1b[33m! Fonts: run "npx deneb fonts install ." inside ${folderName} (${err.message})\x1b[0m\n`);
124
+ }
112
125
  } else {
113
126
  console.log(`\n\x1b[33m! Note: npm install exited with code ${installRes.status}. Run "npm install" inside ${folderName}.\x1b[0m\n`);
114
127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deneb-ui/create-template",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "description": "Scaffold production-ready DENEB UI storefront templates for Next.js in seconds.",
5
5
  "bin": {
6
6
  "create-deneb-template": "bin/index.js",
@@ -11,7 +11,8 @@
11
11
  "zip": "deneb zip .",
12
12
  "validate-and-zip": "deneb validate-and-zip .",
13
13
  "package:template": "deneb package .",
14
- "update:deneb": "deneb update"
14
+ "update:deneb": "deneb update",
15
+ "fonts:install": "deneb fonts install ."
15
16
  },
16
17
  "dependencies": {
17
18
  "next": "15.5.23",