@tsed/cli 4.5.1 → 4.5.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/lib/cjs/Cli.js +1 -1
- package/lib/cjs/Cli.js.map +1 -1
- package/lib/cjs/bin/tsed.js.map +1 -1
- package/lib/cjs/commands/add/AddCmd.js +2 -2
- package/lib/cjs/commands/add/AddCmd.js.map +1 -1
- package/lib/cjs/commands/generate/GenerateCmd.js +2 -2
- package/lib/cjs/commands/generate/GenerateCmd.js.map +1 -1
- package/lib/cjs/commands/generate/ProviderTypes.js.map +1 -1
- package/lib/cjs/commands/index.js.map +1 -1
- package/lib/cjs/commands/init/InitCmd.js +5 -2
- package/lib/cjs/commands/init/InitCmd.js.map +1 -1
- package/lib/cjs/commands/init/config/FeaturesPrompt.js.map +1 -1
- package/lib/cjs/commands/init/config/InitFileSchema.js.map +1 -1
- package/lib/cjs/commands/init/interfaces/InitCmdContext.js.map +1 -1
- package/lib/cjs/commands/init/interfaces/InitOptions.js.map +1 -1
- package/lib/cjs/commands/init/interfaces/InitPromptAnswers.js.map +1 -1
- package/lib/cjs/commands/init/mappers/mapToContext.js.map +1 -1
- package/lib/cjs/commands/init/mappers/mapUniqFeatures.js.map +1 -1
- package/lib/cjs/commands/init/prompts/getFeaturesPrompt.js.map +1 -1
- package/lib/cjs/commands/init/utils/hasFeature.js.map +1 -1
- package/lib/cjs/commands/init/utils/isPlatform.js.map +1 -1
- package/lib/cjs/commands/run/RunCmd.js.map +1 -1
- package/lib/cjs/commands/update/UpdateCmd.js.map +1 -1
- package/lib/cjs/constants/index.js +1 -3
- package/lib/cjs/constants/index.js.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/interfaces/ArchitectureConvention.js +1 -1
- package/lib/cjs/interfaces/ArchitectureConvention.js.map +1 -1
- package/lib/cjs/interfaces/PlatformType.js.map +1 -1
- package/lib/cjs/interfaces/ProjectConvention.js +1 -1
- package/lib/cjs/interfaces/ProjectConvention.js.map +1 -1
- package/lib/cjs/interfaces/index.js.map +1 -1
- package/lib/cjs/pipes/ClassNamePipe.js.map +1 -1
- package/lib/cjs/pipes/OutputFilePathPipe.js.map +1 -1
- package/lib/cjs/pipes/RoutePipe.js.map +1 -1
- package/lib/cjs/pipes/index.js.map +1 -1
- package/lib/cjs/services/ProvidersInfoService.js.map +1 -1
- package/lib/cjs/utils/fillImports.js.map +1 -1
- package/lib/esm/Cli.js +1 -1
- package/lib/esm/Cli.js.map +1 -1
- package/lib/esm/bin/tsed.js.map +1 -1
- package/lib/esm/commands/add/AddCmd.js +2 -2
- package/lib/esm/commands/add/AddCmd.js.map +1 -1
- package/lib/esm/commands/generate/GenerateCmd.js +2 -2
- package/lib/esm/commands/generate/GenerateCmd.js.map +1 -1
- package/lib/esm/commands/generate/ProviderTypes.js.map +1 -1
- package/lib/esm/commands/index.js.map +1 -1
- package/lib/esm/commands/init/InitCmd.js +5 -2
- package/lib/esm/commands/init/InitCmd.js.map +1 -1
- package/lib/esm/commands/init/config/FeaturesPrompt.js.map +1 -1
- package/lib/esm/commands/init/config/InitFileSchema.js.map +1 -1
- package/lib/esm/commands/init/interfaces/InitCmdContext.js.map +1 -1
- package/lib/esm/commands/init/interfaces/InitOptions.js.map +1 -1
- package/lib/esm/commands/init/interfaces/InitPromptAnswers.js.map +1 -1
- package/lib/esm/commands/init/mappers/mapToContext.js.map +1 -1
- package/lib/esm/commands/init/mappers/mapUniqFeatures.js.map +1 -1
- package/lib/esm/commands/init/prompts/getFeaturesPrompt.js.map +1 -1
- package/lib/esm/commands/init/utils/hasFeature.js.map +1 -1
- package/lib/esm/commands/init/utils/isPlatform.js.map +1 -1
- package/lib/esm/commands/run/RunCmd.js.map +1 -1
- package/lib/esm/commands/update/UpdateCmd.js.map +1 -1
- package/lib/esm/constants/index.js +4 -4
- package/lib/esm/constants/index.js.map +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/interfaces/ArchitectureConvention.js +1 -1
- package/lib/esm/interfaces/ArchitectureConvention.js.map +1 -1
- package/lib/esm/interfaces/PlatformType.js.map +1 -1
- package/lib/esm/interfaces/ProjectConvention.js +1 -1
- package/lib/esm/interfaces/ProjectConvention.js.map +1 -1
- package/lib/esm/interfaces/index.js.map +1 -1
- package/lib/esm/pipes/ClassNamePipe.js.map +1 -1
- package/lib/esm/pipes/OutputFilePathPipe.js.map +1 -1
- package/lib/esm/pipes/RoutePipe.js.map +1 -1
- package/lib/esm/pipes/index.js.map +1 -1
- package/lib/esm/services/ProvidersInfoService.js.map +1 -1
- package/lib/esm/utils/fillImports.js.map +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/types/commands/add/AddCmd.d.ts +2 -2
- package/lib/types/commands/generate/GenerateCmd.d.ts +4 -4
- package/lib/types/commands/init/InitCmd.d.ts +2 -2
- package/lib/types/interfaces/ArchitectureConvention.d.ts +1 -1
- package/lib/types/interfaces/ProjectConvention.d.ts +1 -1
- package/package.json +15 -7
- package/templates/init/src/index.ts.hbs +1 -1
|
@@ -6,11 +6,11 @@ export declare class AddCmd implements CommandProvider {
|
|
|
6
6
|
cliPlugins: CliPlugins;
|
|
7
7
|
packageJson: ProjectPackageJson;
|
|
8
8
|
$prompt(initialOptions: any): QuestionOptions;
|
|
9
|
-
$exec(ctx: AddCmdOptions):
|
|
9
|
+
$exec(ctx: AddCmdOptions): ({
|
|
10
10
|
title: string;
|
|
11
11
|
task: (ctx: any, task: import("listr2").ListrTaskWrapper<any, any>) => Promise<import("listr2").Listr<any, any, any>>;
|
|
12
12
|
} | {
|
|
13
13
|
title: string;
|
|
14
14
|
task: () => Promise<void>;
|
|
15
|
-
})[]
|
|
15
|
+
})[];
|
|
16
16
|
}
|
|
@@ -31,7 +31,7 @@ export declare class GenerateCmd implements CommandProvider {
|
|
|
31
31
|
message: string;
|
|
32
32
|
default: string | undefined;
|
|
33
33
|
when: () => boolean;
|
|
34
|
-
source: (state: any, keyword: string) =>
|
|
34
|
+
source: (state: any, keyword: string) => any;
|
|
35
35
|
choices?: undefined;
|
|
36
36
|
} | {
|
|
37
37
|
type: string;
|
|
@@ -74,7 +74,7 @@ export declare class GenerateCmd implements CommandProvider {
|
|
|
74
74
|
name: string;
|
|
75
75
|
message: (state: any) => string;
|
|
76
76
|
when(state: any): boolean;
|
|
77
|
-
source: (state: any, keyword: string) =>
|
|
77
|
+
source: (state: any, keyword: string) => any;
|
|
78
78
|
default?: undefined;
|
|
79
79
|
choices?: undefined;
|
|
80
80
|
} | {
|
|
@@ -90,13 +90,13 @@ export declare class GenerateCmd implements CommandProvider {
|
|
|
90
90
|
source?: undefined;
|
|
91
91
|
})[];
|
|
92
92
|
$mapContext(ctx: Partial<GenerateCmdContext>): GenerateCmdContext;
|
|
93
|
-
$exec(ctx: GenerateCmdContext):
|
|
93
|
+
$exec(ctx: GenerateCmdContext): ({
|
|
94
94
|
title: string;
|
|
95
95
|
task: () => Promise<void>;
|
|
96
96
|
} | {
|
|
97
97
|
title: string;
|
|
98
98
|
skip(): boolean;
|
|
99
99
|
task: () => Promise<void>;
|
|
100
|
-
})[]
|
|
100
|
+
})[];
|
|
101
101
|
getDirectories(dir: string): string[];
|
|
102
102
|
}
|
|
@@ -22,10 +22,10 @@ export declare class InitCmd implements CommandProvider {
|
|
|
22
22
|
title: string;
|
|
23
23
|
task: (ctx: any, task: import("listr2").ListrTaskWrapper<any, any>) => Promise<import("listr2").Listr<any, any, any>>;
|
|
24
24
|
}[]>;
|
|
25
|
-
$afterPostInstall():
|
|
25
|
+
$afterPostInstall(): {
|
|
26
26
|
title: string;
|
|
27
27
|
task: () => import("rxjs").Observable<unknown>;
|
|
28
|
-
}[]
|
|
28
|
+
}[];
|
|
29
29
|
resolveRootDir(ctx: Partial<InitCmdContext>): void;
|
|
30
30
|
addScripts(ctx: InitCmdContext): void;
|
|
31
31
|
addDependencies(ctx: InitCmdContext): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/cli",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.3",
|
|
4
4
|
"source": "./src/index.ts",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -12,9 +12,8 @@
|
|
|
12
12
|
"default": "./lib/esm/index.js"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
|
-
"build": "yarn
|
|
16
|
-
"build:
|
|
17
|
-
"build:esm": "tsc --build tsconfig.compile.esm.json",
|
|
15
|
+
"build": "yarn build:ts",
|
|
16
|
+
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json && cp scripts/index.esm.js lib/esm/constants/index.js",
|
|
18
17
|
"start:help": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts -h",
|
|
19
18
|
"start:help:g": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts generate -h",
|
|
20
19
|
"start:help:i": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts init -h",
|
|
@@ -31,7 +30,10 @@
|
|
|
31
30
|
"start:g:model": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts g model -r ./.tmp/init/awesome",
|
|
32
31
|
"start:g:prisma": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts g service -r ./.tmp/init/awesome prisma",
|
|
33
32
|
"start:generate:run": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts generate -r ./.tmp/init/awesome",
|
|
34
|
-
"start:typeorm:run": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts typeorm entity:create -r ./.tmp/init/awesome --name User"
|
|
33
|
+
"start:typeorm:run": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts typeorm entity:create -r ./.tmp/init/awesome --name User",
|
|
34
|
+
"lint": "eslint '**/*.{ts,js}'",
|
|
35
|
+
"lint:fix": "eslint '**/*.{ts,js}' --fix",
|
|
36
|
+
"test": "cross-env NODE_ENV=test yarn jest --max-workers=2 --passWithNoTests && jest-coverage-thresholds-bumper"
|
|
35
37
|
},
|
|
36
38
|
"bin": {
|
|
37
39
|
"tsed": "lib/cjs/bin/tsed.js"
|
|
@@ -59,7 +61,7 @@
|
|
|
59
61
|
"node": ">=14"
|
|
60
62
|
},
|
|
61
63
|
"dependencies": {
|
|
62
|
-
"@tsed/cli-core": "4.5.
|
|
64
|
+
"@tsed/cli-core": "4.5.3",
|
|
63
65
|
"@tsed/core": ">=7.14.2",
|
|
64
66
|
"@tsed/di": ">=7.14.2",
|
|
65
67
|
"@tsed/logger": ">=6.2.1",
|
|
@@ -76,7 +78,13 @@
|
|
|
76
78
|
"tslib": "2.3.1"
|
|
77
79
|
},
|
|
78
80
|
"devDependencies": {
|
|
79
|
-
"@
|
|
81
|
+
"@tsed/eslint": "4.5.3",
|
|
82
|
+
"@tsed/jest-config": "4.5.3",
|
|
83
|
+
"@tsed/typescript": "4.5.3",
|
|
84
|
+
"@types/change-case": "^2.3.1",
|
|
85
|
+
"cross-env": "7.0.3",
|
|
86
|
+
"eslint": "8.22.0",
|
|
87
|
+
"jest": "29.5.0"
|
|
80
88
|
},
|
|
81
89
|
"peerDependencies": {},
|
|
82
90
|
"repository": "https://github.com/tsedio/tsed-cli",
|