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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feima-shortcuts",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "快捷指令",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -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");
@@ -367,4 +367,6 @@ export const request = <T>(
367
367
  reject(error);
368
368
  }
369
369
  });
370
- };`
370
+ };`
371
+
372
+ module.exports = template;