@paulpugovkin/api-docs-axios-ts-generator 1.0.9 → 1.0.10
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 +1 -1
- package/src/index.js +2 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -122,10 +122,10 @@ async function main() {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
console.log(`Using API Docs URL: ${config.apiDocsUrl}`);
|
|
125
|
-
console.log(`Output directory: ${config.outputDir}`);
|
|
125
|
+
console.log(`Output directory: ${config.outputDir || 'Not specified - using default'}`);
|
|
126
126
|
|
|
127
127
|
// Определяем пути
|
|
128
|
-
const outputDir = config.outputDir;
|
|
128
|
+
const outputDir = config.outputDir || path.resolve(__dirname, "../generated");
|
|
129
129
|
const interfacesDir = config.interfacesDir || path.join(outputDir, "interfaces");
|
|
130
130
|
const classesDir = config.classesDir || path.join(outputDir, "classes");
|
|
131
131
|
const interfacesOpenApi = path.join(interfacesDir, "index.ts");
|