juxscript 1.0.48 → 1.0.49
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 -2
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -74,13 +74,13 @@ if (command === 'create') {
|
|
|
74
74
|
// ✅ Copy juxconfig.example.js from the package
|
|
75
75
|
const packageRoot = path.resolve(__dirname, '..');
|
|
76
76
|
const configExampleSrc = path.join(packageRoot, 'juxconfig.example.js');
|
|
77
|
-
|
|
77
|
+
|
|
78
78
|
if (fs.existsSync(configExampleSrc)) {
|
|
79
79
|
// Copy as juxconfig.js (working config)
|
|
80
80
|
const configDest = path.join(process.cwd(), 'juxconfig.js');
|
|
81
81
|
fs.copyFileSync(configExampleSrc, configDest);
|
|
82
82
|
console.log(` ✓ juxconfig.js created`);
|
|
83
|
-
|
|
83
|
+
|
|
84
84
|
// Also copy as .example (reference)
|
|
85
85
|
const configExampleDest = path.join(process.cwd(), 'juxconfig.example.js');
|
|
86
86
|
fs.copyFileSync(configExampleSrc, configExampleDest);
|