@fxri/swagger2api 1.0.1 → 1.0.2
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/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -54,7 +54,7 @@ function onGenerate(data) {
|
|
|
54
54
|
saveFile(datas.file, JSON.stringify(data));
|
|
55
55
|
// 生成接口
|
|
56
56
|
const param = ["--axios", `-n ${confs.param.name}.ts`, `-o ${confs.param.output}`, `-p ${datas.file}`, ...process.argv.filter((_item, index) => index > 1)];
|
|
57
|
-
console.log("执行:", execSync(
|
|
57
|
+
console.log("执行:", execSync(`${path.resolve(import.meta.dirname, "../node_modules/.bin/swagger-typescript-api")} generate ${param.join(" ")}`).toString());
|
|
58
58
|
// 删除文档
|
|
59
59
|
fs.unlinkSync(datas.file);
|
|
60
60
|
// 保存配置
|