@akanjs/cli 0.9.58-canary.2 → 0.9.58

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/cjs/index.js CHANGED
@@ -5831,7 +5831,7 @@ ${import_chalk6.default.green("\u27A4")} Authentication Required`));
5831
5831
  const tag = isOfficialRelease ? "latest" : patchVersionOfBase.split("-").at(1) ?? "dev";
5832
5832
  const getNextVersion = async (prefix, tag2) => {
5833
5833
  try {
5834
- const latestPublishedVersionOfBase = await (0, import_latest_version.default)("@akanjs/base", { version: tag2 });
5834
+ const latestPublishedVersionOfBase = await (0, import_latest_version.default)("@akanjs/base", { version: prefix });
5835
5835
  const latestPatch = parseInt(latestPublishedVersionOfBase.split(".").at(-1) ?? "0");
5836
5836
  const nextVersion2 = `${prefix}.${latestPatch + 1}`;
5837
5837
  return { nextVersion: nextVersion2, latestPublishedVersion: latestPublishedVersionOfBase };
@@ -24,12 +24,9 @@ __export(appName_dictionary_exports, {
24
24
  module.exports = __toCommonJS(appName_dictionary_exports);
25
25
  function getContent(scanInfo, dict) {
26
26
  return `
27
- import { serviceDictionary } from "@akanjs/dictionary";
28
-
27
+ import type { SignalDictionary } from "@akanjs/dictionary";
29
28
  import type { ${dict.AppName}Endpoint } from "./${dict.appName}.signal";
30
29
 
31
- export const dictionary = serviceDictionary(["en", "ko"])
32
- .endpoint<${dict.AppName}Endpoint>((fn) => ({}))
33
- .translate({});
34
- `;
30
+ export const dictionary = {} satisfies SignalDictionary<${dict.AppName}Endpoint>;
31
+ `;
35
32
  }
@@ -26,6 +26,6 @@ function getContent(scanInfo, dict) {
26
26
  return `
27
27
  import { serve } from "@akanjs/service";
28
28
 
29
- export class ${dict.AppName}Service extends serve("${dict.appName}" as const, { serverMode: "batch" }, () => ({})) {}
29
+ export class ${dict.AppName}Service extends serve("${dict.appName}" as const, { serverMode: "batch" }) {}
30
30
  `;
31
31
  }
