kschema-fs-api-gen-get-actions 1.5.2 → 1.5.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.
|
@@ -13,7 +13,7 @@ import resolveFolderName from "./Find/steps/resolveFolderName.js";
|
|
|
13
13
|
import actions from "./Find/actions.json" with { type: "json" };
|
|
14
14
|
|
|
15
15
|
const startFunc = async ({ cmd = "", toPath, isAnnounce = true, checkBeforeCreate = true,
|
|
16
|
-
|
|
16
|
+
inTargetPath, inGenerateRest = false, inFolderName
|
|
17
17
|
}) => {
|
|
18
18
|
|
|
19
19
|
const matched = actions;
|
|
@@ -49,8 +49,8 @@ const startFunc = async ({ cmd = "", toPath, isAnnounce = true, checkBeforeCreat
|
|
|
49
49
|
|
|
50
50
|
if (inGenerateRest) {
|
|
51
51
|
generateRest({
|
|
52
|
-
|
|
53
|
-
toPath: path.join(localToPath, resolvedFolderName)
|
|
52
|
+
inTargetPath,
|
|
53
|
+
toPath: path.join(localToPath, resolvedFolderName)
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
56
|
};
|
|
@@ -13,7 +13,7 @@ import resolveFolderName from "./ShowAll/steps/resolveFolderName.js";
|
|
|
13
13
|
import actions from "./ShowAll/actions.json" with { type: "json" };
|
|
14
14
|
|
|
15
15
|
const startFunc = async ({ cmd = "", toPath, isAnnounce = true, checkBeforeCreate = true,
|
|
16
|
-
|
|
16
|
+
inTargetPath, inGenerateRest = false, inFolderName
|
|
17
17
|
}) => {
|
|
18
18
|
|
|
19
19
|
const matched = actions;
|
|
@@ -49,8 +49,8 @@ const startFunc = async ({ cmd = "", toPath, isAnnounce = true, checkBeforeCreat
|
|
|
49
49
|
|
|
50
50
|
if (inGenerateRest) {
|
|
51
51
|
generateRest({
|
|
52
|
-
|
|
53
|
-
toPath: path.join(localToPath, resolvedFolderName)
|
|
52
|
+
inTargetPath,
|
|
53
|
+
toPath: path.join(localToPath, resolvedFolderName)
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
56
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kschema-fs-api-gen-get-actions",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"description": "start from end points js, generate post methods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"project-generator"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"kschema-fs-api-gen-rest": "^1.
|
|
13
|
+
"kschema-fs-api-gen-rest": "^1.5.3",
|
|
14
14
|
"express-fix-endpoints-get-js": "^1.3.3"
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|