Skip to content

Commit

Permalink
Merge pull request #5 from gibbon-lab/alexandre-marre-update-project-…
Browse files Browse the repository at this point in the history
…dependencies

Upgrade nodejs from 16  to 22.3.0
  • Loading branch information
Its-Alex committed Jul 5, 2024
2 parents 2939a23 + f48f3c8 commit 37a2358
Show file tree
Hide file tree
Showing 8 changed files with 6,303 additions and 7,739 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
lint-backend:
runs-on: ubuntu-latest
container: node:16.17.1-alpine3.16
container: node:22.3.0-alpine3.19
steps:
- name: Checkout project
uses: actions/checkout@v3
Expand All @@ -18,7 +18,7 @@ jobs:
yarn lint
lint-frontend:
runs-on: ubuntu-latest
container: node:16.17.1-alpine3.16
container: node:22.3.0-alpine3.19
steps:
- name: Checkout project
uses: actions/checkout@v3
Expand All @@ -31,7 +31,7 @@ jobs:
test-backend:
needs: [lint-backend]
runs-on: ubuntu-latest
container: node:16.17.1-alpine3.16
container: node:22.3.0-alpine3.19
steps:
- name: Checkout project
uses: actions/checkout@v3
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '16.17.1'
node-version: '22.3.0'
registry-url: 'https://registry.npmjs.org'
- run: scripts/deploy-to-npm.sh
env:
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodejs 16.17.1
yarn 1.22.10
nodejs 22.3.0
yarn 1.22.22
direnv 2.28.0
32 changes: 16 additions & 16 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,27 @@
"node": ">=14"
},
"dependencies": {
"@koa/cors": "3.1.0",
"@koa/cors": "5.0.0",
"@sentry/node": "6.13.3",
"ajv": "8.1.0",
"convict": "6.0.1",
"dotenv": "16.0.3",
"koa": "2.13.1",
"koa-bodyparser": "4.3.0",
"koa-router": "10.0.0",
"ajv": "8.16.0",
"convict": "6.2.4",
"dotenv": "16.4.5",
"koa": "2.15.3",
"koa-bodyparser": "4.4.1",
"koa-router": "12.0.1",
"koa-static": "5.0.0",
"koa2-swagger-ui": "5.0.5",
"koa2-swagger-ui": "5.10.0",
"lodash": "4.17.21",
"mjml": "4.9.0",
"nodemailer": "6.5.0",
"nunjucks": "3.2.3"
"mjml": "4.15.3",
"nodemailer": "6.9.14",
"nunjucks": "3.2.4"
},
"devDependencies": {
"eslint": "7.23.0",
"eslint-plugin-jest": "24.3.4",
"jest": "26.6.3",
"nodemon": "2.0.7",
"eslint": "8.56.0",
"eslint-plugin-jest": "28.6.0",
"jest": "29.7.0",
"nodemon": "3.1.4",
"superagent-binary-parser": "1.0.1",
"supertest": "6.1.3"
"supertest": "7.0.0"
}
}
2 changes: 1 addition & 1 deletion backend/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ module.exports = {
);

let staticPath = undefined;
if (!(require.main === module)) { // If package is used as dependency
if (__dirname.includes('node_modules')) { // If package is used as dependency
staticPath = path.join(__dirname, '../front/');
} else if (config.get('static_path')) {
staticPath = config.get('static_path');
Expand Down
Loading

0 comments on commit 37a2358

Please sign in to comment.