Skip to content

Commit

Permalink
Bump the nestjs group in /generators/node-server/resources to v9 stack (
Browse files Browse the repository at this point in the history
#588)

* Bump the nestjs group

Bumps the nestjs group in /generators/node-server/resources with 4 updates: [@nestjs/common](https://github.com/nestjs/nest/tree/HEAD/packages/common), [@nestjs/core](https://github.com/nestjs/nest/tree/HEAD/packages/core), [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express) and [@nestjs/testing](https://github.com/nestjs/nest/tree/HEAD/packages/testing).


Updates `@nestjs/common` from 8.4.7 to 10.4.7
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.7/packages/common)

Updates `@nestjs/core` from 8.4.7 to 10.4.7
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.7/packages/core)

Updates `@nestjs/platform-express` from 8.4.7 to 10.4.7
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.7/packages/platform-express)

Updates `@nestjs/testing` from 8.4.7 to 10.4.7
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.7/packages/testing)

---
updated-dependencies:
- dependency-name: "@nestjs/common"
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: nestjs
- dependency-name: "@nestjs/core"
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: nestjs
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: nestjs
- dependency-name: "@nestjs/testing"
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: nestjs
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update package.json

* Update package.json

* Update package.json

* Update package.json.ejs

* Update auth.module.ts.ejs

* Update package.json.ejs

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Shima <marceloshima@gmail.com>
  • Loading branch information
dependabot[bot] and mshima authored Nov 10, 2024
1 parent e715ebf commit 102252d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
13 changes: 7 additions & 6 deletions generators/node-server/resources/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"dependencies": {
"@nestjs/common": "8.4.7",
"@nestjs/core": "8.4.7",
"@nestjs/axios": "3.1.2",
"@nestjs/common": "9.4.3",
"@nestjs/core": "9.4.3",
"@nestjs/jwt": "10.2.0",
"@nestjs/passport": "10.0.3",
"@nestjs/platform-express": "8.4.7",
"@nestjs/serve-static": "2.2.2",
"@nestjs/swagger": "5.2.1",
"@nestjs/platform-express": "9.4.3",
"@nestjs/serve-static": "4.0.2",
"@nestjs/swagger": "8.0.5",
"@nestjs/typeorm": "8.0.5",
"bcrypt": "5.1.1",
"browser-sync-client": "3.0.3",
Expand Down Expand Up @@ -36,7 +37,7 @@
},
"devDependencies": {
"@jest/globals": "29.7.0",
"@nestjs/testing": "8.4.7",
"@nestjs/testing": "9.4.3",
"@types/bcrypt": "5.0.2",
"@types/express": "4.17.1",
"@types/express-serve-static-core": "4.17.3",
Expand Down
7 changes: 4 additions & 3 deletions generators/node-server/templates/server/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
"typeorm:schema:sync": "npm run typeorm -- schema:sync"
},
"dependencies": {
<%_ if (authenticationType === 'oauth2') { _%>
"@nestjs/axios": "<%- nodeServerDependencies['@nestjs/axios'] %>",
"express-session": "<%- nodeServerDependencies['express-session'] %>",
<%_ } _%>
"browser-sync-client": "<%- nodeServerDependencies['browser-sync-client'] %>",
"@nestjs/common": "<%- nodeServerDependencies['@nestjs/common'] %>",
"@nestjs/core": "<%- nodeServerDependencies['@nestjs/core'] %>",
Expand All @@ -51,9 +55,6 @@
"cloud-config-client": "<%- nodeServerDependencies['cloud-config-client'] %>",
"dotenv": "<%- nodeServerDependencies['dotenv'] %>",
"eureka-js-client": "<%- nodeServerDependencies['eureka-js-client'] %>",
<%_ if (authenticationType === 'oauth2') { _%>
"express-session": "<%- nodeServerDependencies['express-session'] %>",
<%_ } _%>
"js-yaml": "<%- nodeServerDependencies['js-yaml'] %>",
<%_ if (authenticationType === 'oauth2') { _%>
"jwt-decode": "<%- nodeServerDependencies['jwt-decode'] %>",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

import { Module <%_ if (authenticationType === 'oauth2') { _%> , HttpModule <%_ } _%> } from '@nestjs/common';
<%_ if (authenticationType === 'oauth2') { _%>
import { HttpModule } from '@nestjs/axios';
<%_ } _%>
import { Module } from '@nestjs/common';
import { AuthService } from '../service/auth.service';
import { UserModule } from '../module/user.module';
import { PassportModule } from '@nestjs/passport';
Expand Down

0 comments on commit 102252d

Please sign in to comment.