@akanjs/devkit 0.0.101 → 0.0.103
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 +21 -1
- package/index.mjs +1 -0
- package/package.json +4 -4
- package/src/aiEditor.js +56 -22
- package/src/{aiEditor.cjs → aiEditor.mjs} +22 -56
- package/src/auth.js +48 -18
- package/src/auth.mjs +42 -0
- package/src/builder.js +42 -9
- package/src/{builder.cjs → builder.mjs} +9 -42
- package/src/capacitorApp.js +42 -9
- package/src/{capacitorApp.cjs → capacitorApp.mjs} +9 -42
- package/src/commandDecorators/argMeta.js +34 -3
- package/src/commandDecorators/{argMeta.cjs → argMeta.mjs} +3 -34
- package/src/commandDecorators/command.js +70 -37
- package/src/commandDecorators/{command.cjs → command.mjs} +37 -70
- package/src/commandDecorators/commandMeta.js +25 -2
- package/src/commandDecorators/commandMeta.mjs +7 -0
- package/src/commandDecorators/index.js +29 -5
- package/src/commandDecorators/index.mjs +5 -0
- package/src/commandDecorators/targetMeta.js +26 -2
- package/src/commandDecorators/targetMeta.mjs +33 -0
- package/src/commandDecorators/types.js +15 -0
- package/src/commandDecorators/types.mjs +0 -0
- package/src/constants.js +33 -4
- package/src/constants.mjs +18 -0
- package/src/createTunnel.js +27 -4
- package/src/createTunnel.mjs +26 -0
- package/src/dependencyScanner.js +38 -5
- package/src/{dependencyScanner.cjs → dependencyScanner.mjs} +5 -38
- package/src/executors.d.ts +1 -1
- package/src/executors.js +123 -89
- package/src/{executors.cjs → executors.mjs} +89 -123
- package/src/extractDeps.js +25 -2
- package/src/{extractDeps.cjs → extractDeps.mjs} +2 -25
- package/src/getCredentials.js +39 -6
- package/src/getCredentials.mjs +11 -0
- package/src/getModelFileData.js +39 -6
- package/src/getModelFileData.mjs +33 -0
- package/src/getRelatedCnsts.js +48 -9
- package/src/{getRelatedCnsts.cjs → getRelatedCnsts.mjs} +9 -48
- package/src/index.js +53 -17
- package/src/index.mjs +17 -0
- package/src/selectModel.js +39 -6
- package/src/selectModel.mjs +13 -0
- package/src/streamAi.js +30 -7
- package/src/streamAi.mjs +39 -0
- package/src/types.js +15 -0
- package/src/types.mjs +0 -0
- package/src/uploadRelease.js +48 -15
- package/src/uploadRelease.mjs +52 -0
- package/index.cjs +0 -21
- package/src/auth.cjs +0 -72
- package/src/commandDecorators/commandMeta.cjs +0 -30
- package/src/commandDecorators/index.cjs +0 -29
- package/src/commandDecorators/targetMeta.cjs +0 -57
- package/src/commandDecorators/types.cjs +0 -15
- package/src/constants.cjs +0 -47
- package/src/createTunnel.cjs +0 -49
- package/src/getCredentials.cjs +0 -44
- package/src/getModelFileData.cjs +0 -66
- package/src/index.cjs +0 -53
- package/src/selectModel.cjs +0 -46
- package/src/streamAi.cjs +0 -62
- package/src/types.cjs +0 -15
- package/src/uploadRelease.cjs +0 -85
|
@@ -1,7 +1,30 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var commandMeta_exports = {};
|
|
19
|
+
__export(commandMeta_exports, {
|
|
20
|
+
Commands: () => Commands
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(commandMeta_exports);
|
|
1
23
|
const Commands = () => {
|
|
2
24
|
return function(target) {
|
|
3
25
|
};
|
|
4
26
|
};
|
|
5
|
-
export
|
|
27
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
+
0 && (module.exports = {
|
|
6
29
|
Commands
|
|
7
|
-
};
|
|
30
|
+
});
|
|
@@ -1,5 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var commandDecorators_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(commandDecorators_exports);
|
|
17
|
+
__reExport(commandDecorators_exports, require("./argMeta"), module.exports);
|
|
18
|
+
__reExport(commandDecorators_exports, require("./commandMeta"), module.exports);
|
|
19
|
+
__reExport(commandDecorators_exports, require("./targetMeta"), module.exports);
|
|
20
|
+
__reExport(commandDecorators_exports, require("./types"), module.exports);
|
|
21
|
+
__reExport(commandDecorators_exports, require("./command"), module.exports);
|
|
22
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
23
|
+
0 && (module.exports = {
|
|
24
|
+
...require("./argMeta"),
|
|
25
|
+
...require("./commandMeta"),
|
|
26
|
+
...require("./targetMeta"),
|
|
27
|
+
...require("./types"),
|
|
28
|
+
...require("./command")
|
|
29
|
+
});
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var targetMeta_exports = {};
|
|
19
|
+
__export(targetMeta_exports, {
|
|
20
|
+
Target: () => Target,
|
|
21
|
+
getTargetMetas: () => getTargetMetas
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(targetMeta_exports);
|
|
1
24
|
const getTargetMetas = (command) => {
|
|
2
25
|
const targetMetaMap = Reflect.getMetadata("target", command.prototype);
|
|
3
26
|
if (!targetMetaMap)
|
|
@@ -27,7 +50,8 @@ const Target = {
|
|
|
27
50
|
Cloud: getTarget("cloud"),
|
|
28
51
|
Dev: getTarget("dev")
|
|
29
52
|
};
|
|
30
|
-
export
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
31
55
|
Target,
|
|
32
56
|
getTargetMetas
|
|
33
|
-
};
|
|
57
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const getTargetMetas = (command) => {
|
|
2
|
+
const targetMetaMap = Reflect.getMetadata("target", command.prototype);
|
|
3
|
+
if (!targetMetaMap)
|
|
4
|
+
throw new Error(`TargetMeta is not defined for ${command.name}`);
|
|
5
|
+
return [...targetMetaMap.values()];
|
|
6
|
+
};
|
|
7
|
+
const getTargetMetaMapOnPrototype = (prototype) => {
|
|
8
|
+
const targetMetaMap = Reflect.getMetadata("target", prototype);
|
|
9
|
+
return targetMetaMap ?? /* @__PURE__ */ new Map();
|
|
10
|
+
};
|
|
11
|
+
const setTargetMetaMapOnPrototype = (prototype, targetMetaMap) => {
|
|
12
|
+
Reflect.defineMetadata("target", targetMetaMap, prototype);
|
|
13
|
+
};
|
|
14
|
+
const getTarget = (type) => (targetOption = {}) => {
|
|
15
|
+
return (prototype, key, descriptor) => {
|
|
16
|
+
const metadataMap = getTargetMetaMapOnPrototype(prototype);
|
|
17
|
+
metadataMap.set(key, {
|
|
18
|
+
key,
|
|
19
|
+
descriptor,
|
|
20
|
+
targetOption: { ...targetOption, type }
|
|
21
|
+
});
|
|
22
|
+
setTargetMetaMapOnPrototype(prototype, metadataMap);
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
const Target = {
|
|
26
|
+
Public: getTarget("public"),
|
|
27
|
+
Cloud: getTarget("cloud"),
|
|
28
|
+
Dev: getTarget("dev")
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
Target,
|
|
32
|
+
getTargetMetas
|
|
33
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var types_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(types_exports);
|
|
File without changes
|
package/src/constants.js
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var constants_exports = {};
|
|
19
|
+
__export(constants_exports, {
|
|
20
|
+
akanCloudBackendUrl: () => akanCloudBackendUrl,
|
|
21
|
+
akanCloudClientUrl: () => akanCloudClientUrl,
|
|
22
|
+
akanCloudHost: () => akanCloudHost,
|
|
23
|
+
basePath: () => basePath,
|
|
24
|
+
configPath: () => configPath,
|
|
25
|
+
defaultAkanGlobalConfig: () => defaultAkanGlobalConfig,
|
|
26
|
+
defaultHostConfig: () => defaultHostConfig
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(constants_exports);
|
|
29
|
+
var import_os = require("os");
|
|
30
|
+
const basePath = `${(0, import_os.homedir)()}/.akan`;
|
|
3
31
|
const configPath = `${basePath}/config.json`;
|
|
4
32
|
const akanCloudHost = process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? "http://localhost" : "https://akasys-debug.akamir.com";
|
|
5
33
|
//! Temp
|
|
@@ -7,7 +35,8 @@ const akanCloudBackendUrl = `${akanCloudHost}${process.env.NEXT_PUBLIC_OPERATION
|
|
|
7
35
|
const akanCloudClientUrl = `${akanCloudHost}${process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? ":4200" : ""}`;
|
|
8
36
|
const defaultHostConfig = {};
|
|
9
37
|
const defaultAkanGlobalConfig = { cloudHost: {}, llm: null };
|
|
10
|
-
export
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
11
40
|
akanCloudBackendUrl,
|
|
12
41
|
akanCloudClientUrl,
|
|
13
42
|
akanCloudHost,
|
|
@@ -15,4 +44,4 @@ export {
|
|
|
15
44
|
configPath,
|
|
16
45
|
defaultAkanGlobalConfig,
|
|
17
46
|
defaultHostConfig
|
|
18
|
-
};
|
|
47
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { homedir } from "os";
|
|
2
|
+
const basePath = `${homedir()}/.akan`;
|
|
3
|
+
const configPath = `${basePath}/config.json`;
|
|
4
|
+
const akanCloudHost = process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? "http://localhost" : "https://akasys-debug.akamir.com";
|
|
5
|
+
//! Temp
|
|
6
|
+
const akanCloudBackendUrl = `${akanCloudHost}${process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? ":8080" : ""}/backend`;
|
|
7
|
+
const akanCloudClientUrl = `${akanCloudHost}${process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? ":4200" : ""}`;
|
|
8
|
+
const defaultHostConfig = {};
|
|
9
|
+
const defaultAkanGlobalConfig = { cloudHost: {}, llm: null };
|
|
10
|
+
export {
|
|
11
|
+
akanCloudBackendUrl,
|
|
12
|
+
akanCloudClientUrl,
|
|
13
|
+
akanCloudHost,
|
|
14
|
+
basePath,
|
|
15
|
+
configPath,
|
|
16
|
+
defaultAkanGlobalConfig,
|
|
17
|
+
defaultHostConfig
|
|
18
|
+
};
|
package/src/createTunnel.js
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var createTunnel_exports = {};
|
|
19
|
+
__export(createTunnel_exports, {
|
|
20
|
+
createTunnel: () => createTunnel
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(createTunnel_exports);
|
|
23
|
+
var import_tunnel_ssh = require("tunnel-ssh");
|
|
2
24
|
const getSshTunnelOptions = (app, environment) => {
|
|
3
25
|
const { serveDomain, repoName } = app.workspace.getBaseDevEnv();
|
|
4
26
|
return {
|
|
@@ -18,9 +40,10 @@ const createTunnel = async ({ app, environment, port = 27017 }) => {
|
|
|
18
40
|
dstAddr: `mongo-0.mongo-svc.${app.name}-${environment}`,
|
|
19
41
|
dstPort: 27017
|
|
20
42
|
};
|
|
21
|
-
const [server, client] = await
|
|
43
|
+
const [server, client] = await (0, import_tunnel_ssh.createTunnel)(tunnelOptions, serverOptions, sshOptions, forwardOptions);
|
|
22
44
|
return `localhost:${port}`;
|
|
23
45
|
};
|
|
24
|
-
export
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
25
48
|
createTunnel
|
|
26
|
-
};
|
|
49
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createTunnel as create } from "tunnel-ssh";
|
|
2
|
+
const getSshTunnelOptions = (app, environment) => {
|
|
3
|
+
const { serveDomain, repoName } = app.workspace.getBaseDevEnv();
|
|
4
|
+
return {
|
|
5
|
+
host: `${app.name}-${environment}.${serveDomain}`,
|
|
6
|
+
port: process.env.SSH_TUNNEL_PORT ? parseInt(process.env.SSH_TUNNEL_PORT) : 32767,
|
|
7
|
+
username: process.env.SSH_TUNNEL_USERNAME ?? "root",
|
|
8
|
+
password: process.env.SSH_TUNNEL_PASSWORD ?? repoName
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
const createTunnel = async ({ app, environment, port = 27017 }) => {
|
|
12
|
+
const tunnelOptions = { autoClose: true, reconnectOnError: true };
|
|
13
|
+
const sshOptions = getSshTunnelOptions(app, environment);
|
|
14
|
+
const serverOptions = { port };
|
|
15
|
+
const forwardOptions = {
|
|
16
|
+
srcAddr: "0.0.0.0",
|
|
17
|
+
srcPort: port,
|
|
18
|
+
dstAddr: `mongo-0.mongo-svc.${app.name}-${environment}`,
|
|
19
|
+
dstPort: 27017
|
|
20
|
+
};
|
|
21
|
+
const [server, client] = await create(tunnelOptions, serverOptions, sshOptions, forwardOptions);
|
|
22
|
+
return `localhost:${port}`;
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
createTunnel
|
|
26
|
+
};
|
package/src/dependencyScanner.js
CHANGED
|
@@ -1,6 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var dependencyScanner_exports = {};
|
|
29
|
+
__export(dependencyScanner_exports, {
|
|
30
|
+
TypeScriptDependencyScanner: () => TypeScriptDependencyScanner
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(dependencyScanner_exports);
|
|
33
|
+
var fs = __toESM(require("fs"));
|
|
34
|
+
var path = __toESM(require("path"));
|
|
35
|
+
var ts = __toESM(require("typescript"));
|
|
4
36
|
class TypeScriptDependencyScanner {
|
|
5
37
|
constructor(directory) {
|
|
6
38
|
this.directory = directory;
|
|
@@ -143,6 +175,7 @@ class TypeScriptDependencyScanner {
|
|
|
143
175
|
return graph;
|
|
144
176
|
}
|
|
145
177
|
}
|
|
146
|
-
export
|
|
178
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
179
|
+
0 && (module.exports = {
|
|
147
180
|
TypeScriptDependencyScanner
|
|
148
|
-
};
|
|
181
|
+
});
|
|
@@ -1,38 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
var dependencyScanner_exports = {};
|
|
29
|
-
__export(dependencyScanner_exports, {
|
|
30
|
-
TypeScriptDependencyScanner: () => TypeScriptDependencyScanner
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(dependencyScanner_exports);
|
|
33
|
-
var fs = __toESM(require("fs"), 1);
|
|
34
|
-
var path = __toESM(require("path"), 1);
|
|
35
|
-
var ts = __toESM(require("typescript"), 1);
|
|
1
|
+
import * as fs from "fs";
|
|
2
|
+
import * as path from "path";
|
|
3
|
+
import * as ts from "typescript";
|
|
36
4
|
class TypeScriptDependencyScanner {
|
|
37
5
|
constructor(directory) {
|
|
38
6
|
this.directory = directory;
|
|
@@ -175,7 +143,6 @@ class TypeScriptDependencyScanner {
|
|
|
175
143
|
return graph;
|
|
176
144
|
}
|
|
177
145
|
}
|
|
178
|
-
|
|
179
|
-
0 && (module.exports = {
|
|
146
|
+
export {
|
|
180
147
|
TypeScriptDependencyScanner
|
|
181
|
-
}
|
|
148
|
+
};
|
package/src/executors.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export declare class WorkspaceExecutor extends Executor {
|
|
|
52
52
|
getBaseDevEnv(): {
|
|
53
53
|
repoName: string;
|
|
54
54
|
serveDomain: string;
|
|
55
|
-
env: "
|
|
55
|
+
env: "debug" | "testing" | "local" | "develop" | "main";
|
|
56
56
|
name?: string | undefined;
|
|
57
57
|
};
|
|
58
58
|
scan(): Promise<WorkspaceScanResult>;
|