feima-shortcuts 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
CHANGED
package/src/generateApi/index.js
CHANGED
|
@@ -6,7 +6,6 @@ const { deleteFolder } = require("../utils/deleteFolder");
|
|
|
6
6
|
const { makeDir } = require("../utils/makeDir");
|
|
7
7
|
const requestTemplate = require("./requestTemplate");
|
|
8
8
|
|
|
9
|
-
|
|
10
9
|
exports.run = () => {
|
|
11
10
|
const program = new Command();
|
|
12
11
|
|
|
@@ -51,7 +50,6 @@ exports.run = () => {
|
|
|
51
50
|
|
|
52
51
|
// 确保 ./tmpRequest.ts 使用内置的 requestStr(放在项目根目录)
|
|
53
52
|
const requestFile = path.resolve(process.cwd(), "tmpRequest.ts");
|
|
54
|
-
|
|
55
53
|
try {
|
|
56
54
|
fs.writeFileSync(requestFile, requestTemplate, "utf8");
|
|
57
55
|
console.log("📝 已写入 ./tmpRequest.ts");
|