@tsed/cli 6.0.0-alpha.6 → 6.0.0-alpha.8

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 (56) hide show
  1. package/lib/esm/Cli.js.map +1 -1
  2. package/lib/esm/commands/add/AddCmd.js.map +1 -1
  3. package/lib/esm/commands/generate/GenerateCmd.js.map +1 -1
  4. package/lib/esm/commands/init/InitCmd.js.map +1 -1
  5. package/lib/esm/commands/init/config/FeaturesPrompt.js +1 -1
  6. package/lib/esm/commands/init/config/FeaturesPrompt.js.map +1 -1
  7. package/lib/esm/commands/init/interfaces/InitOptions.js +5 -1
  8. package/lib/esm/commands/init/interfaces/InitOptions.js.map +1 -1
  9. package/lib/esm/commands/init/interfaces/InitPromptAnswers.js +2 -1
  10. package/lib/esm/commands/init/interfaces/InitPromptAnswers.js.map +1 -1
  11. package/lib/esm/commands/init/mappers/mapUniqFeatures.js +1 -0
  12. package/lib/esm/commands/init/mappers/mapUniqFeatures.js.map +1 -1
  13. package/lib/esm/commands/run/RunCmd.js.map +1 -1
  14. package/lib/esm/commands/update/UpdateCmd.js.map +1 -1
  15. package/lib/esm/interfaces/ArchitectureConvention.js +1 -1
  16. package/lib/esm/interfaces/ArchitectureConvention.js.map +1 -1
  17. package/lib/esm/interfaces/PlatformType.js +1 -1
  18. package/lib/esm/interfaces/PlatformType.js.map +1 -1
  19. package/lib/esm/interfaces/ProjectConvention.js +1 -1
  20. package/lib/esm/interfaces/ProjectConvention.js.map +1 -1
  21. package/lib/esm/pipes/ClassNamePipe.js.map +1 -1
  22. package/lib/esm/pipes/OutputFilePathPipe.js.map +1 -1
  23. package/lib/esm/pipes/RoutePipe.js.map +1 -1
  24. package/lib/esm/platforms/InitPlatformsModule.js.map +1 -1
  25. package/lib/esm/platforms/supports/InitExpressPlatform.js.map +1 -1
  26. package/lib/esm/platforms/supports/InitKoaPlatform.js.map +1 -1
  27. package/lib/esm/runtimes/RuntimesModule.js +1 -0
  28. package/lib/esm/runtimes/RuntimesModule.js.map +1 -1
  29. package/lib/esm/runtimes/supports/BabelRuntime.js.map +1 -1
  30. package/lib/esm/runtimes/supports/BaseRuntime.js.map +1 -1
  31. package/lib/esm/runtimes/supports/BunRuntime.js.map +1 -1
  32. package/lib/esm/runtimes/supports/NodeRuntime.js.map +1 -1
  33. package/lib/esm/runtimes/supports/WebpackRuntime.js.map +1 -1
  34. package/lib/esm/services/ProvidersInfoService.js +1 -1
  35. package/lib/esm/services/ProvidersInfoService.js.map +1 -1
  36. package/lib/esm/utils/fillImports.js +5 -5
  37. package/lib/esm/utils/fillImports.js.map +1 -1
  38. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  39. package/lib/types/commands/add/AddCmd.d.ts +1 -1
  40. package/lib/types/commands/generate/GenerateCmd.d.ts +2 -1
  41. package/lib/types/commands/init/InitCmd.d.ts +3 -3
  42. package/lib/types/commands/init/config/FeaturesPrompt.d.ts +1 -1
  43. package/lib/types/commands/init/interfaces/InitCmdContext.d.ts +2 -2
  44. package/lib/types/commands/init/mappers/mapToContext.d.ts +1 -1
  45. package/lib/types/commands/init/mappers/mapUniqFeatures.d.ts +2 -2
  46. package/lib/types/commands/init/prompts/getFeaturesPrompt.d.ts +1 -1
  47. package/lib/types/commands/run/RunCmd.d.ts +1 -1
  48. package/lib/types/commands/update/UpdateCmd.d.ts +1 -1
  49. package/lib/types/platforms/InitPlatformsModule.d.ts +1 -1
  50. package/lib/types/platforms/supports/InitExpressPlatform.d.ts +1 -1
  51. package/lib/types/platforms/supports/InitKoaPlatform.d.ts +1 -1
  52. package/package.json +4 -4
  53. package/templates/init/.dockerignore.hbs +1 -0
  54. package/templates/init/.swcrc.hbs +1 -1
  55. package/templates/init/docker/npm/Dockerfile.hbs +1 -1
  56. package/templates/init/docker/pnpm/Dockerfile.hbs +1 -1
