@tsed/cli 5.2.1 → 5.2.2
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/commands/add/AddCmd.js.map +1 -1
- package/lib/cjs/commands/init/InitCmd.js.map +1 -1
- package/lib/cjs/commands/update/UpdateCmd.js.map +1 -1
- package/lib/esm/commands/add/AddCmd.js.map +1 -1
- package/lib/esm/commands/init/InitCmd.js.map +1 -1
- package/lib/esm/commands/update/UpdateCmd.js.map +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/commands/add/AddCmd.d.ts +2 -8
- package/lib/types/commands/init/InitCmd.d.ts +2 -5
- package/lib/types/commands/update/UpdateCmd.d.ts +2 -5
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CliDefaultOptions, CliPlugins, CommandProvider, PackageManagersModule, ProjectPackageJson, QuestionOptions } from "@tsed/cli-core";
|
|
1
|
+
import { CliDefaultOptions, CliPlugins, CommandProvider, PackageManagersModule, ProjectPackageJson, QuestionOptions, Task } from "@tsed/cli-core";
|
|
2
2
|
export interface AddCmdOptions extends CliDefaultOptions {
|
|
3
3
|
name: string;
|
|
4
4
|
}
|
|
@@ -7,11 +7,5 @@ export declare class AddCmd implements CommandProvider {
|
|
|
7
7
|
packageJson: ProjectPackageJson;
|
|
8
8
|
packageManagers: PackageManagersModule;
|
|
9
9
|
$prompt(initialOptions: any): QuestionOptions;
|
|
10
|
-
$exec(ctx: AddCmdOptions):
|
|
11
|
-
title: string;
|
|
12
|
-
task: (ctx: any, task: import("listr2").ListrTaskWrapper<any, any>) => Promise<import("listr2").Listr<any, any, any>>;
|
|
13
|
-
} | {
|
|
14
|
-
title: string;
|
|
15
|
-
task: () => Promise<void>;
|
|
16
|
-
})[];
|
|
10
|
+
$exec(ctx: AddCmdOptions): Task[];
|
|
17
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CliExeca, CliFs, CliLoadFile, CliPackageJson, CliPlugins, CliService, CommandProvider, Configuration, PackageManagersModule, ProjectPackageJson, QuestionOptions, RootRendererService } from "@tsed/cli-core";
|
|
1
|
+
import { CliExeca, CliFs, CliLoadFile, CliPackageJson, CliPlugins, CliService, CommandProvider, Configuration, PackageManagersModule, ProjectPackageJson, QuestionOptions, RootRendererService, Task } from "@tsed/cli-core";
|
|
2
2
|
import { OutputFilePathPipe } from "../../pipes/OutputFilePathPipe";
|
|
3
3
|
import { InitCmdContext } from "./interfaces/InitCmdContext";
|
|
4
4
|
import { InitOptions } from "./interfaces/InitOptions";
|
|
@@ -23,10 +23,7 @@ export declare class InitCmd implements CommandProvider {
|
|
|
23
23
|
$prompt(initialOptions: Partial<InitOptions>): QuestionOptions;
|
|
24
24
|
$mapContext(ctx: any): InitCmdContext;
|
|
25
25
|
$beforeExec(ctx: InitCmdContext): Promise<any>;
|
|
26
|
-
$exec(ctx: InitCmdContext): Promise<
|
|
27
|
-
title: string;
|
|
28
|
-
task: (ctx: any, task: import("listr2").ListrTaskWrapper<any, any>) => Promise<import("listr2").Listr<any, any, any>>;
|
|
29
|
-
}[]>;
|
|
26
|
+
$exec(ctx: InitCmdContext): Promise<Task[]>;
|
|
30
27
|
$afterPostInstall(): {
|
|
31
28
|
title: string;
|
|
32
29
|
task: () => import("rxjs").Observable<unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CliDefaultOptions, CliPackageJson, CommandProvider, NpmRegistryClient, PackageManagersModule, ProjectPackageJson, QuestionOptions } from "@tsed/cli-core";
|
|
1
|
+
import { CliDefaultOptions, CliPackageJson, CommandProvider, NpmRegistryClient, PackageManagersModule, ProjectPackageJson, QuestionOptions, Task } from "@tsed/cli-core";
|
|
2
2
|
export interface UpdateCmdContext extends CliDefaultOptions {
|
|
3
3
|
version: string;
|
|
4
4
|
[key: string]: any;
|
|
@@ -10,10 +10,7 @@ export declare class UpdateCmd implements CommandProvider {
|
|
|
10
10
|
cliPackage: CliPackageJson;
|
|
11
11
|
private versions;
|
|
12
12
|
$prompt(initialOptions: Partial<UpdateCmdContext>): Promise<QuestionOptions>;
|
|
13
|
-
$exec(ctx: UpdateCmdContext): Promise<
|
|
14
|
-
title: string;
|
|
15
|
-
task: (ctx: any, task: import("listr2").ListrTaskWrapper<any, any>) => Promise<import("listr2").Listr<any, any, any>>;
|
|
16
|
-
}[]>;
|
|
13
|
+
$exec(ctx: UpdateCmdContext): Promise<Task[]>;
|
|
17
14
|
private getAvailableVersions;
|
|
18
15
|
private getEligibleCliVersion;
|
|
19
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/cli",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.2",
|
|
4
4
|
"source": "./src/index.ts",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"node": ">=14"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@tsed/cli-core": "5.2.
|
|
66
|
+
"@tsed/cli-core": "5.2.2",
|
|
67
67
|
"@tsed/core": ">=7.14.2",
|
|
68
68
|
"@tsed/di": ">=7.14.2",
|
|
69
69
|
"@tsed/logger": ">=6.2.1",
|
|
@@ -80,16 +80,16 @@
|
|
|
80
80
|
"tslib": "2.3.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@tsed/eslint": "5.2.
|
|
84
|
-
"@tsed/jest-config": "5.2.
|
|
85
|
-
"@tsed/typescript": "5.2.
|
|
83
|
+
"@tsed/eslint": "5.2.2",
|
|
84
|
+
"@tsed/jest-config": "5.2.2",
|
|
85
|
+
"@tsed/typescript": "5.2.2",
|
|
86
86
|
"@types/change-case": "^2.3.1",
|
|
87
87
|
"cross-env": "7.0.3",
|
|
88
88
|
"eslint": "8.22.0",
|
|
89
89
|
"jest": "29.5.0"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
|
-
"@tsed/cli-core": "5.2.
|
|
92
|
+
"@tsed/cli-core": "5.2.2",
|
|
93
93
|
"@tsed/core": ">=7.14.2",
|
|
94
94
|
"@tsed/di": ">=7.14.2",
|
|
95
95
|
"@tsed/logger": ">=6.2.1",
|