@meltstudio/meltctl 2.4.0 → 2.4.1
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.
|
@@ -76,7 +76,8 @@ export async function initCommand(options = {}) {
|
|
|
76
76
|
console.log(` • ${chalk.cyan('.melt/outputs/plans/')}`);
|
|
77
77
|
console.log(` • ${chalk.cyan('.melt/outputs/implementations/')}`);
|
|
78
78
|
console.log(` • ${chalk.cyan('.melt/outputs/reviews/')}`);
|
|
79
|
-
console.log(` • ${chalk.cyan('.melt/scripts/
|
|
79
|
+
console.log(` • ${chalk.cyan('.melt/scripts/sh/')}`);
|
|
80
|
+
console.log(` • ${chalk.cyan('.melt/scripts/ps/')}`);
|
|
80
81
|
console.log(` • ${chalk.cyan('.melt/templates/')}`);
|
|
81
82
|
console.log();
|
|
82
83
|
console.log('Next steps:');
|
|
@@ -100,7 +101,8 @@ function createDirectoryStructure(baseDir, shell) {
|
|
|
100
101
|
'.melt/outputs/plans',
|
|
101
102
|
'.melt/outputs/implementations',
|
|
102
103
|
'.melt/outputs/reviews',
|
|
103
|
-
|
|
104
|
+
'.melt/scripts/sh',
|
|
105
|
+
'.melt/scripts/ps',
|
|
104
106
|
'.melt/templates',
|
|
105
107
|
];
|
|
106
108
|
dirs.forEach(dir => {
|
|
@@ -129,11 +131,15 @@ async function copyTemplates(baseDir, shell) {
|
|
|
129
131
|
contextContent = contextContent.replace(/{{timestamp}}/g, timestamp);
|
|
130
132
|
fs.writeFileSync(contextDestPath, contextContent, 'utf8');
|
|
131
133
|
}
|
|
132
|
-
// Copy shell scripts from CLI package
|
|
133
|
-
const
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
// Copy shell scripts from CLI package (copy both sh and ps scripts)
|
|
135
|
+
const scriptsBaseDir = join(__dirname, '../../../scripts');
|
|
136
|
+
const shellTypes = ['sh', 'ps'];
|
|
137
|
+
for (const shellType of shellTypes) {
|
|
138
|
+
const scriptsSourceDir = join(scriptsBaseDir, shellType);
|
|
139
|
+
const scriptsDestDir = join(baseDir, '.melt', 'scripts', shellType);
|
|
140
|
+
if (existsSync(scriptsSourceDir)) {
|
|
141
|
+
fs.copySync(scriptsSourceDir, scriptsDestDir);
|
|
142
|
+
}
|
|
137
143
|
}
|
|
138
144
|
}
|
|
139
145
|
function createVersionFile(meltDir) {
|
package/package.json
CHANGED