Skip to content

Commit c893bb5

Browse files
authored
Lib upgrade - Mar 25 (#14)
* upgrade root pkgs * upgrade eslint for express, react * upgrade express-server * upgrade nest to v11 * pnpm workspace * pnpm workspace * replace yarn with pnpm * wip * add missing pkgs * wip * update eslint-flat-config * revert pnpm to yarn * replace pnpm with yarn in docs and github actions * update node 20.10.0 to 22.14.0
1 parent 0a8bbf2 commit c893bb5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+4561
-3127
lines changed

.github/workflows/github-actions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [20.10.0]
11+
node-version: [22.14.0]
1212
os: [ubuntu-latest]
1313

1414
steps:

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-linker=hoisted

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ test/jest-e2e.json
1414
tsconfig.json
1515
tsconfig.build.json
1616
turbo.json
17-
yarn.lock
1817

1918
.eslintrc
2019
.eslintrc.*

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,28 @@ You can clone the full repo and keep only the packages you need in your monorepo
1616

1717
## Get Started
1818

19+
This package uses [yarn](https://yarnpkg.com/) as the workspace `packageManager`.
20+
21+
```
22+
npm install -g yarn
23+
```
24+
1925
Place the shared packages in the `packages` folder & the applications code in the `apps` folder.
2026
If you do not wish to use Turborepo, delete `turbo.json` and remove it from `devDependencies` of the package.json in the root directory.
2127

2228
Install `node_modules`
2329

2430
```
25-
yarn
31+
yarn install
2632
```
2733

2834
Add relavant scripts in the root package.json for the frontend and backend apps of your choice.
2935

36+
Run specific commands,
37+
```
38+
yarn <workspace> run <command>
39+
```
40+
3041
Build, run, lint or test all your apps in one command thanks to [Turborepo's Pipelines](https://turborepo.org/docs/core-concepts/pipelines)
3142

3243
## Support Me

apps/express-server/.eslintrc.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

apps/express-server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Base Image
2-
FROM node:20-alpine3.18 AS phase1
2+
FROM node:22.14.0-alpine3.20 AS phase1
33

44
WORKDIR /app
55

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import jsConfig from '@nish1896/eslint-flat-config/js';
2+
3+
export default [
4+
...jsConfig,
5+
];

apps/express-server/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212
},
1313
"dependencies": {
1414
"cors": "^2.8.5",
15-
"dotenv": "^16.4.5",
16-
"express": "^4.21.0",
17-
"winston": "3.15.0"
15+
"dotenv": "^16.4.7",
16+
"express": "^4.21.2",
17+
"winston": "3.17.0"
1818
},
1919
"devDependencies": {
20-
"@nish1896/eslint-config": "^2.0.5",
20+
"@nish1896/eslint-flat-config": "^1.1.4",
2121
"@types/cors": "^2.8.17",
22-
"@types/node": "^22.7.4",
23-
"eslint": "^8.57.0",
24-
"nodemon": "^3.1.7",
22+
"@types/node": "^22.13.10",
23+
"eslint": "^9.22.0",
24+
"nodemon": "^3.1.9",
2525
"rimraf": "^6.0.1",
26-
"tsc-alias": "^1.8.10",
26+
"tsc-alias": "^1.8.11",
2727
"tsconfig-paths": "^4.2.0",
28-
"typescript": "^5.6.2"
28+
"typescript": "^5.8.2"
2929
}
3030
}

apps/express-server/src/routes/auth/service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class AuthService {
1010
password
1111
})
1212
.end();
13-
} catch (err) {
14-
res.status(500).send('Internal Server Error');
13+
} catch (error) {
14+
res.status(500).send(`Internal Server Error: ${JSON.stringify(error)}`);
1515
}
1616
res.end();
1717
}

apps/express-server/tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"compilerOptions": {
3+
"target": "ES2024",
4+
"module": "NodeNext",
5+
"moduleResolution": "NodeNext",
36
"baseUrl": "./",
47
"outDir": "dist",
58
"rootDir": "src",
69
"paths": {
710
"@/*": ["src/*"]
811
},
9-
"esModuleInterop": true,
10-
"moduleResolution": "node"
12+
"esModuleInterop": true
1113
},
1214
"include": ["src/**/*.ts"],
1315
"exclude": ["node_modules", "dist"],

0 commit comments

Comments
 (0)