@stackql/provider-utils 0.5.3 → 0.5.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackql/provider-utils",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "description": "Utilities for building StackQL providers from OpenAPI specifications.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -345,8 +345,11 @@ export async function generate(options) {
345
345
  }
346
346
  }
347
347
 
348
- // Write enriched spec
349
- const outputPath = path.join(servicesPath, filename);
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/${filename}`
366
+ $ref: `${providerId}/${version}/services/${outputFilename}`
364
367
  },
365
368
  title: specTitle,
366
369
  version: version,