@stackql/provider-utils 0.3.3 → 0.3.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.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Utilities for building StackQL providers from OpenAPI specifications.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -5,6 +5,7 @@ import yaml from 'js-yaml';
5
5
  import logger from '../logger.js';
6
6
  import { camelToSnake } from '../utils.js';
7
7
  import { createReadStream } from 'fs';
8
+ import csv from 'csv-parser';
8
9
 
9
10
  /**
10
11
  * Load specification from YAML or JSON file
@@ -158,6 +158,15 @@ export async function generate(options) {
158
158
  const files = fs.readdirSync(inputDir);
159
159
 
160
160
  for (const filename of files) {
161
+
162
+ const filePath = path.join(inputDir, filename);
163
+
164
+ // Skip directories
165
+ if (fs.statSync(filePath).isDirectory()) {
166
+ logger.info(`📁 Skipping directory: ${filename}`);
167
+ continue;
168
+ }
169
+
161
170
  if (skipFiles.includes(filename)) {
162
171
  logger.info(`⭐️ Skipping ${filename} (matched --skip)`);
163
172
  continue;