Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update nest monorepo to v11.0.8 #1668

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .scalingo/first-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ echo "First deploy"

if [[ $APP =~ "pa-back-staging-pr" ]] ; then
echo "Dump de la DB de staging"

if [[ $DATABASE_URL == *"pa_back_pro_817"* ]]; then
echo "Error: Target must not be production"
exit 1
fi

export PATH=$HOME/bin:$PATH
dbclient-fetcher psql 13
psql --dbname $DATABASE_URL -c "CREATE extension postgis;"
Expand All @@ -14,4 +20,22 @@ if [[ $APP =~ "pa-back-staging-pr" ]] ; then
pg_restore --clean --if-exists --no-owner --no-privileges --no-comments --dbname $DATABASE_URL dump.pgsql
fi

if [[ $APP =~ "pa-back-prod-test" ]] ; then
echo "Dump de la DB de prod"

if [[ $DATABASE_URL == *"pa_back_pro_817"* ]]; then
echo "Error: Target must not be production"
exit 1
fi

export PATH=$HOME/bin:$PATH
dbclient-fetcher psql 13
psql --dbname $DATABASE_URL -c "CREATE extension postgis;"
psql --dbname $DATABASE_URL -c "CREATE extension postgis_tiger_geocoder CASCADE;"
psql --dbname $DATABASE_URL -c "CREATE extension postgis_topology;"
psql --dbname $DATABASE_URL -c "CREATE extension pg_trgm;"
pg_dump --clean --if-exists --format c --no-owner --no-privileges --no-comments -n 'public' -n 'sequelize' --exclude-schema 'information_schema' --exclude-schema '^pg_*' --exclude-schema 'tiger' --exclude-schema 'tiger_data' --exclude-schema 'topology' --dbname $PROD_DATABASE_URL --file dump.pgsql
pg_restore --clean --if-exists --no-owner --no-privileges --no-comments --dbname $DATABASE_URL dump.pgsql
fi

yarn migration
23 changes: 23 additions & 0 deletions .scalingo/post-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,36 @@
#!/bin/bash

echo "Post deploy"

if [[ $APP =~ "pa-back-staging-pr" ]] ; then
echo "Dump de la DB de staging"

if [[ $DATABASE_URL == *"pa_back_pro_817"* ]]; then
echo "Error: Target must not be production"
exit 1
fi

export PATH=$HOME/bin:$PATH
dbclient-fetcher psql 13
pg_dump --clean --if-exists --format c --no-owner --no-privileges --no-comments -n 'public' -n 'sequelize' --exclude-schema 'information_schema' --exclude-schema '^pg_*' --exclude-schema 'tiger' --exclude-schema 'tiger_data' --exclude-schema 'topology' --dbname $STAGING_DATABASE_URL --file dump.pgsql
psql --dbname $DATABASE_URL -c "CREATE EXTENSION IF NOT EXISTS postgis; CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder; CREATE EXTENSION IF NOT EXISTS pg_trgm;"
pg_restore --clean --if-exists --no-owner --no-privileges --no-comments --dbname $DATABASE_URL dump.pgsql
fi

if [[ $APP =~ "pa-back-prod-test" ]] ; then
echo "Dump de la DB de prod"

if [[ $DATABASE_URL == *"pa_back_pro_817"* ]]; then
echo "Error: Target must not be production"
exit 1
fi

export PATH=$HOME/bin:$PATH
dbclient-fetcher psql 13
pg_dump --clean --if-exists --format c --no-owner --no-privileges --no-comments -n 'public' -n 'sequelize' --exclude-schema 'information_schema' --exclude-schema '^pg_*' --exclude-schema 'tiger' --exclude-schema 'tiger_data' --exclude-schema 'topology' --dbname $PROD_DATABASE_URL --file dump.pgsql
psql --dbname $DATABASE_URL -c "CREATE EXTENSION IF NOT EXISTS postgis; CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder; CREATE EXTENSION IF NOT EXISTS pg_trgm;"
pg_restore --clean --if-exists --no-owner --no-privileges --no-comments --dbname $DATABASE_URL dump.pgsql
fi