@@ -24,12 +24,8 @@ __export(libName_dictionary_exports, {
24
24
  module.exports = __toCommonJS(libName_dictionary_exports);
25
25
  function getContent(scanInfo, dict) {
26
26
  return `
27
- import { serviceDictionary } from "@akanjs/dictionary";
27
+ const dictionary = {} as const;
28
28
 
29
- import type { ${dict.LibName}Endpoint } from "./${dict.libName}.signal";
30
-
31
- export const dictionary = serviceDictionary(["en", "ko"])
32
- .endpoint<${dict.LibName}Endpoint>((fn) => ({}))
33
- .translate({});
34
- `;
29
+ export const ${dict.libName}Dictionary = dictionary;
30
+ `;
35
31
  }
@@ -28,6 +28,6 @@ import { serve } from "@akanjs/service";
28
28
 
29
29
  // import type * as srv from "../srv";
30
30
 
31
- export class ${dict.LibName}Service extends serve("${dict.libName}" as const, { serverMode: "batch" }, () => ({})) {}
31
+ export class ${dict.LibName}Service extends serve("${dict.libName}" as const, { serverMode: "batch" }) {}
32
32
  `;
33
33
  }
@@ -22,8 +22,8 @@ services:
22
22
  entrypoint: >
23
23
  bash -c "
24
24
  mongod --dbpath /data/db --replSet rs0 --bind_ip_all --fork --logpath /var/log/mongodb.log &&
25
- until mongosh --eval 'db.adminCommand(\"ping\")' > /dev/null 2>&1; do sleep 1; done &&
26
- mongosh --eval 'try { rs.status() } catch(e) { rs.initiate({_id: \"rs0\", members: [{_id: 0, host: \"localhost:27017\"}]}) }' &&
25
+ mongosh --eval 'rs.status().ok || rs.initiate({_id: \"rs0\", members: [{_id: 0, host: \"mongo:27017\"}]})' &&
26
+ mongosh --eval 'try { rs.status() } catch(e) { rs.initiate({_id: \"rs0\", members: [{_id: 0, host: \"mongo:27017\"}]}) }' &&
27
27
  tail -f /var/log/mongodb.log
28
28
  "
29
29
  networks:
@@ -29,6 +29,6 @@ import { serve } from "@akanjs/service";
29
29
  import * as cnst from "../cnst";
30
30
  import * as db from "../db";
31
31
 
32
- export class ${dict.Model}Service extends serve(db.${dict.model}, () => ({})) {}
32
+ export class ${dict.Model}Service extends serve(db.${dict.model}) {}
33
33
  `;
34
34
  }
@@ -3,17 +3,17 @@
3
3
  "description": "<%= repoName %> workspace",
4
4
  "version": "0.0.1",
5
5
  "dependencies": {
6
- "next": "16.0.3",
7
- "react": "19.2.0",
8
- "react-dom": "19.2.0",
9
- "tailwindcss": "^4.1.11",
10
- "daisyui": "^5.5.5"
6
+ "next": "15.3.2",
7
+ "react": "19.1.1",
8
+ "react-dom": "19.1.1",
9
+ "tailwindcss": "^4.1.7",
10
+ "daisyui": "^5.0.35"
11
11
  },
12
12
  "devDependencies": {
13
- "@types/node": "^22.10.4",
14
- "@tailwindcss/postcss": "^4.1.11",
15
- "@types/react": "19.2.0",
16
- "@types/react-dom": "19.2.0",
13
+ "@types/node": "^22.9.0",
14
+ "@tailwindcss/postcss": "^4.1.7",
15
+ "@types/react": "19.1.1",
16
+ "@types/react-dom": "19.1.1",
17
17
  "crypto-browserify": "^3.12.1",
18
18
  "eslint": "^9.19.0",
19
19
  "https-browserify": "^1.0.0",
package/esm/index.js CHANGED
@@ -5812,7 +5812,7 @@ ${chalk6.green("\u27A4")} Authentication Required`));
5812
5812
  const tag = isOfficialRelease ? "latest" : patchVersionOfBase.split("-").at(1) ?? "dev";
