@rjgf/swagger2ts
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -82,3 +82,5 @@ #!/usr/bin/env node --no-deprecation --abort-on-uncaught-exception --no-warnings | ||
const targetPath = path.join(dirPath, fileName) | ||
await fse.writeFileSync(targetPath, getContent(generate(content)), { encoding: 'utf-8' }) | ||
await fse.writeFileSync(targetPath, getContent(generate(content, { | ||
requestConfig: 'AxiosRequestConfig', | ||
})), { encoding: 'utf-8' }) | ||
console.log(`${targetPath}更新成功`) | ||
@@ -85,0 +87,0 @@ } |
@@ -23,3 +23,3 @@ { | ||
}, | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"dependencies": { | ||
@@ -26,0 +26,0 @@ "dotenv": "^16.0.3" |
35173
624