@akanjs/cli 0.0.47 → 0.0.49

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.
Files changed (77) hide show
  1. package/index.js +57 -71
  2. package/package.json +1 -1
  3. package/pkgs/@akanjs/common/Logger.d.ts +28 -0
  4. package/pkgs/@akanjs/common/applyMixins.d.ts +3 -0
  5. package/pkgs/@akanjs/common/capitalize.d.ts +1 -0
  6. package/pkgs/@akanjs/common/deepObjectify.d.ts +4 -0
  7. package/pkgs/@akanjs/common/index.d.ts +18 -0
  8. package/pkgs/@akanjs/common/isDayjs.d.ts +2 -0
  9. package/pkgs/@akanjs/common/isQueryEqual.d.ts +1 -0
  10. package/pkgs/@akanjs/common/isValidDate.d.ts +2 -0
  11. package/pkgs/@akanjs/common/lowerlize.d.ts +1 -0
  12. package/pkgs/@akanjs/common/mergeVersion.d.ts +10 -0
  13. package/pkgs/@akanjs/common/objectify.d.ts +1 -0
  14. package/pkgs/@akanjs/common/pathGet.d.ts +1 -0
  15. package/pkgs/@akanjs/common/pathSet.d.ts +1 -0
  16. package/pkgs/@akanjs/common/pluralize.d.ts +2 -0
  17. package/pkgs/@akanjs/common/randomPick.d.ts +1 -0
  18. package/pkgs/@akanjs/common/randomPicks.d.ts +1 -0
  19. package/pkgs/@akanjs/common/sleep.d.ts +1 -0
  20. package/pkgs/@akanjs/common/splitVersion.d.ts +11 -0
  21. package/pkgs/@akanjs/common/types.d.ts +15 -0
  22. package/pkgs/@akanjs/config/index.d.ts +132 -0
  23. package/pkgs/@akanjs/config/src/akanConfig.d.ts +7 -0
  24. package/pkgs/@akanjs/config/src/baseConfigEnv.d.ts +8 -0
  25. package/pkgs/@akanjs/config/src/nextConfig.d.ts +17 -0
  26. package/pkgs/@akanjs/devkit/index.d.ts +1 -0
  27. package/pkgs/@akanjs/devkit/src/auth.d.ts +9 -0
  28. package/pkgs/@akanjs/devkit/src/baseDevEnv.d.ts +10 -0
  29. package/pkgs/@akanjs/devkit/src/capacitorApp.d.ts +21 -0
  30. package/pkgs/@akanjs/devkit/src/commandDecorators/argMeta.d.ts +55 -0
  31. package/pkgs/@akanjs/devkit/src/commandDecorators/command.d.ts +2 -0
  32. package/pkgs/@akanjs/devkit/src/commandDecorators/commandMeta.d.ts +2 -0
  33. package/pkgs/@akanjs/devkit/src/commandDecorators/index.d.ts +5 -0
  34. package/pkgs/@akanjs/devkit/src/commandDecorators/targetMeta.d.ts +18 -0
  35. package/pkgs/@akanjs/devkit/src/commandDecorators/types.d.ts +1 -0
  36. package/pkgs/@akanjs/devkit/src/constants.d.ts +19 -0
  37. package/pkgs/@akanjs/devkit/src/createTunnel.d.ts +7 -0
  38. package/pkgs/@akanjs/devkit/src/dependencyScanner.d.ts +9 -0
  39. package/pkgs/@akanjs/devkit/src/executors.d.ts +136 -0
  40. package/pkgs/@akanjs/devkit/src/extractDeps.d.ts +6 -0
  41. package/pkgs/@akanjs/devkit/src/getCredentials.d.ts +12 -0
  42. package/pkgs/@akanjs/devkit/src/getDependencies.d.ts +4 -0
  43. package/pkgs/@akanjs/devkit/src/getModelFileData.d.ts +16 -0
  44. package/pkgs/@akanjs/devkit/src/getRelatedCnsts.d.ts +9 -0
  45. package/pkgs/@akanjs/devkit/src/index.d.ts +18 -0
  46. package/pkgs/@akanjs/devkit/src/installExternalLib.d.ts +2 -0
  47. package/pkgs/@akanjs/devkit/src/selectModel.d.ts +1 -0
  48. package/pkgs/@akanjs/devkit/src/streamAi.d.ts +6 -0
  49. package/pkgs/@akanjs/devkit/src/types.d.ts +18 -0
  50. package/pkgs/@akanjs/devkit/src/uploadRelease.d.ts +9 -0
  51. package/src/templates/libRoot/tsconfig.json.template +3 -1
  52. package/src/templates/pkgRoot/tsconfig.json.template +8 -5
  53. package/src/templates/workplaceRoot/tsconfig.json.template +1 -1
  54. /package/{index.d.ts → pkgs/@akanjs/cli/index.d.ts} +0 -0
  55. /package/{src → pkgs/@akanjs/cli/src}/application/application.command.d.ts +0 -0
  56. /package/{src → pkgs/@akanjs/cli/src}/application/application.prompt.d.ts +0 -0
  57. /package/{src → pkgs/@akanjs/cli/src}/application/application.runner.d.ts +0 -0
  58. /package/{src → pkgs/@akanjs/cli/src}/application/application.script.d.ts +0 -0
  59. /package/{src → pkgs/@akanjs/cli/src}/cloud/cloud.command.d.ts +0 -0
  60. /package/{src → pkgs/@akanjs/cli/src}/cloud/cloud.runner.d.ts +0 -0
  61. /package/{src → pkgs/@akanjs/cli/src}/cloud/cloud.script.d.ts +0 -0
  62. /package/{src → pkgs/@akanjs/cli/src}/library/library.command.d.ts +0 -0
  63. /package/{src → pkgs/@akanjs/cli/src}/library/library.runner.d.ts +0 -0
  64. /package/{src → pkgs/@akanjs/cli/src}/library/library.script.d.ts +0 -0
  65. /package/{src → pkgs/@akanjs/cli/src}/module/module.command.d.ts +0 -0
  66. /package/{src → pkgs/@akanjs/cli/src}/module/module.prompt.d.ts +0 -0
  67. /package/{src → pkgs/@akanjs/cli/src}/module/module.runner.d.ts +0 -0
  68. /package/{src → pkgs/@akanjs/cli/src}/module/module.script.d.ts +0 -0
  69. /package/{src → pkgs/@akanjs/cli/src}/package/package.command.d.ts +0 -0
  70. /package/{src → pkgs/@akanjs/cli/src}/package/package.runner.d.ts +0 -0
  71. /package/{src → pkgs/@akanjs/cli/src}/package/package.script.d.ts +0 -0
  72. /package/{src → pkgs/@akanjs/cli/src}/package/page/page.command.d.ts +0 -0
  73. /package/{src → pkgs/@akanjs/cli/src}/package/page/page.runner.d.ts +0 -0
  74. /package/{src → pkgs/@akanjs/cli/src}/package/page/page.script.d.ts +0 -0
  75. /package/{src → pkgs/@akanjs/cli/src}/workspace/workspace.command.d.ts +0 -0
  76. /package/{src → pkgs/@akanjs/cli/src}/workspace/workspace.runner.d.ts +0 -0
  77. /package/{src → pkgs/@akanjs/cli/src}/workspace/workspace.script.d.ts +0 -0
