nestjs-ddd-cli 3.2.1 → 3.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.
Files changed (35) hide show
  1. package/dist/commands/generate-all.js +198 -162
  2. package/dist/commands/generate-all.js.map +1 -1
  3. package/dist/commands/generate-entity.js +37 -33
  4. package/dist/commands/generate-entity.js.map +1 -1
  5. package/dist/commands/generate-module.js +37 -29
  6. package/dist/commands/generate-module.js.map +1 -1
  7. package/dist/commands/recipe.js +59 -12
  8. package/dist/commands/recipe.js.map +1 -1
  9. package/dist/commands/recipes/index.d.ts +1 -0
  10. package/dist/commands/recipes/index.js +1 -0
  11. package/dist/commands/recipes/index.js.map +1 -1
  12. package/dist/commands/recipes/joi-env.recipe.d.ts +1 -0
  13. package/dist/commands/recipes/joi-env.recipe.js +301 -0
  14. package/dist/commands/recipes/joi-env.recipe.js.map +1 -0
  15. package/dist/index.js +6 -3
  16. package/dist/index.js.map +1 -1
  17. package/dist/templates/ai-context/CLAUDE.md.hbs +15 -0
  18. package/dist/templates/ai-context/conventions.md.hbs +7 -0
  19. package/dist/templates/mapper/mapper.hbs +1 -1
  20. package/dist/templates/repository/repository.hbs +1 -1
  21. package/dist/templates/test/repository.spec.hbs +1 -1
  22. package/dist/templates/test/usecase.spec.hbs +1 -1
  23. package/dist/templates/usecase/create-usecase.hbs +1 -1
  24. package/dist/templates/usecase/update-usecase.hbs +1 -1
  25. package/dist/utils/dependency.utils.d.ts +2 -0
  26. package/dist/utils/dependency.utils.js +44 -3
  27. package/dist/utils/dependency.utils.js.map +1 -1
  28. package/dist/utils/field.utils.js +32 -20
  29. package/dist/utils/field.utils.js.map +1 -1
  30. package/dist/utils/file.utils.d.ts +16 -2
  31. package/dist/utils/file.utils.js +113 -12
  32. package/dist/utils/file.utils.js.map +1 -1
  33. package/dist/utils/template-engine.utils.js +83 -68
  34. package/dist/utils/template-engine.utils.js.map +1 -1
  35. package/package.json +10 -8
package/package.json CHANGED
@@ -1,28 +1,30 @@
1
1
  {
2
2
  "name": "nestjs-ddd-cli",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "CLI for generating NestJS DDD boilerplate code",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
- "ddd": "./dist/index.js"
7
+ "ddd": "dist/index.js"
8
8
  },
9
9
  "scripts": {
10
- "build": "tsc -p tsconfig.build.json && cp -r src/templates dist/",
10
+ "build": "tsc -p tsconfig.build.json && cp -r src/templates dist/ && chmod +x dist/index.js",
11
11
  "build:watch": "tsc --watch",
12
12
  "dev": "ts-node src/index.ts",
13
13
  "link": "npm run build && npm link",
14
14
  "unlink": "npm unlink -g nestjs-ddd-cli",
15
15
  "prepublishOnly": "npm run clean && npm run build",
16
16
  "clean": "rm -rf dist coverage",
17
- "test": "jest",
17
+ "test": "jest --runInBand",
18
18
  "test:watch": "jest --watch",
19
19
  "test:cov": "jest --coverage",
20
20
  "test:e2e": "jest --config ./jest.e2e.config.js",
21
- "lint": "eslint src --ext .ts",
21
+ "lint": "eslint src --ext .ts --quiet",
22
+ "lint:strict": "eslint src --ext .ts",
22
23
  "lint:fix": "eslint src --ext .ts --fix",
23
24
  "format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
24
25
  "format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
25
- "typecheck": "tsc --noEmit",
26
+ "typecheck": "tsc -p tsconfig.build.json --noEmit",
27
+ "typecheck:strict": "tsc --noEmit",
26
28
  "prepare": "husky"
27
29
  },
28
30
  "keywords": [
@@ -40,7 +42,7 @@
40
42
  "author": "Ben Ouattara ben.ouattara@outlook.com",
41
43
  "repository": {
42
44
  "type": "git",
43
- "url": "https://github.com/eshe-huli/nestjs-ddd-cli"
45
+ "url": "git+https://github.com/eshe-huli/nestjs-ddd-cli.git"
44
46
  },
45
47
  "bugs": {
46
48
  "url": "https://github.com/eshe-huli/nestjs-ddd-cli/issues"
@@ -104,7 +106,7 @@
104
106
  "*.ts": [
105
107
  "eslint --fix",
106
108
  "prettier --write",
107
- "jest --bail --findRelatedTests"
109
+ "jest --bail --findRelatedTests --passWithNoTests"
108
110
  ],
109
111
  "*.{json,md,yml,yaml}": [
110
112
  "prettier --write"