@exodus/openspec 1.2.3 → 1.2.4
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/dist/core/init.js +2 -1
- package/dist/core/update.js +4 -2
- package/package.json +1 -1
package/dist/core/init.js
CHANGED
|
@@ -407,7 +407,8 @@ export class InitCommand {
|
|
|
407
407
|
const generatedCommands = generateCommands(commandContents, adapter);
|
|
408
408
|
for (const cmd of generatedCommands) {
|
|
409
409
|
const commandFile = path.isAbsolute(cmd.path) ? cmd.path : path.join(projectPath, cmd.path);
|
|
410
|
-
|
|
410
|
+
const commandContent = cliTransformer ? cliTransformer(cmd.fileContent) : cmd.fileContent;
|
|
411
|
+
await FileSystemUtils.writeFile(commandFile, commandContent);
|
|
411
412
|
}
|
|
412
413
|
}
|
|
413
414
|
else {
|
package/dist/core/update.js
CHANGED
|
@@ -152,7 +152,8 @@ export class UpdateCommand {
|
|
|
152
152
|
const generatedCommands = generateCommands(commandContents, adapter);
|
|
153
153
|
for (const cmd of generatedCommands) {
|
|
154
154
|
const commandFile = path.isAbsolute(cmd.path) ? cmd.path : path.join(resolvedProjectPath, cmd.path);
|
|
155
|
-
|
|
155
|
+
const commandContent = cliTransformer ? cliTransformer(cmd.fileContent) : cmd.fileContent;
|
|
156
|
+
await FileSystemUtils.writeFile(commandFile, commandContent);
|
|
156
157
|
}
|
|
157
158
|
removedDeselectedCommandCount += await this.removeUnselectedCommandFiles(resolvedProjectPath, toolId, desiredWorkflows);
|
|
158
159
|
}
|
|
@@ -527,7 +528,8 @@ export class UpdateCommand {
|
|
|
527
528
|
const generatedCommands = generateCommands(commandContents, adapter);
|
|
528
529
|
for (const cmd of generatedCommands) {
|
|
529
530
|
const commandFile = path.isAbsolute(cmd.path) ? cmd.path : path.join(projectPath, cmd.path);
|
|
530
|
-
|
|
531
|
+
const commandContent = legacyCliTransformer ? legacyCliTransformer(cmd.fileContent) : cmd.fileContent;
|
|
532
|
+
await FileSystemUtils.writeFile(commandFile, commandContent);
|
|
531
533
|
}
|
|
532
534
|
}
|
|
533
535
|
}
|