@nestjs/schematics 8.0.8 → 8.0.11

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018 nestjs
3
+ Copyright (c) 2018-2022 nestjs
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a>
2
+ <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
3
3
  </p>
4
4
 
5
5
  <p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
@@ -20,7 +20,7 @@ The Nest CLI is a command-line interface tool that helps you to initialize, deve
20
20
 
21
21
  ## Installation
22
22
 
23
- ```
23
+ ```bash
24
24
  $ npm install -g @nestjs/schematics
25
25
  ```
26
26
 
@@ -7,7 +7,7 @@ const path_1 = require("path");
7
7
  const formatting_1 = require("../../utils/formatting");
8
8
  const defaults_1 = require("../defaults");
9
9
  function main(options) {
10
- options.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(options.name);
10
+ options.name = (0, formatting_1.normalizeToKebabOrSnakeCase)(options.name.toString());
11
11
  const path = !options.directory || options.directory === 'undefined'
12
12
  ? options.name
13
13
  : options.directory;
@@ -22,7 +22,7 @@ function transform(options) {
22
22
  ? target.description
23
23
  : defaults_1.DEFAULT_DESCRIPTION;
24
24
  target.language = !!target.language ? target.language : defaults_1.DEFAULT_LANGUAGE;
25
- target.name = resolvePackageName(target.name);
25
+ target.name = resolvePackageName(target.name.toString());
26
26
  target.version = !!target.version ? target.version : defaults_1.DEFAULT_VERSION;
27
27
  target.packageManager =
28
28
  !target.packageManager || target.packageManager === 'undefined'
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://json.schemastore.org/nest-cli",
2
3
  "language": "js",
3
4
  "collection": "@nestjs/schematics",
4
5
  "sourceRoot": "src"
@@ -22,17 +22,17 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@nestjs/testing": "^8.0.0",
25
- "@babel/core": "7.17.5",
26
- "@babel/node": "7.16.8",
27
- "@babel/plugin-proposal-decorators": "7.17.2",
28
- "@babel/plugin-transform-runtime": "7.17.0",
29
- "@babel/preset-env": "7.16.11",
30
- "@babel/register": "7.17.0",
31
- "@babel/runtime": "7.17.2",
32
- "jest": "27.5.1",
33
- "nodemon": "2.0.15",
34
- "prettier": "2.5.1",
35
- "supertest": "6.2.2"
25
+ "@babel/core": "7.17.10",
26
+ "@babel/node": "7.17.10",
27
+ "@babel/plugin-proposal-decorators": "7.17.9",
28
+ "@babel/plugin-transform-runtime": "7.17.10",
29
+ "@babel/preset-env": "7.17.10",
30
+ "@babel/register": "7.17.7",
31
+ "@babel/runtime": "7.17.9",
32
+ "jest": "28.0.3",
33
+ "nodemon": "2.0.16",
34
+ "prettier": "2.6.2",
35
+ "supertest": "6.2.3"
36
36
  },
37
37
  "jest": {
38
38
  "moduleFileExtensions": [
@@ -2,6 +2,7 @@ module.exports = {
2
2
  parser: '@typescript-eslint/parser',
3
3
  parserOptions: {
4
4
  project: 'tsconfig.json',
5
+ tsconfigRootDir : __dirname,
5
6
  sourceType: 'module',
6
7
  },
7
8
  plugins: ['@typescript-eslint/eslint-plugin'],
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a>
2
+ <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="200" alt="Nest Logo" /></a>
3
3
  </p>
4
4
 
5
5
  [circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://json.schemastore.org/nest-cli",
2
3
  "collection": "@nestjs/schematics",
3
4
  "sourceRoot": "src"
4
5
  }
@@ -33,7 +33,7 @@
33
33
  "@nestjs/schematics": "^8.0.0",
34
34
  "@nestjs/testing": "^8.0.0",
35
35
  "@types/express": "^4.17.13",
36
- "@types/jest": "27.4.1",
36
+ "@types/jest": "27.5.0",
37
37
  "@types/node": "^16.0.0",
38
38
  "@types/supertest": "^2.0.11",
39
39
  "@typescript-eslint/eslint-plugin": "^5.0.0",
@@ -41,14 +41,14 @@
41
41
  "eslint": "^8.0.1",
42
42
  "eslint-config-prettier": "^8.3.0",
43
43
  "eslint-plugin-prettier": "^4.0.0",
44
- "jest": "^27.2.5",
44
+ "jest": "28.0.3",
45
45
  "prettier": "^2.3.2",
46
46
  "source-map-support": "^0.5.20",
47
47
  "supertest": "^6.1.3",
48
- "ts-jest": "^27.0.3",
48
+ "ts-jest": "28.0.1",
49
49
  "ts-loader": "^9.2.3",
50
50
  "ts-node": "^10.0.0",
51
- "tsconfig-paths": "^3.10.1",
51
+ "tsconfig-paths": "4.0.0",
52
52
  "typescript": "^4.3.5"
53
53
  },
54
54
  "jest": {
@@ -5,7 +5,10 @@
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "name": {
8
- "type": "string",
8
+ "oneOf": [
9
+ { "type": "string" },
10
+ { "type": "number" }
11
+ ],
9
12
  "description": "The name of the application.",
10
13
  "$default": {
11
14
  "$source": "argv",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://json.schemastore.org/nest-cli",
2
3
  "language": "<%= language %>",
3
4
  "collection": "<%= collection %>",
4
5
  "sourceRoot": "src"
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://json.schemastore.org/nest-cli",
2
3
  "collection": "<%= collection %>",
3
4
  "sourceRoot": "src"
4
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/schematics",
3
- "version": "8.0.8",
3
+ "version": "8.0.11",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@schematics)",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -40,33 +40,33 @@
40
40
  },
41
41
  "homepage": "https://github.com/nestjs/schematics#readme",
42
42
  "dependencies": {
43
- "@angular-devkit/core": "13.2.5",
44
- "@angular-devkit/schematics": "13.2.5",
45
- "fs-extra": "10.0.1",
43
+ "@angular-devkit/core": "13.3.5",
44
+ "@angular-devkit/schematics": "13.3.5",
45
+ "fs-extra": "10.1.0",
46
46
  "jsonc-parser": "3.0.0",
47
47
  "pluralize": "8.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@commitlint/cli": "16.2.1",
51
- "@commitlint/config-angular": "16.2.1",
50
+ "@commitlint/cli": "16.2.4",
51
+ "@commitlint/config-angular": "16.2.4",
52
52
  "@types/fs-extra": "9.0.13",
53
- "@types/jest": "27.4.1",
54
- "@types/node": "16.11.26",
55
- "@typescript-eslint/eslint-plugin": "5.13.0",
56
- "@typescript-eslint/parser": "5.13.0",
53
+ "@types/jest": "27.5.0",
54
+ "@types/node": "16.11.33",
55
+ "@typescript-eslint/eslint-plugin": "5.22.0",
56
+ "@typescript-eslint/parser": "5.22.0",
57
57
  "cpx": "1.5.0",
58
- "eslint": "8.10.0",
58
+ "eslint": "8.14.0",
59
59
  "eslint-config-prettier": "8.5.0",
60
- "eslint-plugin-import": "2.25.4",
60
+ "eslint-plugin-import": "2.26.0",
61
61
  "gulp": "4.0.2",
62
62
  "gulp-clean": "0.4.0",
63
63
  "husky": "7.0.4",
64
- "jest": "27.5.1",
64
+ "jest": "28.0.3",
65
65
  "nyc": "15.1.0",
66
- "release-it": "14.12.5",
67
- "ts-jest": "27.1.3",
66
+ "release-it": "15.0.0",
67
+ "ts-jest": "28.0.1",
68
68
  "ts-node": "10.7.0",
69
- "typescript": "4.6.2"
69
+ "typescript": "4.6.4"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "typescript": "^3.4.5 || ^4.3.5"