@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/' + selectedShell + '/')}`);
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
- `.melt/scripts/${shell}`,
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 scriptsSourceDir = join(__dirname, '../../../scripts', shell);
134
- const scriptsDestDir = join(baseDir, '.melt', 'scripts', shell);
135
- if (existsSync(scriptsSourceDir)) {
136
- fs.copySync(scriptsSourceDir, scriptsDestDir);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltstudio/meltctl",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "CLI tool for Melt development process automation - initialize and update project configurations",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",