@akanjs/cli 2.3.2-rc.2 → 2.3.2-rc.3

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 CHANGED
@@ -12931,6 +12931,11 @@ class LocalRegistryRunner extends runner("localRegistry") {
12931
12931
  env: { ...process.env, AKAN_NPM_REGISTRY: registry, NPM_CONFIG_REGISTRY: registry },
12932
12932
  stdio: "inherit"
12933
12933
  });
12934
+ await workspace.spawn("akan", ["typecheck", smokeAppName], {
12935
+ cwd: path40.join(smokeRoot, smokeRepoName),
12936
+ env: { ...process.env, AKAN_NPM_REGISTRY: registry, NPM_CONFIG_REGISTRY: registry },
12937
+ stdio: "inherit"
12938
+ });
12934
12939
  await workspace.spawn("akan", ["build", smokeAppName], {
12935
12940
  cwd: path40.join(smokeRoot, smokeRepoName),
12936
12941
  env: { ...process.env, AKAN_NPM_REGISTRY: registry, NPM_CONFIG_REGISTRY: registry },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "2.3.2-rc.2",
3
+ "version": "2.3.2-rc.3",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -35,7 +35,7 @@
35
35
  "@langchain/openai": "^1.4.6",
36
36
  "@tailwindcss/node": "^4.3.0",
37
37
  "@trapezedev/project": "^7.1.4",
38
- "akanjs": "2.3.2-rc.2",
38
+ "akanjs": "2.3.2-rc.3",
39
39
  "chalk": "^5.6.2",
40
40
  "commander": "^14.0.3",
41
41
  "daisyui": "^5.5.20",
@@ -12,8 +12,10 @@ export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: { [
12
12
  .map(([module]) => module);
13
13
  const libs = scanInfo.getLibs();
14
14
 
15
+ const signalNames = [...(libs.length === 0 ? ["base"] : libs), ...databaseModules, ...serviceModules];
16
+
15
17
  return `
16
- import { FetchClient } from "akanjs/fetch";
18
+ import { FetchClient, type FetchClientType } from "akanjs/fetch";
17
19
  import { SignalRegistry, serverSignal${libs.length === 0 ? ", fetch as base" : ""} } from "akanjs/signal";
18
20
  ${libs.map((lib) => `import { fetch as ${lib} } from "@libs/${lib}/server";`).join("\n")}
19
21
 
@@ -53,7 +55,9 @@ ${[...scanInfo.service.entries()]
53
55
  ${databaseModules.map((module) => `export const ${module} = SignalRegistry.registerDatabase("${module}" as const, ${module}Sig.${capitalize(module)}Internal, ${module}Sig.${capitalize(module)}Endpoint, ${module}Sig.${capitalize(module)}Slice, ${capitalize(module)});`).join("\n")}
54
56
  ${serviceModules.map((module) => `export const ${module} = SignalRegistry.registerService("${module}" as const, ${module}Sig.${capitalize(module)}Internal, ${module}Sig.${capitalize(module)}Endpoint, ${capitalize(module)});`).join("\n")}
55
57
 
56
- export const fetch = FetchClient.from(${[...(libs.length === 0 ? ["base"] : libs), ...databaseModules, ...serviceModules].join(", ")});
58
+ export const fetchSignals = [${signalNames.join(", ")}] as const;
59
+ export type Fetch = FetchClientType<typeof fetchSignals>;
60
+ export const fetch: Fetch = FetchClient.from(...fetchSignals);
57
61
 
58
62
  export const getSerializedSignal = () => fetch.serializedSignal
59
63
  `;