5813
5813
  const getNextVersion = async (prefix, tag2) => {
5814
5814
  try {
5815
- const latestPublishedVersionOfBase = await latestVersion("@akanjs/base", { version: tag2 });
5815
+ const latestPublishedVersionOfBase = await latestVersion("@akanjs/base", { version: prefix });
5816
5816
  const latestPatch = parseInt(latestPublishedVersionOfBase.split(".").at(-1) ?? "0");
5817
5817
  const nextVersion2 = `${prefix}.${latestPatch + 1}`;
5818
5818
  return { nextVersion: nextVersion2, latestPublishedVersion: latestPublishedVersionOfBase };
@@ -1,14 +1,11 @@
1
1
  // pkgs/@akanjs/cli/src/templates/app/lib/___appName__/__appName__.dictionary.ts
2
2
  function getContent(scanInfo, dict) {
3
3
  return `
4
- import { serviceDictionary } from "@akanjs/dictionary";
5
-
4
+ import type { SignalDictionary } from "@akanjs/dictionary";
6
5
  import type { ${dict.AppName}Endpoint } from "./${dict.appName}.signal";
7
6
 
8
- export const dictionary = serviceDictionary(["en", "ko"])
9
- .endpoint<${dict.AppName}Endpoint>((fn) => ({}))
10
- .translate({});
11
- `;
7
+ export const dictionary = {} satisfies SignalDictionary<${dict.AppName}Endpoint>;
8
+ `;
12
9
  }
13
10
  export {
14
11
  getContent as default
@@ -3,7 +3,7 @@ function getContent(scanInfo, dict) {
3
3
  return `
4
4
  import { serve } from "@akanjs/service";
5
5
 
6
- export class ${dict.AppName}Service extends serve("${dict.appName}" as const, { serverMode: "batch" }, () => ({})) {}
6
+ export class ${dict.AppName}Service extends serve("${dict.appName}" as const, { serverMode: "batch" }) {}
7
7
  `;
8
8
  }
9
9
  export {
@@ -1,14 +1,10 @@
1
1
  // pkgs/@akanjs/cli/src/templates/libRoot/lib/___libName__/__libName__.dictionary.ts
2
2
  function getContent(scanInfo, dict) {
3
3
  return `
4
- import { serviceDictionary } from "@akanjs/dictionary";
4
+ const dictionary = {} as const;
5
5
 
6
- import type { ${dict.LibName}Endpoint } from "./${dict.libName}.signal";
7
-
8
- export const dictionary = serviceDictionary(["en", "ko"])
9
- .endpoint<${dict.LibName}Endpoint>((fn) => ({}))
10
- .translate({});
11
- `;
6
+ export const ${dict.libName}Dictionary = dictionary;
7
+ `;
12
8
  }
13
9
  export {
14
10
  getContent as default
@@ -5,7 +5,7 @@ import { serve } from "@akanjs/service";
5
5
 
6
6
  // import type * as srv from "../srv";
7
7
 
8
- export class ${dict.LibName}Service extends serve("${dict.libName}" as const, { serverMode: "batch" }, () => ({})) {}
8
+ export class ${dict.LibName}Service extends serve("${dict.libName}" as const, { serverMode: "batch" }) {}
9
9
  `;
10
10
  }
11
11
  export {
@@ -22,8 +22,8 @@ services:
22
22
  entrypoint: >
23
23
  bash -c "
24
24
  mongod --dbpath /data/db --replSet rs0 --bind_ip_all --fork --logpath /var/log/mongodb.log &&
25
- until mongosh --eval 'db.adminCommand(\"ping\")' > /dev/null 2>&1; do sleep 1; done &&
26
- mongosh --eval 'try { rs.status() } catch(e) { rs.initiate({_id: \"rs0\", members: [{_id: 0, host: \"localhost:27017\"}]}) }' &&
25
+ mongosh --eval 'rs.status().ok || rs.initiate({_id: \"rs0\", members: [{_id: 0, host: \"mongo:27017\"}]})' &&
26
+ mongosh --eval 'try { rs.status() } catch(e) { rs.initiate({_id: \"rs0\", members: [{_id: 0, host: \"mongo:27017\"}]}) }' &&
27
27
  tail -f /var/log/mongodb.log
28
28
  "
29
29
  networks:
@@ -6,7 +6,7 @@ import { serve } from "@akanjs/service";
6
6
  import * as cnst from "../cnst";
7
7
  import * as db from "../db";
8
8
 
9
- export class ${dict.Model}Service extends serve(db.${dict.model}, () => ({})) {}
9
+ export class ${dict.Model}Service extends serve(db.${dict.model}) {}
10
10
  `;
11
11
  }
12
12
  export {
@@ -3,17 +3,17 @@
3
3
  "description": "<%= repoName %> workspace",
4
4
  "version": "0.0.1",
5
5
  "dependencies": {
6
- "next": "16.0.3",
7
- "react": "19.2.0",
8
- "react-dom": "19.2.0",
9
- "tailwindcss": "^4.1.11",
10
- "daisyui": "^5.5.5"
6
+ "next": "15.3.2",
7
+ "react": "19.1.1",
8
+ "react-dom": "19.1.1",
9
+ "tailwindcss": "^4.1.7",
10
+ "daisyui": "^5.0.35"
11
11
  },
12
12
  "devDependencies": {
13
- "@types/node": "^22.10.4",
14
- "@tailwindcss/postcss": "^4.1.11",
15
- "@types/react": "19.2.0",
16
- "@types/react-dom": "19.2.0",
13
+ "@types/node": "^22.9.0",
14
+ "@tailwindcss/postcss": "^4.1.7",
15
+ "@types/react": "19.1.1",
16
+ "@types/react-dom": "19.1.1",
17
17
  "crypto-browserify": "^3.12.1",
18
18
  "eslint": "^9.19.0",
19
19
  "https-browserify": "^1.0.0",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "sourceType": "module",
4
4
  "name": "@akanjs/cli",
5
- "version": "0.9.58-canary.2",
5
+ "version": "0.9.58",
6
6
  "bin": {
7
7
  "akan": "esm/index.js"
8
8
  },