@stackql/provider-utils 0.5.3 → 0.5.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/package.json
CHANGED
|
@@ -345,8 +345,11 @@ export async function generate(options) {
|
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
// Write enriched spec
|
|
349
|
-
const
|
|
348
|
+
// Write enriched spec (always as YAML, ensuring .yaml extension)
|
|
349
|
+
const outputFilename = filename.endsWith('.json')
|
|
350
|
+
? filename.replace(/\.json$/, '.yaml')
|
|
351
|
+
: filename;
|
|
352
|
+
const outputPath = path.join(servicesPath, outputFilename);
|
|
350
353
|
writeSpec(outputPath, spec);
|
|
351
354
|
logger.info(`✅ Wrote enriched spec: ${outputPath}`);
|
|
352
355
|
|
|
@@ -360,7 +363,7 @@ export async function generate(options) {
|
|
|
360
363
|
name: serviceName,
|
|
361
364
|
preferred: true,
|
|
362
365
|
service: {
|
|
363
|
-
$ref: `${providerId}/${version}/services/${
|
|
366
|
+
$ref: `${providerId}/${version}/services/${outputFilename}`
|
|
364
367
|
},
|
|
365
368
|
title: specTitle,
|
|
366
369
|
version: version,
|