yarn migration

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@
"@aws-sdk/s3-request-presigner": "3.726.1",
"@google-cloud/bigquery": "7.9.1",
"@nestjs/axios": "^3.1.2",
"@nestjs/common": "11.0.6",
"@nestjs/common": "11.0.8",
"@nestjs/config": "2.3.4",
"@nestjs/core": "11.0.6",
"@nestjs/platform-express": "11.0.6",
"@nestjs/core": "11.0.8",
"@nestjs/platform-express": "11.0.8",
"@nestjs/swagger": "11.0.3",
"@nestjs/terminus": "10.3.0",
"axios": "^1.7.7",
Expand Down
30 changes: 15 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1545,9 +1545,9 @@ __metadata:
languageName: node
linkType: hard

"@nestjs/common@npm:11.0.6":
version: 11.0.6
resolution: "@nestjs/common@npm:11.0.6"
"@nestjs/common@npm:11.0.8":
version: 11.0.8
resolution: "@nestjs/common@npm:11.0.8"
dependencies:
iterare: "npm:1.2.1"
tslib: "npm:2.8.1"
Expand All @@ -1562,7 +1562,7 @@ __metadata:
optional: true
class-validator:
optional: true
checksum: 10/931a6eb6eb31f59cd3184d78b625239c57bb173f6bdcba04dc5b5bb801f8d7c9c29ddc161ad9f0dcb8df74bb0d917229129ac7adb2f01a8d20e6deeb1c0163f3
checksum: 10/9d994f409b0258dad08fc0d42aabc7a370f7e48deccc7362ea35f729b8e16e31cf4133b65e736645dd02a5857c00e678b8bc6ea89a1cef4c39cb7716d2150e2b
languageName: node
linkType: hard

Expand All @@ -1582,9 +1582,9 @@ __metadata:
languageName: node
linkType: hard

"@nestjs/core@npm:11.0.6":
version: 11.0.6
resolution: "@nestjs/core@npm:11.0.6"
"@nestjs/core@npm:11.0.8":
version: 11.0.8
resolution: "@nestjs/core@npm:11.0.8"
dependencies:
"@nuxt/opencollective": "npm:0.4.1"
fast-safe-stringify: "npm:2.1.1"
Expand All @@ -1606,7 +1606,7 @@ __metadata:
optional: true
"@nestjs/websockets":
optional: true
checksum: 10/66bef7d3cddf8f6457ed380f62bfc245e4cfd79a6f7b4752922e5bfefa5b8adfb428f7d8712b660017ff2695d5fa18e322133d7e3efc2f1c50cc586175851987
checksum: 10/df1e3d2455d5b3dc44f3b1000c81a8e627189e9e176589e9ef719cf2e364aee0b582823349901c97d58a5bffd0e9c840e23e2e748ed77575e61d11436ab81286
languageName: node
linkType: hard

Expand All @@ -1627,9 +1627,9 @@ __metadata:
languageName: node
linkType: hard

"@nestjs/platform-express@npm:11.0.6":
version: 11.0.6
resolution: "@nestjs/platform-express@npm:11.0.6"
"@nestjs/platform-express@npm:11.0.8":
version: 11.0.8
resolution: "@nestjs/platform-express@npm:11.0.8"
dependencies:
cors: "npm:2.8.5"
express: "npm:5.0.1"
Expand All @@ -1639,7 +1639,7 @@ __metadata:
peerDependencies:
"@nestjs/common": ^11.0.0
"@nestjs/core": ^11.0.0
checksum: 10/b31095d75ef7ee4e046277c3990f77c84627896f2092bbb53f81bcbb2cffbb70b396a0e7443e6d9bb87e006adf81c968d61d508f7431b73c5ddf3623f8aa10a3
checksum: 10/7779fc1a74ca8edc0fc4bb5d9720c79d62d57c3435e082b02377b6a0ae6e35090f59d95c3d263b9c41cfa3ab65ff21d1caf7a2d7be97e6853724e35d58e6e816
languageName: node
linkType: hard

Expand Down Expand Up @@ -9196,10 +9196,10 @@ __metadata:
"@google-cloud/bigquery": "npm:7.9.1"
"@nestjs/axios": "npm:^3.1.2"
"@nestjs/cli": "npm:^10.0.0"
"@nestjs/common": "npm:11.0.6"
"@nestjs/common": "npm:11.0.8"
"@nestjs/config": "npm:2.3.4"
"@nestjs/core": "npm:11.0.6"
"@nestjs/platform-express": "npm:11.0.6"
"@nestjs/core": "npm:11.0.8"
"@nestjs/platform-express": "npm:11.0.8"
"@nestjs/schematics": "npm:^10.2.3"
"@nestjs/swagger": "npm:11.0.3"
"@nestjs/terminus": "npm:10.3.0"
Expand Down
Loading