@@ -1,4 +1,4 @@
1
- import { CliDefaultOptions, CliPlugins, CommandProvider, PackageManagersModule, ProjectPackageJson, QuestionOptions, Task } from "@tsed/cli-core";
1
+ import { type CliDefaultOptions, CliPlugins, type CommandProvider, PackageManagersModule, ProjectPackageJson, type QuestionOptions, type Task } from "@tsed/cli-core";
2
2
  export interface AddCmdOptions extends CliDefaultOptions {
3
3
  name: string;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { CliDefaultOptions, CommandProvider, ProjectPackageJson, SrcRendererService } from "@tsed/cli-core";
1
+ import { type CliDefaultOptions, type CommandProvider, ProjectPackageJson, SrcRendererService } from "@tsed/cli-core";
2
2
  import { ProjectConvention } from "../../interfaces/ProjectConvention.js";
3
3
  import { ClassNamePipe } from "../../pipes/ClassNamePipe.js";
4
4
  import { OutputFilePathPipe } from "../../pipes/OutputFilePathPipe.js";
@@ -93,6 +93,7 @@ export declare class GenerateCmd implements CommandProvider {
93
93
  $exec(ctx: GenerateCmdContext): ({
94
94
  title: string;
95
95
  task: () => Promise<void>;
96
+ skip?: undefined;
96
97
  } | {
97
98
  title: string;
98
99
  skip(): boolean;
@@ -1,9 +1,9 @@
1
- import { CliExeca, CliFs, CliLoadFile, CliPackageJson, CliPlugins, CliService, CommandProvider, Configuration, PackageManagersModule, ProjectPackageJson, QuestionOptions, RootRendererService, Task } from "@tsed/cli-core";
1
+ import { CliExeca, CliFs, CliLoadFile, CliPackageJson, CliPlugins, CliService, type CommandProvider, Configuration, PackageManagersModule, ProjectPackageJson, type QuestionOptions, RootRendererService, type Task } from "@tsed/cli-core";
2
2
  import { OutputFilePathPipe } from "../../pipes/OutputFilePathPipe.js";
3
3
  import { InitPlatformsModule } from "../../platforms/InitPlatformsModule.js";
4
4
  import { RuntimesModule } from "../../runtimes/RuntimesModule.js";
5
- import { InitCmdContext } from "./interfaces/InitCmdContext.js";
6
- import { InitOptions } from "./interfaces/InitOptions.js";
5
+ import type { InitCmdContext } from "./interfaces/InitCmdContext.js";
6
+ import type { InitOptions } from "./interfaces/InitOptions.js";
7
7
  export declare class InitCmd implements CommandProvider {
8
8
  protected configuration: Configuration;
9
9
  protected cliPlugins: CliPlugins;
@@ -1,4 +1,4 @@
1
- import { InitOptions } from "../interfaces/InitOptions.js";
1
+ import type { InitOptions } from "../interfaces/InitOptions.js";
2
2
  export interface Feature {
3
3
  name: string;
4
4
  value?: any;
@@ -1,5 +1,5 @@
1
- import { CliDefaultOptions } from "@tsed/cli-core";
2
- import { InitOptions } from "./InitOptions.js";
1
+ import type { CliDefaultOptions } from "@tsed/cli-core";
2
+ import type { InitOptions } from "./InitOptions.js";
3
3
  export interface InitCmdContext extends InitOptions, CliDefaultOptions, Record<string, any> {
4
4
  root: string;
5
5
  srcDir: string;
@@ -1,2 +1,2 @@
1
- import { InitCmdContext } from "../interfaces/InitCmdContext.js";
1
+ import type { InitCmdContext } from "../interfaces/InitCmdContext.js";
2
2
  export declare function mapToContext(options: any): InitCmdContext;
@@ -1,3 +1,3 @@
1
- import { InitOptions } from "../interfaces/InitOptions.js";
2
- import { InitPromptAnswers } from "../interfaces/InitPromptAnswers.js";
1
+ import type { InitOptions } from "../interfaces/InitOptions.js";
2
+ import type { InitPromptAnswers } from "../interfaces/InitPromptAnswers.js";
3
3
  export declare function mapUniqFeatures(answers: InitPromptAnswers & any): InitOptions;
@@ -1,2 +1,2 @@
1
- import { InitOptions } from "../interfaces/InitOptions.js";
1
+ import type { InitOptions } from "../interfaces/InitOptions.js";
2
2
  export declare function getFeaturesPrompt(runtimes: string[], availablePackageManagers: string[], options: Partial<InitOptions>): any[];
@@ -1,4 +1,4 @@
1
- import { CliFs, CliRunScript, CommandProvider, ProjectPackageJson, Tasks } from "@tsed/cli-core";
1
+ import { CliFs, CliRunScript, type CommandProvider, ProjectPackageJson, type Tasks } from "@tsed/cli-core";
2
2
  export interface RunCmdContext {
3
3
  production: boolean;
4
4
  command: string;
@@ -1,4 +1,4 @@
1
- import { CliDefaultOptions, CliPackageJson, CommandProvider, NpmRegistryClient, PackageManagersModule, ProjectPackageJson, QuestionOptions, Task } from "@tsed/cli-core";
1
+ import { type CliDefaultOptions, CliPackageJson, type CommandProvider, NpmRegistryClient, PackageManagersModule, ProjectPackageJson, type QuestionOptions, type Task } from "@tsed/cli-core";
2
2
  export interface UpdateCmdContext extends CliDefaultOptions {
3
3
  version: string;
4
4
  [key: string]: any;
@@ -1,4 +1,4 @@
1
- import { InitBasePlatform } from "./supports/InitBasePlatform.js";
1
+ import type { InitBasePlatform } from "./supports/InitBasePlatform.js";
2
2
  export declare class InitPlatformsModule {
3
3
  private platforms;
4
4
  constructor(platforms: InitBasePlatform[]);
@@ -1,4 +1,4 @@
1
- import { InitBasePlatform } from "./InitBasePlatform.js";
1
+ import type { InitBasePlatform } from "./InitBasePlatform.js";
2
2
  export declare class InitExpressPlatform implements InitBasePlatform {
3
3
  readonly name = "express";
4
4
  dependencies(ctx: any): {
@@ -1,4 +1,4 @@
1
- import { InitBasePlatform } from "./InitBasePlatform.js";
1
+ import type { InitBasePlatform } from "./InitBasePlatform.js";
2
2
  export declare class InitKoaPlatform implements InitBasePlatform {
3
3
  readonly name = "koa";
4
4
  dependencies(ctx: any): {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tsed/cli",
3
3
  "description": "CLI to bootstrap your Ts.ED project",
4
- "version": "6.0.0-alpha.6",
4
+ "version": "6.0.0-alpha.8",
5
5
  "type": "module",
6
6
  "main": "./lib/esm/index.js",
7
7
  "source": "./src/index.ts",
@@ -65,7 +65,7 @@
65
65
  "@swc-node/register": ">=1.10.9",
66
66
  "@swc/core": ">=1.7.26",
67
67
  "@swc/helpers": ">=0.5.13",
68
- "@tsed/cli-core": "6.0.0-alpha.6",
68
+ "@tsed/cli-core": "6.0.0-alpha.8",
69
69
  "@tsed/core": ">=7.14.2",
70
70
  "@tsed/di": ">=7.14.2",
71
71
  "@tsed/logger": ">=6.2.1",
@@ -81,10 +81,10 @@
81
81
  "tslib": "2.3.1"
82
82
  },
83
83
  "devDependencies": {
84
- "@tsed/typescript": "6.0.0-alpha.6",
84
+ "@tsed/typescript": "6.0.0-alpha.8",
85
85
  "@types/change-case": "^2.3.1",
86
86
  "cross-env": "7.0.3",
87
- "typescript": "4.9.5",
87
+ "typescript": "5.6.2",
88
88
  "vitest": "2.1.1"
89
89
  },
90
90
  "peerDependencies": {
@@ -2,3 +2,4 @@ node_modules
2
2
  Dockerfile
3
3
  .env.local
4
4
  .env.development
5
+ **/*.spec.ts
@@ -6,7 +6,7 @@
6
6
  "decorators": true,
7
7
  "dynamicImport": true
8
8
  },
9
- "target": "es2023",
9
+ "target": "es2022",
10
10
  "externalHelpers": true,
11
11
  "keepClassNames": true,
12
12
  "transform": {
@@ -13,7 +13,7 @@ COPY ./src ./src
13
13
 
14
14
  RUN npm run build
15
15
 
16
- FROM node:${NODE_VERSION}-alpine as runtime
16
+ FROM node:${NODE_VERSION}-alpine AS runtime
17
17
  ENV WORKDIR /opt
18
18
  WORKDIR $WORKDIR
19
19
 
@@ -13,7 +13,7 @@ COPY ./src ./src
13
13
 
14
14
  RUN pnpm run build
15
15
 
16
- FROM node:${NODE_VERSION}-alpine as runtime
16
+ FROM node:${NODE_VERSION}-alpine AS runtime
17
17
  ENV WORKDIR /opt
18
18
  WORKDIR $WORKDIR
19
19