@tsed/cli-plugin-mongoose 6.0.0-alpha.7 → 6.0.0-alpha.9

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.
@@ -3,7 +3,7 @@ import { __decorate, __metadata } from "tslib";
3
3
  import { ProvidersInfoService } from "@tsed/cli";
4
4
  import { CliDockerComposeYaml, Inject, OnExec, ProjectPackageJson, SrcRendererService } from "@tsed/cli-core";
5
5
  import { Injectable } from "@tsed/di";
6
- import { camelCase, paramCase } from "change-case";
6
+ import { camelCase, kebabCase } from "change-case";
7
7
  // @ts-ignore
8
8
  import { plural } from "pluralize";
9
9
  import { CliMongoose } from "../services/CliMongoose.js";
@@ -61,7 +61,7 @@ let MongooseGenerateHook = MongooseGenerateHook_1 = class MongooseGenerateHook {
61
61
  generateConnection(ctx) {
62
62
  return [
63
63
  {
64
- title: `Generate Mongoose configuration file to '${paramCase(ctx.name)}.config.ts'`,
64
+ title: `Generate Mongoose configuration file to '${kebabCase(ctx.name)}.config.ts'`,
65
65
  task: () => this.cliMongoose.writeConfig(ctx.name, ctx)
66
66
  },
67
67
  {
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { Inject, Injectable, ProjectPackageJson, SrcRendererService } from "@tsed/cli-core";
3
- import { camelCase, constantCase, paramCase } from "change-case";
3
+ import { camelCase, constantCase, kebabCase } from "change-case";
4
4
  import { basename, join } from "path";
5
5
  import { TEMPLATE_DIR } from "../utils/templateDir.js";
6
6
  let CliMongoose = class CliMongoose {
@@ -8,9 +8,9 @@ let CliMongoose = class CliMongoose {
8
8
  await this.srcRenderer.render("config.hbs", {
9
9
  ...options,
10
10
  symbolName: constantCase(name),
11
- name: paramCase(name)
11
+ name: kebabCase(name)
12
12
  }, {
13
- output: `${paramCase(name)}.config.ts`,
13
+ output: `${kebabCase(name)}.config.ts`,
14
14
  rootDir: join(this.srcRenderer.rootDir, "config", "mongoose"),
15
15
  templateDir: TEMPLATE_DIR
16
16
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tsed/cli-plugin-mongoose",
3
3
  "description": "Ts.ED CLI plugin. Add Mongoose support",
4
- "version": "6.0.0-alpha.7",
4
+ "version": "6.0.0-alpha.9",
5
5
  "type": "module",
6
6
  "main": "./lib/esm/index.js",
7
7
  "source": "./src/index.ts",
@@ -21,14 +21,14 @@
21
21
  "test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
22
22
  },
23
23
  "dependencies": {
24
- "change-case": "4.1.2",
24
+ "change-case": "5.4.4",
25
25
  "pluralize": "8.0.0",
26
- "tslib": "2.3.1"
26
+ "tslib": "2.7.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@tsed/cli": "6.0.0-alpha.7",
30
- "@tsed/cli-core": "6.0.0-alpha.7",
31
- "@tsed/typescript": "6.0.0-alpha.7",
29
+ "@tsed/cli": "6.0.0-alpha.9",
30
+ "@tsed/cli-core": "6.0.0-alpha.9",
31
+ "@tsed/typescript": "6.0.0-alpha.9",
32
32
  "cross-env": "7.0.3",
33
33
  "typescript": "5.6.2",
34
34
  "vitest": "2.1.1"