@@ -0,0 +1,17 @@
1
+ import type { NextConfig } from "next";
2
+ export type NextConfigFn = (phase: string, context?: any) => Promise<NextConfig> | NextConfig;
3
+ export type NextPlugin = (config: NextConfig) => NextConfig;
4
+ export type NextPluginThatReturnsConfigFn = (config: NextConfig) => NextConfigFn;
5
+ export declare const composePlugins: (...plugins: (NextPlugin | NextPluginThatReturnsConfigFn)[]) => ((baseConfig: NextConfig) => NextConfigFn);
6
+ /**
7
+ * @type { (config: import('@nx/next/plugins/with-nx').WithNxOptions) = import('@nx/next/plugins/with-nx').WithNxOptions }
8
+ **/
9
+ export declare const withBase: (appName: string, config: NextConfig, libs: string[], routes?: {
10
+ basePath?: string;
11
+ domains: {
12
+ main?: string[];
13
+ develop?: string[];
14
+ debug?: string[];
15
+ };
16
+ }[]) => NextConfigFn;
17
+ export declare const defaultNextConfigFile = "import \"tsconfig-paths/register\";\n\nimport { getNextConfig } from \"@akanjs/config\";\n\nimport appInfo from \"./akan.app.json\";\nimport config from \"./akan.config\";\n\nexport default getNextConfig(config, appInfo);\n";
@@ -0,0 +1 @@
1
+ export * from "./src";
@@ -0,0 +1,9 @@
1
+ import { AkanGlobalConfig, type HostConfig } from "./constants";
2
+ export declare const getAkanGlobalConfig: () => AkanGlobalConfig;
3
+ export declare const setAkanGlobalConfig: (akanConfig: AkanGlobalConfig) => void;
4
+ export declare const getHostConfig: (host?: string) => HostConfig;
5
+ export declare const setHostConfig: (host?: string, config?: HostConfig) => void;
6
+ export declare const getSelf: (token: string) => Promise<{
7
+ id: string;
8
+ nickname: string;
9
+ } | null>;
@@ -0,0 +1,10 @@
1
+ import { SshOptions } from "tunnel-ssh";
2
+ interface BaseDevEnv {
3
+ appName?: string;
4
+ repoName: string;
5
+ serveDomain: string;
6
+ env: "testing" | "debug" | "develop" | "main";
7
+ }
8
+ export declare const getBaseDevEnv: () => BaseDevEnv;
9
+ export declare const getSshTunnelOptions: (appName: string, environment: string) => SshOptions;
10
+ export {};
@@ -0,0 +1,21 @@
1
+ import type { AppExecutor } from "@akanjs/devkit";
2
+ import { MobileProject } from "@trapezedev/project";
3
+ import type { AndroidProject } from "@trapezedev/project/dist/android/project";
4
+ import type { IosProject } from "@trapezedev/project/dist/ios/project";
5
+ export declare class CapacitorApp {
6
+ #private;
7
+ private readonly app;
8
+ project: MobileProject & {
9
+ ios: IosProject;
10
+ android: AndroidProject;
11
+ };
12
+ iosTargetName: string;
13
+ constructor(app: AppExecutor);
14
+ init(): Promise<this>;
15
+ save(): Promise<void>;
16
+ releaseIos(): Promise<void>;
17
+ releaseAndroid(): Promise<void>;
18
+ addCamera(): Promise<void>;
19
+ addContact(): Promise<void>;
20
+ addLocation(): Promise<void>;
21
+ }
@@ -0,0 +1,55 @@
1
+ import "reflect-metadata";
2
+ import type { AppExecutor, LibExecutor, PkgExecutor, SysExecutor, WorkspaceExecutor } from "../executors";
3
+ import type { Type } from "./types";
4
+ export declare const argTypes: readonly ["Option"];
5
+ export type ArgType = (typeof argTypes)[number];
6
+ export declare const internalArgTypes: readonly ["Workspace", "App", "Lib", "Sys", "Pkg"];
7
+ export type InternalArgType = (typeof internalArgTypes)[number];
8
+ interface ArgsOption {
9
+ type?: "string" | "number" | "boolean";
10
+ flag?: string;
11
+ desc?: string;
12
+ default?: string | number | boolean;
13
+ nullable?: boolean;
14
+ example?: string | number | boolean;
15
+ enum?: (string | number)[] | readonly (string | number)[];
16
+ ask?: string;
17
+ }
18
+ export interface ArgMeta {
19
+ name: string;
20
+ argsOption: ArgsOption;
21
+ key: string;
22
+ idx: number;
23
+ type: ArgType;
24
+ }
25
+ export interface InternalArgMeta {
26
+ key: string;
27
+ idx: number;
28
+ type: InternalArgType;
29
+ option?: {
30
+ nullable?: boolean;
31
+ };
32
+ }
33
+ export declare const getArgMetas: (command: Type, key: string) => [(ArgMeta | InternalArgMeta)[], ArgMeta[], InternalArgMeta[]];
34
+ export declare const Option: (name: string, argsOption?: ArgsOption) => (prototype: object, key: string, idx: number) => void;
35
+ export declare const App: (option?: {
36
+ nullable?: boolean;
37
+ }) => (prototype: object, key: string, idx: number) => void;
38
+ export type App = AppExecutor;
39
+ export declare const Lib: (option?: {
40
+ nullable?: boolean;
41
+ }) => (prototype: object, key: string, idx: number) => void;
42
+ export type Lib = LibExecutor;
43
+ export declare const Sys: (option?: {
44
+ nullable?: boolean;
45
+ }) => (prototype: object, key: string, idx: number) => void;
46
+ export type Sys = SysExecutor;
47
+ export declare const Pkg: (option?: {
48
+ nullable?: boolean;
49
+ }) => (prototype: object, key: string, idx: number) => void;
50
+ export type Pkg = PkgExecutor;
51
+ export declare const Workspace: (option?: {
52
+ nullable?: boolean;
53
+ }) => (prototype: object, key: string, idx: number) => void;
54
+ export type Workspace = WorkspaceExecutor;
55
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { Type } from "./types";
2
+ export declare const runCommands: (...commands: Type[]) => Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { Type } from "./types";
2
+ export declare const Commands: () => (target: Type) => void;
@@ -0,0 +1,5 @@
1
+ export * from "./argMeta";
2
+ export * from "./commandMeta";
3
+ export * from "./targetMeta";
4
+ export * from "./types";
5
+ export * from "./command";
@@ -0,0 +1,18 @@
1
+ import type { Type } from "./types";
2
+ interface TargetMeta {
3
+ key: string;
4
+ descriptor: PropertyDescriptor;
5
+ targetOption: TargetOption;
6
+ }
7
+ export declare const getTargetMetas: (command: Type) => TargetMeta[];
8
+ interface TargetOption {
9
+ type: "public" | "cloud" | "dev";
10
+ short?: string | true;
11
+ devOnly?: boolean;
12
+ }
13
+ export declare const Target: {
14
+ Public: (targetOption?: Omit<TargetOption, "type">) => (prototype: object, key: string, descriptor: PropertyDescriptor) => void;
15
+ Cloud: (targetOption?: Omit<TargetOption, "type">) => (prototype: object, key: string, descriptor: PropertyDescriptor) => void;
16
+ Dev: (targetOption?: Omit<TargetOption, "type">) => (prototype: object, key: string, descriptor: PropertyDescriptor) => void;
17
+ };
18
+ export {};
@@ -0,0 +1 @@
1
+ export type Type<T = any> = new (...args: any[]) => T;
@@ -0,0 +1,19 @@
1
+ export declare const basePath: string;
2
+ export declare const configPath: string;
3
+ export declare const akanCloudHost: string;
4
+ export declare const akanCloudBackendUrl: string;
5
+ export declare const akanCloudClientUrl: string;
6
+ export interface HostConfig {
7
+ auth?: {
8
+ token: string;
9
+ self: {
10
+ id: string;
11
+ nickname: string;
12
+ };
13
+ };
14
+ }
15
+ export declare const defaultHostConfig: HostConfig;
16
+ export interface AkanGlobalConfig {
17
+ [key: string]: HostConfig;
18
+ }
19
+ export declare const defaultAkanGlobalConfig: AkanGlobalConfig;
@@ -0,0 +1,7 @@
1
+ interface TunnelOption {
2
+ appName: string;
3
+ environment: string;
4
+ port?: number;
5
+ }
6
+ export declare const createTunnel: ({ appName, environment, port }: TunnelOption) => Promise<string>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ts-node
2
+ export declare class TypeScriptDependencyScanner {
3
+ #private;
4
+ readonly directory: string;
5
+ constructor(directory: string);
6
+ getImportSets(depSets: Set<string>[]): Promise<Set<string>[]>;
7
+ getDependencies(): Promise<Map<string, string[]>>;
8
+ generateDependencyGraph(): string;
9
+ }
@@ -0,0 +1,136 @@
1
+ import { Logger } from "@akanjs/common";
2
+ import { type AppConfigResult, AppScanResult, type LibConfigResult, LibScanResult, PkgScanResult, WorkspaceScanResult } from "@akanjs/config";
3
+ import { type ExecOptions, type ForkOptions, type SpawnOptions } from "child_process";
4
+ import type { PackageJson, TsConfigJson } from "./types";
5
+ export declare class Executor {
6
+ #private;
7
+ logger: Logger;
8
+ cwdPath: string;
9
+ constructor(name: string, cwdPath: string);
10
+ exec(command: string, options?: ExecOptions): Promise<unknown>;
11
+ spawn(command: string, args?: string[], options?: SpawnOptions): Promise<{
12
+ code: number | null;
13
+ signal: string | null;
14
+ }>;
15
+ fork(modulePath: string, args?: string[], options?: ForkOptions): Promise<unknown>;
16
+ mkdir(dirPath: string): this;
17
+ writeFile(filePath: string, content: string | object): this;
18
+ writeJson(filePath: string, content: object): this;
19
+ readFile(filePath: string): string;
20
+ readJson(filePath: string): object;
21
+ cp(srcPath: string, destPath: string): Promise<void>;
22
+ log(msg: string): this;
23
+ verbose(msg: string): this;
24
+ getTsConfig(pathname: string): TsConfigJson;
25
+ applyTemplate({ basePath, template, scanResult, dict, }: {
26
+ basePath: string;
27
+ template: string;
28
+ scanResult?: AppScanResult | LibScanResult | null;
29
+ dict?: {
30
+ [key: string]: string;
31
+ };
32
+ }): Promise<void>;
33
+ }
34
+ interface ExecutorOptions {
35
+ workspaceRoot: string;
36
+ repoName: string;
37
+ }
38
+ export declare class WorkspaceExecutor extends Executor {
39
+ #private;
40
+ workspaceRoot: string;
41
+ repoName: string;
42
+ constructor({ workspaceRoot, repoName }: ExecutorOptions);
43
+ static fromRoot(): WorkspaceExecutor;
44
+ scan(): Promise<WorkspaceScanResult>;
45
+ getApps(): Promise<string[]>;
46
+ getLibs(): Promise<string[]>;
47
+ getSyss(): Promise<[string[], string[]]>;
48
+ getPkgs(): Promise<string[]>;
49
+ }
50
+ interface SysExecutorOptions {
51
+ workspace?: WorkspaceExecutor;
52
+ name: string;
53
+ type: "app" | "lib";
54
+ }
55
+ export declare class SysExecutor extends Executor {
56
+ workspace: WorkspaceExecutor;
57
+ name: string;
58
+ type: "app" | "lib";
59
+ constructor({ workspace, name, type }: SysExecutorOptions);
60
+ getConfig(command?: string): Promise<LibConfigResult>;
61
+ scan({ tsconfig, akanConfig, }: {
62
+ tsconfig?: TsConfigJson;
63
+ akanConfig: AppConfigResult | LibConfigResult;
64
+ }, libScanResults?: {
65
+ [key: string]: LibScanResult;
66
+ }): Promise<AppScanResult | LibScanResult>;
67
+ getDatabaseModules(): Promise<string[]>;
68
+ getServiceModules(): Promise<string[]>;
69
+ getScalarModules(): Promise<string[]>;
70
+ }
71
+ interface AppExecutorOptions {
72
+ workspace?: WorkspaceExecutor;
73
+ name: string;
74
+ }
75
+ export declare class AppExecutor extends SysExecutor {
76
+ constructor({ workspace, name }: AppExecutorOptions);
77
+ static from(executor: SysExecutor | WorkspaceExecutor, name: string): AppExecutor;
78
+ getConfig(command?: string): Promise<AppConfigResult>;
79
+ syncAssets(libDeps: string[]): Promise<void>;
80
+ }
81
+ interface DistAppExecutorOptions {
82
+ workspace: WorkspaceExecutor;
83
+ name: string;
84
+ }
85
+ export declare class DistAppExecutor extends Executor {
86
+ name: string;
87
+ constructor({ workspace, name }: DistAppExecutorOptions);
88
+ static from(executor: SysExecutor | WorkspaceExecutor, name: string): DistAppExecutor;
89
+ }
90
+ interface LibExecutorOptions {
91
+ workspace?: WorkspaceExecutor;
92
+ name: string;
93
+ }
94
+ export declare class LibExecutor extends SysExecutor {
95
+ workspaceRoot: string;
96
+ repoName: string;
97
+ constructor({ workspace, name }: LibExecutorOptions);
98
+ static from(executor: SysExecutor | WorkspaceExecutor, name: string): LibExecutor;
99
+ getConfig(command?: string): Promise<LibConfigResult>;
100
+ }
101
+ interface DistLibExecutorOptions {
102
+ workspace: WorkspaceExecutor;
103
+ name: string;
104
+ }
105
+ export declare class DistLibExecutor extends Executor {
106
+ name: string;
107
+ constructor({ workspace, name }: DistLibExecutorOptions);
108
+ static from(executor: SysExecutor | WorkspaceExecutor, name: string): DistAppExecutor | DistLibExecutor;
109
+ }
110
+ interface PkgExecutorOptions {
111
+ workspace?: WorkspaceExecutor;
112
+ name: string;
113
+ }
114
+ export declare class PkgExecutor extends Executor {
115
+ workspace: WorkspaceExecutor;
116
+ name: string;
117
+ constructor({ workspace, name }: PkgExecutorOptions);
118
+ static from(executor: SysExecutor | WorkspaceExecutor, name: string): PkgExecutor;
119
+ scan({ packageJson, tsconfig, }?: {
120
+ packageJson?: PackageJson;
121
+ tsconfig?: TsConfigJson;
122
+ }): Promise<PkgScanResult>;
123
+ }
124
+ interface DistPkgExecutorOptions {
125
+ workspaceRoot: string;
126
+ repoName: string;
127
+ name: string;
128
+ }
129
+ export declare class DistPkgExecutor extends Executor {
130
+ workspaceRoot: string;
131
+ repoName: string;
132
+ name: string;
133
+ constructor({ workspaceRoot, repoName, name }: DistPkgExecutorOptions);
134
+ static from(workspaceExecutor: WorkspaceExecutor, name: string): DistPkgExecutor;
135
+ }
136
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { PackageJson } from "./types";
2
+ export declare const extractDependencies: (filepaths: {
3
+ text: string;
4
+ }[], pacakgeJson: PackageJson, defaultDependencies?: string[]) => {
5
+ [k: string]: string;
6
+ };
@@ -0,0 +1,12 @@
1
+ import type { AppExecutor } from "./executors";
2
+ export interface AppSecret {
3
+ mongo: {
4
+ account: {
5
+ user: {
6
+ username: string;
7
+ password: string;
8
+ };
9
+ };
10
+ };
11
+ }
12
+ export declare const getCredentials: (app: AppExecutor, environment: string) => AppSecret;
@@ -0,0 +1,4 @@
1
+ export declare const getDependencies: (projectName: string) => Promise<{
2
+ libDeps: string[];
3
+ npmDeps: string[];
4
+ }>;
@@ -0,0 +1,16 @@
1
+ interface ModelFileData {
2
+ moduleType: "lib" | "app";
3
+ moduleName: string;
4
+ modelName: string;
5
+ constantFilePath: string;
6
+ importModelNames: string[];
7
+ hasImportScalar: boolean;
8
+ importLibNames: string[];
9
+ constantFileStr: string;
10
+ unitFilePath: string;
11
+ unitFileStr: string;
12
+ viewFilePath: string;
13
+ viewFileStr: string;
14
+ }
15
+ export declare const getModelFileData: (modulePath: string, modelName: string) => ModelFileData;
16
+ export {};
@@ -0,0 +1,9 @@
1
+ export declare const getRelatedCnsts: (constantFilePath: string) => {
2
+ paths: Map<string, {
3
+ filePath: string;
4
+ isLibModule: boolean;
5
+ isImport: boolean;
6
+ isScalar: boolean;
7
+ libName?: string;
8
+ }> | null;
9
+ };
@@ -0,0 +1,18 @@
1
+ export * from "./baseDevEnv";
2
+ export * from "./createTunnel";
3
+ export * from "./getCredentials";
4
+ export * from "./getDependencies";
5
+ export * from "./uploadRelease";
6
+ export * from "./getModelFileData";
7
+ export * from "./getRelatedCnsts";
8
+ export * from "./selectModel";
9
+ export * from "./streamAi";
10
+ export * from "./executors";
11
+ export * from "./dependencyScanner";
12
+ export * from "./constants";
13
+ export * from "./auth";
14
+ export * from "./types";
15
+ export * from "./capacitorApp";
16
+ export * from "./extractDeps";
17
+ export * from "./commandDecorators";
18
+ export * from "./installExternalLib";
@@ -0,0 +1,2 @@
1
+ import { type WorkspaceExecutor } from "@akanjs/devkit";
2
+ export declare const installExternalLib: (libName: string, workspace: WorkspaceExecutor) => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const selectModel: (modulePath: string) => Promise<string>;
@@ -0,0 +1,6 @@
1
+ interface StreamResponse {
2
+ content: string;
3
+ chunk?: string;
4
+ }
5
+ export declare const streamAi: (question: string, callback: (chunk: string) => void) => Promise<StreamResponse>;
6
+ export {};
@@ -0,0 +1,18 @@
1
+ export interface PackageJson {
2
+ name: string;
3
+ version: string;
4
+ main?: string;
5
+ description: string;
6
+ scripts?: Record<string, string>;
7
+ dependencies?: Record<string, string>;
8
+ devDependencies?: Record<string, string>;
9
+ peerDependencies?: Record<string, string>;
10
+ engines?: Record<string, string>;
11
+ }
12
+ export interface TsConfigJson {
13
+ extends?: string;
14
+ compilerOptions: {
15
+ target: string;
16
+ paths: Record<string, string[]>;
17
+ };
18
+ }
@@ -0,0 +1,9 @@
1
+ export declare const uploadRelease: (projectName: string, { workspaceRoot, environment, buildNum, platformVersion, local, }: {
2
+ workspaceRoot: string;
3
+ environment: string;
4
+ buildNum: number;
5
+ platformVersion?: string;
6
+ local?: boolean;
7
+ }) => Promise<{
8
+ id: string;
9
+ } | null>;
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "extends": "../../tsconfig.json",
3
3
  "compilerOptions": {
4
- "jsx": "preserve"
4
+ "jsx": "preserve",
5
+ "declaration": true,
6
+ "declarationDir": "dist"
5
7
  },
6
8
  "references": [
7
9
  {
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "extends": "../../tsconfig.json",
3
3
  "compilerOptions": {
4
- "module": "commonjs",
4
+ "jsx": "preserve",
5
5
  "declaration": true,
6
- "esModuleInterop": true,
7
- "types": ["node"]
6
+ "declarationDir": "dist"
8
7
  },
9
8
  "files": [],
10
- "references": [],
11
- "include": ["**/*.ts", "**/*.tsx"]
9
+ "include": ["**/*.ts", "**/*.tsx"],
10
+ "references": [
11
+ {
12
+ "path": "./tsconfig.spec.json"
13
+ }
14
+ ]
12
15
  }
@@ -13,7 +13,7 @@
13
13
  "importHelpers": false,
14
14
  "target": "es2022",
15
15
  "module": "esnext",
16
- "types": ["node", "webpack-env", "jest"],
16
+ "types": ["node", "webpack-env", "vite/client", "kakao.maps.d.ts", "jest"],
17
17
  "lib": ["es2017", "dom", "webworker"],
18
18
  "skipLibCheck": true,
19
19
  "skipDefaultLibCheck": true,
File without changes