kschema-fs-api-gen-post-actions 1.7.2 → 1.7.4

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.
@@ -6,8 +6,6 @@ import { locateSource } from "./InsertGenPk/steps/locateSource.js";
6
6
  import { locateDestination } from "./InsertGenPk/steps/locateDestination.js";
7
7
  import { createFolder } from "../../core/createFolder.js";
8
8
 
9
- import updateEndPointsJs from "./InsertGenPk/steps/updateEndPointsJs.js";
10
-
11
9
  import { announce } from "./InsertGenPk/steps/announce.js";
12
10
 
13
11
  import resolveFolderName from "./InsertGenPk/steps/resolveFolderName.js";
@@ -49,7 +47,7 @@ const startFunc = async ({ cmd = "", toPath, isAnnounce = true, checkBeforeCreat
49
47
  });
50
48
 
51
49
  generateRest({
52
- toConfigPath,
50
+ toConfigPath, inTargetPath,
53
51
  toPath: path.join(localToPath, resolvedFolderName),
54
52
  });
55
53
  };
package/index.js CHANGED
@@ -23,9 +23,7 @@ const insertGenPk = async ({ toPath, showLog, toConfigPath, inTargetPath }) => {
23
23
  const commandFunction = await load(commandToSend);
24
24
  // console.log(" ...args :", args);
25
25
  await commandFunction({
26
- toPath,
27
- cmd: "WithMail",
28
- toConfigPath, inTargetPath
26
+ toPath, cmd: commandToSend, toConfigPath, inTargetPath
29
27
  });
30
28
  };
31
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kschema-fs-api-gen-post-actions",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "description": "start from end points js, generate post methods",
5
5
  "keywords": [
6
6
  "cli",
@@ -1,16 +0,0 @@
1
- import updateImports from "./UpdateRoutesJs/updateImports/index.js";
2
- import updateAppUse from "./UpdateRoutesJs/updateUse/index.js";
3
-
4
- const funcName = "getFunc";
5
-
6
- export default ({ appJsPath, endpoint }) => {
7
- updateImports({
8
- appJsPath, endpoint,
9
- inFuncName: funcName
10
- });
11
-
12
- updateAppUse({
13
- appJsPath, endpoint,
14
- inFuncName: funcName
15
- });
16
- };