@tsed/cli-plugin-typeorm 7.1.1 → 7.1.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.
@@ -17,15 +17,6 @@ export class TypeORMInitHook {
17
17
  }
18
18
  return packageJson;
19
19
  }
20
- $alterProjectFiles(project, data) {
21
- if (data.typeorm) {
22
- //set that in config.ts
23
- project.serverSourceFile?.addImportDeclaration({
24
- moduleSpecifier: "@tsed/typeorm"
25
- });
26
- }
27
- return project;
28
- }
29
20
  async $alterInitSubTasks(tasks, data) {
30
21
  const database = getDatabase(data);
31
22
  if (!database || !data.typeorm) {
@@ -1,8 +1,7 @@
1
- import { type CliCommandHooks, ProjectClient, type RenderDataContext } from "@tsed/cli";
1
+ import { type CliCommandHooks, type RenderDataContext } from "@tsed/cli";
2
2
  import { CliService, ProjectPackageJson, type Task } from "@tsed/cli-core";
3
3
  export declare class TypeORMInitHook implements CliCommandHooks {
4
4
  protected cliService: CliService;
5
5
  $alterPackageJson(packageJson: ProjectPackageJson, data: RenderDataContext): ProjectPackageJson;
6
- $alterProjectFiles(project: ProjectClient, data: RenderDataContext): ProjectClient;
7
6
  $alterInitSubTasks(tasks: Task[], data: RenderDataContext): Promise<Task<any>[]>;
8
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tsed/cli-plugin-typeorm",
3
3
  "description": "Ts.ED CLI plugin. Add TypeORM support",
4
- "version": "7.1.1",
4
+ "version": "7.1.2",
5
5
  "type": "module",
6
6
  "main": "./lib/esm/index.js",
7
7
  "source": "./src/index.ts",
@@ -26,9 +26,9 @@
26
26
  "tslib": "2.7.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@tsed/cli": "7.1.1",
30
- "@tsed/cli-core": "7.1.1",
31
- "@tsed/typescript": "7.1.1",
29
+ "@tsed/cli": "7.1.2",
30
+ "@tsed/cli-core": "7.1.2",
31
+ "@tsed/typescript": "7.1.2",
32
32
  "cross-env": "7.0.3",
33
33
  "typescript": "5.6.2",
34
34
  "vitest": "3.2.4"