@akanjs/cli 3.0.0-alpha.94 → 3.0.0-alpha.95
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/.build-stamp +1 -1
- package/{application.command-5nqfqgdn.js → application.command-x6e04avr.js} +1 -1
- package/{applicationBuildRunner-b21m07fs.js → applicationBuildRunner-qy18e4hq.js} +15 -3
- package/{cloud.command-g0pk0k60.js → cloud.command-fpkmasax.js} +3 -3
- package/{devTui-2xf0meaq.js → devTui-yhktg2ed.js} +1 -1
- package/{devTuiView-7jy8f30g.js → devTuiView-g7k4y0ej.js} +1 -1
- package/{index-deekbtkj.js → index-7g8cqnjg.js} +2 -2
- package/{index-kfnr6c19.js → index-nqcwcdyt.js} +1 -1
- package/{index-d61rcfa2.js → index-tr0e8s02.js} +2 -2
- package/index.js +4 -4
- package/{localRegistry.command-gz8apn4y.js → localRegistry.command-5n2wk16q.js} +2 -2
- package/package.json +2 -2
- package/{workspace.command-dqgj9zbk.js → workspace.command-zgb6dkpq.js} +3 -3
package/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
53ebdb9199af9078cc0851db522dc3f306a5336f448faaf9c22a95fec341b8d3
|
|
@@ -45,6 +45,18 @@ var AKAN_OPTIONAL_BACKEND_EXTERNALS = [
|
|
|
45
45
|
"postgres",
|
|
46
46
|
"protobufjs"
|
|
47
47
|
];
|
|
48
|
+
var MINIFY_PROBE = (() => {
|
|
49
|
+
const mode = process.env.AKAN_MINIFY_PROBE ?? "all";
|
|
50
|
+
if (mode === "noident")
|
|
51
|
+
return { minify: { whitespace: true, syntax: true, identifiers: false } };
|
|
52
|
+
if (mode === "noident-map")
|
|
53
|
+
return { minify: { whitespace: true, syntax: true, identifiers: false }, sourcemap: "linked" };
|
|
54
|
+
if (mode === "syntax-map")
|
|
55
|
+
return { minify: { whitespace: false, syntax: true, identifiers: false }, sourcemap: "linked" };
|
|
56
|
+
if (mode === "none")
|
|
57
|
+
return { minify: false, sourcemap: "linked" };
|
|
58
|
+
return { minify: true };
|
|
59
|
+
})();
|
|
48
60
|
|
|
49
61
|
class ApplicationBuildRunner {
|
|
50
62
|
#app;
|
|
@@ -128,7 +140,7 @@ class ApplicationBuildRunner {
|
|
|
128
140
|
entrypoints: backendEntryPoints,
|
|
129
141
|
outdir: this.#app.dist.cwdPath,
|
|
130
142
|
target: "bun",
|
|
131
|
-
|
|
143
|
+
...MINIFY_PROBE,
|
|
132
144
|
naming: { entry: "[name].[ext]", chunk: "chunk-[hash].[ext]" },
|
|
133
145
|
define: { "process.env.NODE_ENV": JSON.stringify("production") },
|
|
134
146
|
plugins: backendExternals.length > 0 ? [this.#createExternalSpecifiersPlugin(backendExternals)] : []
|
|
@@ -137,7 +149,7 @@ class ApplicationBuildRunner {
|
|
|
137
149
|
entrypoints: [this.#resolveRscWorkerBuildEntry()],
|
|
138
150
|
outdir: this.#app.dist.cwdPath,
|
|
139
151
|
target: "bun",
|
|
140
|
-
|
|
152
|
+
...MINIFY_PROBE,
|
|
141
153
|
naming: { entry: "[name].[ext]", chunk: "chunk-[hash].[ext]" },
|
|
142
154
|
conditions: ["react-server"],
|
|
143
155
|
define: { "process.env.NODE_ENV": JSON.stringify("production") },
|
|
@@ -147,7 +159,7 @@ class ApplicationBuildRunner {
|
|
|
147
159
|
entrypoints: [this.#resolveConsoleRuntimeBuildEntry()],
|
|
148
160
|
outdir: this.#app.dist.cwdPath,
|
|
149
161
|
target: "bun",
|
|
150
|
-
|
|
162
|
+
...MINIFY_PROBE,
|
|
151
163
|
naming: { entry: "console-runtime.[ext]", chunk: "chunk-[hash].[ext]" },
|
|
152
164
|
define: { "process.env.NODE_ENV": JSON.stringify("production") }
|
|
153
165
|
});
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
} from "./index-cezy7yb3.js";
|
|
10
10
|
import"./index-q8sn827n.js";
|
|
11
11
|
import"./index-6wwzs1bc.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-tr0e8s02.js";
|
|
13
13
|
import"./index-zkvpaggp.js";
|
|
14
14
|
import"./index-9wtbw98m.js";
|
|
15
15
|
import"./index-kcxmv48c.js";
|
|
16
16
|
import"./index-sjak5v5b.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-nqcwcdyt.js";
|
|
18
18
|
import {
|
|
19
19
|
CloudScript
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-7g8cqnjg.js";
|
|
21
21
|
import"./index-pvb4vdwr.js";
|
|
22
22
|
|
|
23
23
|
// pkgs/@akanjs/cli/cloud/cloud.command.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// pkgs/@akanjs/cli/application/devTuiView.ts
|
|
3
3
|
var createDevTuiView = async (supervisor) => {
|
|
4
|
-
const { DevTui } = await import("./devTui-
|
|
4
|
+
const { DevTui } = await import("./devTui-yhktg2ed.js");
|
|
5
5
|
return new DevTui(supervisor);
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
} from "./index-cezy7yb3.js";
|
|
13
13
|
import {
|
|
14
14
|
ApplicationScript
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-tr0e8s02.js";
|
|
16
16
|
import {
|
|
17
17
|
PackageScript
|
|
18
18
|
} from "./index-sjak5v5b.js";
|
|
19
19
|
import {
|
|
20
20
|
CloudRunner
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-nqcwcdyt.js";
|
|
22
22
|
|
|
23
23
|
// pkgs/@akanjs/cli/cloud/cloud.script.ts
|
|
24
24
|
import { Logger } from "akanjs/common";
|
|
@@ -1964,7 +1964,7 @@ ${uniqueCandidates.map((candidate) => ` - ${candidate}`).join(`
|
|
|
1964
1964
|
// pkgs/@akanjs/cli/application/application.runner.ts
|
|
1965
1965
|
import { Logger as Logger4 } from "akanjs/common";
|
|
1966
1966
|
import ora from "ora";
|
|
1967
|
-
var loadBuildRunner = async () => (await import("./applicationBuildRunner-
|
|
1967
|
+
var loadBuildRunner = async () => (await import("./applicationBuildRunner-qy18e4hq.js")).ApplicationBuildRunner;
|
|
1968
1968
|
var loadReleasePackager = async () => (await import("./applicationReleasePackager-3wh58n2m.js")).ApplicationReleasePackager;
|
|
1969
1969
|
var loadCapacitorApp = async () => (await import("./capacitorApp-gzcx6txb.js")).CapacitorApp;
|
|
1970
1970
|
var loadAbstractCompactor = async () => (await import("./abstractCompactor-cefxzggj.js")).AbstractCompactor;
|
|
@@ -3040,7 +3040,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
3040
3040
|
throw new Error("No app selected to start");
|
|
3041
3041
|
const startedDatabase = dbup ? await this.#prepareSharedDatabase(apps) : false;
|
|
3042
3042
|
const supervisor = new DevSupervisor({ apps, mode, concurrency, open, write });
|
|
3043
|
-
const view = mode === "tui" ? await (await import("./devTuiView-
|
|
3043
|
+
const view = mode === "tui" ? await (await import("./devTuiView-g7k4y0ej.js")).createDevTuiView(supervisor) : new DevStreamView(apps.map((app) => app.name));
|
|
3044
3044
|
await supervisor.run(view);
|
|
3045
3045
|
if (startedDatabase)
|
|
3046
3046
|
await this.#stopDatabase(workspace);
|
package/index.js
CHANGED
|
@@ -14,16 +14,16 @@ import path from "path";
|
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/cli/commandModules.ts
|
|
16
16
|
var commandModules = {
|
|
17
|
-
workspace: async () => (await import("./workspace.command-
|
|
17
|
+
workspace: async () => (await import("./workspace.command-zgb6dkpq.js")).WorkspaceCommand,
|
|
18
18
|
agent: async () => (await import("./agent.command-r93wmq7m.js")).AgentCommand,
|
|
19
|
-
application: async () => (await import("./application.command-
|
|
19
|
+
application: async () => (await import("./application.command-x6e04avr.js")).ApplicationCommand,
|
|
20
20
|
library: async () => (await import("./library.command-em103wtn.js")).LibraryCommand,
|
|
21
|
-
localRegistry: async () => (await import("./localRegistry.command-
|
|
21
|
+
localRegistry: async () => (await import("./localRegistry.command-5n2wk16q.js")).LocalRegistryCommand,
|
|
22
22
|
package: async () => (await import("./package.command-rfhyf38t.js")).PackageCommand,
|
|
23
23
|
module: async () => (await import("./module.command-451pztkc.js")).ModuleCommand,
|
|
24
24
|
page: async () => (await import("./page.command-kt19da5g.js")).PageCommand,
|
|
25
25
|
context: async () => (await import("./context.command-qd8kqrnh.js")).ContextCommand,
|
|
26
|
-
cloud: async () => (await import("./cloud.command-
|
|
26
|
+
cloud: async () => (await import("./cloud.command-fpkmasax.js")).CloudCommand,
|
|
27
27
|
subspace: async () => (await import("./subspace.command-kqzqtk0p.js")).SubspaceCommand,
|
|
28
28
|
guideline: async () => (await import("./guideline.command-f38x8jhw.js")).GuidelineCommand,
|
|
29
29
|
scalar: async () => (await import("./scalar.command-jcf4e5sv.js")).ScalarCommand,
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
import"./index-6wwzs1bc.js";
|
|
13
13
|
import {
|
|
14
14
|
ApplicationScript
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-tr0e8s02.js";
|
|
16
16
|
import"./index-zkvpaggp.js";
|
|
17
17
|
import"./index-9wtbw98m.js";
|
|
18
18
|
import"./index-n85fer99.js";
|
|
19
19
|
import {
|
|
20
20
|
getNpmRegistryUrl,
|
|
21
21
|
CloudRunner
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-nqcwcdyt.js";
|
|
23
23
|
import"./index-kcxmv48c.js";
|
|
24
24
|
import {
|
|
25
25
|
PackageScript
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.95",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@langchain/openai": "^1.4.6",
|
|
34
34
|
"@tailwindcss/node": "^4.3.0",
|
|
35
35
|
"@trapezedev/project": "^7.1.4",
|
|
36
|
-
"akanjs": "3.0.0-alpha.
|
|
36
|
+
"akanjs": "3.0.0-alpha.95",
|
|
37
37
|
"chalk": "^5.6.2",
|
|
38
38
|
"commander": "^14.0.3",
|
|
39
39
|
"dayjs": "^1.11.20",
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
} from "./index-rntcdss1.js";
|
|
41
41
|
import {
|
|
42
42
|
ApplicationScript
|
|
43
|
-
} from "./index-
|
|
43
|
+
} from "./index-tr0e8s02.js";
|
|
44
44
|
import {
|
|
45
45
|
LibraryScript
|
|
46
46
|
} from "./index-zkvpaggp.js";
|
|
@@ -52,10 +52,10 @@ import {
|
|
|
52
52
|
import {
|
|
53
53
|
getNpmRegistryUrl,
|
|
54
54
|
getLatestPackageVersion
|
|
55
|
-
} from "./index-
|
|
55
|
+
} from "./index-nqcwcdyt.js";
|
|
56
56
|
import {
|
|
57
57
|
CloudScript
|
|
58
|
-
} from "./index-
|
|
58
|
+
} from "./index-7g8cqnjg.js";
|
|
59
59
|
import {
|
|
60
60
|
ContextScript
|
|
61
61
|
} from "./index-r50qen0z.js";
|