@akanjs/cli 0.9.34 → 0.9.35

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.
@@ -23,7 +23,9 @@ __export(UiComponent_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(UiComponent_exports);
25
25
  function getContent(scanResult, dict) {
26
- return `
26
+ return {
27
+ filename: "UiComponent.tsx",
28
+ content: `
27
29
  // This is a Sample UI component that can be used in the app.
28
30
  // You can use it by \`import { UiComponent } from "@${dict.appName}/ui";\` in the page or other components.
29
31
  // File name and export name should be same, because of modularizedImport feature of Next.js.
@@ -31,5 +33,6 @@ function getContent(scanResult, dict) {
31
33
  export const UiComponent = () => {
32
34
  return <div>UiComponent</div>;
33
35
  };
34
- `;
36
+ `
37
+ };
35
38
  }
@@ -27,8 +27,8 @@ function getContent(scanResult, dict) {
27
27
  import { batchModuleOf } from "@akanjs/server";
28
28
 
29
29
  import type { ModulesOptions } from "../option";
30
- import { ${dict.AppName}Service } from "./${dict.appName}.service";
30
+ import { ${dict.LibName}Service } from "./${dict.libName}.service";
31
31
 
32
- export const register${dict.AppName}Module = (option: ModulesOptions) => batchModuleOf({ service: ${dict.AppName}Service, uses: {} });
32
+ export const register${dict.LibName}Module = (option: ModulesOptions) => batchModuleOf({ service: ${dict.LibName}Service, uses: {} });
33
33
  `;
34
34
  }
@@ -27,7 +27,7 @@ function getContent(scanResult, dict) {
27
27
  filename: "Summary.Template.tsx",
28
28
  content: `
29
29
  "use client";
30
- import { st, usePage } from "@${dict.appName}/client";
30
+ import { st, usePage } from "@${dict.libName}/client";
31
31
 
32
32
  interface SummaryEditProps {
33
33
  summaryId?: string | null;
@@ -4,16 +4,16 @@
4
4
  "version": "0.0.1",
5
5
  "dependencies": {
6
6
  "next": "15.3.2",
7
- "react": "18.3.1",
8
- "react-dom": "18.3.1",
7
+ "react": "19.1.1",
8
+ "react-dom": "19.1.1",
9
9
  "tailwindcss": "^4.1.7",
10
10
  "daisyui": "^5.0.35"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/node": "^22.9.0",
14
14
  "@tailwindcss/postcss": "^4.1.7",
15
- "@types/react": "18.3.1",
16
- "@types/react-dom": "18.3.1",
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",
@@ -1,6 +1,8 @@
1
1
  // pkgs/@akanjs/cli/src/templates/app/ui/UiComponent.ts
2
2
  function getContent(scanResult, dict) {
3
- return `
3
+ return {
4
+ filename: "UiComponent.tsx",
5
+ content: `
4
6
  // This is a Sample UI component that can be used in the app.
5
7
  // You can use it by \`import { UiComponent } from "@${dict.appName}/ui";\` in the page or other components.
6
8
  // File name and export name should be same, because of modularizedImport feature of Next.js.
@@ -8,7 +10,8 @@ function getContent(scanResult, dict) {
8
10
  export const UiComponent = () => {
9
11
  return <div>UiComponent</div>;
10
12
  };
11
- `;
13
+ `
14
+ };
12
15
  }
13
16
  export {
14
17
  getContent as default
@@ -4,9 +4,9 @@ function getContent(scanResult, dict) {
4
4
  import { batchModuleOf } from "@akanjs/server";
5
5
 
6
6
  import type { ModulesOptions } from "../option";
7
- import { ${dict.AppName}Service } from "./${dict.appName}.service";
7
+ import { ${dict.LibName}Service } from "./${dict.libName}.service";
8
8
 
9
- export const register${dict.AppName}Module = (option: ModulesOptions) => batchModuleOf({ service: ${dict.AppName}Service, uses: {} });
9
+ export const register${dict.LibName}Module = (option: ModulesOptions) => batchModuleOf({ service: ${dict.LibName}Service, uses: {} });
10
10
  `;
11
11
  }
12
12
  export {
@@ -4,7 +4,7 @@ function getContent(scanResult, dict) {
4
4
  filename: "Summary.Template.tsx",
5
5
  content: `
6
6
  "use client";
7
- import { st, usePage } from "@${dict.appName}/client";
7
+ import { st, usePage } from "@${dict.libName}/client";
8
8
 
9
9
  interface SummaryEditProps {
10
10
  summaryId?: string | null;
@@ -4,16 +4,16 @@
4
4
  "version": "0.0.1",
5
5
  "dependencies": {
6
6
  "next": "15.3.2",
7
- "react": "18.3.1",
8
- "react-dom": "18.3.1",
7
+ "react": "19.1.1",
8
+ "react-dom": "19.1.1",
9
9
  "tailwindcss": "^4.1.7",
10
10
  "daisyui": "^5.0.35"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/node": "^22.9.0",
14
14
  "@tailwindcss/postcss": "^4.1.7",
15
- "@types/react": "18.3.1",
16
- "@types/react-dom": "18.3.1",
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.34",
5
+ "version": "0.9.35",
6
6
  "bin": {
7
7
  "akan": "esm/index.js"
8
8
  },
@@ -25,7 +25,7 @@
25
25
  "@langchain/openai": "^0.5.10",
26
26
  "@next/bundle-analyzer": "^15.1.3",
27
27
  "@trapezedev/project": "^7.1.3",
28
- "@vitejs/plugin-react": "^4.4.1",
28
+ "@vitejs/plugin-react": "^4.7.0",
29
29
  "axios": "^1.7.9",
30
30
  "chalk": "^5.4.1",
31
31
  "commander": "^13.1.0",
@@ -36,7 +36,7 @@
36
36
  "esbuild-plugin-d.ts": "^1.3.1",
37
37
  "eslint": "^9.19.0",
38
38
  "form-data": "^4.0.1",
39
- "ink": "^5.2.1",
39
+ "ink": "^6.1.0",
40
40
  "js-yaml": "^4.1.0",
41
41
  "latest-version": "^9.0.0",
42
42
  "lodash": "^4.17.21",
@@ -46,16 +46,16 @@
46
46
  "ora": "^3.4.0",
47
47
  "pluralize": "^8.0.0",
48
48
  "qrcode": "^1.5.4",
49
- "react": "18.3.1",
49
+ "react": "19.1.1",
50
50
  "react-icons": "^5.4.0",
51
51
  "reflect-metadata": "^0.2.2",
52
52
  "tsconfig-paths": "^4.2.0",
53
53
  "tunnel-ssh": "^5.2.0",
54
54
  "typescript": "5.8.3",
55
55
  "uuid": "^11.0.3",
56
- "vite": "^6.3.4",
56
+ "vite": "^7.0.6",
57
57
  "vite-plugin-commonjs": "^0.10.4",
58
- "vite-plugin-node-polyfills": "^0.23.0",
58
+ "vite-plugin-node-polyfills": "^0.24.0",
59
59
  "vite-tsconfig-paths": "^5.1.4"
60
60
  },
61
61
  "esbuild": {
@@ -2,5 +2,8 @@ import type { AppScanResult, LibScanResult } from "@akanjs/config";
2
2
  interface Dict {
3
3
  appName: string;
4
4
  }
5
- export default function getContent(scanResult: AppScanResult | LibScanResult | null, dict: Dict): string;
5
+ export default function getContent(scanResult: AppScanResult | LibScanResult | null, dict: Dict): {
6
+ filename: string;
7
+ content: string;
8
+ };
6
9
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { AppScanResult, LibScanResult } from "@akanjs/config";
2
2
  interface Dict {
3
- appName: string;
4
- AppName: string;
3
+ libName: string;
4
+ LibName: string;
5
5
  }
6
6
  export default function getContent(scanResult: AppScanResult | LibScanResult | null, dict: Dict): string;
7
7
  export {};
@@ -1,6 +1,6 @@
1
1
  import type { AppScanResult, LibScanResult } from "@akanjs/config";
2
2
  interface Dict {
3
- appName: string;
3
+ libName: string;
4
4
  }
5
5
  export default function getContent(scanResult: AppScanResult | LibScanResult | null, dict: Dict): {
6
6
  filename: string;