juxscript 1.0.65 → 1.0.66
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/cli.js +2 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -302,6 +302,7 @@ function findJuxFiles(dir, fileList = []) {
|
|
|
302
302
|
|
|
303
303
|
fs.mkdirSync(juxDir, { recursive: true }); // create it.
|
|
304
304
|
|
|
305
|
+
let filesCopied = 0;
|
|
305
306
|
// Copy default presets
|
|
306
307
|
const defaultPresetSrc = path.join(PATHS.packageRoot, 'create');
|
|
307
308
|
if (fs.existsSync(defaultPresetSrc)) {
|
|
@@ -317,7 +318,7 @@ function findJuxFiles(dir, fileList = []) {
|
|
|
317
318
|
|
|
318
319
|
// ✅ ADD: Safe fallback if presets are missing so build doesn't fail
|
|
319
320
|
if (filesCopied === 0) {
|
|
320
|
-
console.warn('⚠️
|
|
321
|
+
console.warn('⚠️ Install pages not available. Creating default index.jux...');
|
|
321
322
|
const indexContent = `import { jux } from 'juxscript';
|
|
322
323
|
|
|
323
324
|
jux.hero('welcome', {
|