kschema-api-gen-appjs 1.3.5 → 1.3.6
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/index.js +24 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
import getLatestVersion from "./bin/core/getLatestVersion.js";
|
|
2
2
|
|
|
3
|
-
const load = async (
|
|
3
|
+
const load = async () => {
|
|
4
4
|
const v = getLatestVersion();
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
return import(`../bin/${v}/core/resolveCommand.js`);
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const startFunc = async ({ inCommandToSend, inFolderName,
|
|
10
|
+
inToPath
|
|
11
|
+
}) => {
|
|
12
|
+
const { default: run } = await load();
|
|
13
|
+
|
|
14
|
+
const fn = run(inCommandToSend);
|
|
15
|
+
|
|
16
|
+
fn({
|
|
17
|
+
folderName: inFolderName,
|
|
18
|
+
toPath: inToPath,
|
|
19
|
+
showLog: false,
|
|
20
|
+
isAnnounce: false
|
|
21
|
+
});
|
|
6
22
|
};
|
|
7
23
|
|
|
8
|
-
export const StartEndPoint = async (
|
|
9
|
-
|
|
10
|
-
|
|
24
|
+
export const StartEndPoint = async ({ inFolderName, inToPath }) => {
|
|
25
|
+
return startFunc({
|
|
26
|
+
inCommandToSend: "StartEndPoint",
|
|
27
|
+
inFolderName, inToPath
|
|
28
|
+
});
|
|
29
|
+
};
|