Skip to content

Commit

Permalink
refactor: use tsconfig base node v16 for node packages
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko committed May 14, 2022
1 parent cafbce2 commit 5f62e81
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 32 deletions.
1 change: 1 addition & 0 deletions packages-backend/eslint-config-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"eslint": "8.x"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.2",
"eslint": "8.15.0"
},
"engines": {
Expand Down
3 changes: 3 additions & 0 deletions packages-backend/eslint-config-node/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@tsconfig/node16/tsconfig.json"
}
1 change: 1 addition & 0 deletions packages-backend/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"jwks-rsa": "2.1.1"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.2",
"@types/express-unless": "^0.5.3",
"@types/jsonwebtoken": "^8.5.8",
"jose": "2.0.5",
Expand Down
3 changes: 3 additions & 0 deletions packages-backend/express/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@tsconfig/node16/tsconfig.json"
}
1 change: 1 addition & 0 deletions packages-backend/loggers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"winston": "3.7.2"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.2",
"express": "4.18.1"
}
}
3 changes: 3 additions & 0 deletions packages-backend/loggers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@tsconfig/node16/tsconfig.json"
}
22 changes: 0 additions & 22 deletions packages-backend/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/codemod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"mri": "1.2.0"
},
"devDependencies": {
"@tsconfig/node14": "^1.0.1",
"@tsconfig/node16": "^1.0.2",
"@types/jscodeshift": "0.11.5",
"rimraf": "3.0.2",
"typescript": "4.6.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/codemod/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node14/tsconfig.json",
"extends": "@tsconfig/node16/tsconfig.json",
"compilerOptions": {
"outDir": "./build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/mc-dev-authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"devDependencies": {
"@commercetools-frontend/application-config": "21.5.0",
"@tsconfig/node14": "^1.0.1",
"@tsconfig/node16": "^1.0.2",
"express": "4.18.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/mc-dev-authentication/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@tsconfig/node14/tsconfig.json"
"extends": "@tsconfig/node16/tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/mc-html-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"uglifycss": "0.0.29"
},
"devDependencies": {
"@tsconfig/node14": "^1.0.1",
"@tsconfig/node16": "^1.0.2",
"@types/serialize-javascript": "^5.0.2",
"html-webpack-plugin": "5.5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/mc-html-template/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@tsconfig/node14/tsconfig.json"
"extends": "@tsconfig/node16/tsconfig.json"
}
1 change: 1 addition & 0 deletions packages/mc-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"webpackbar": "5.0.2"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.2",
"@types/moment-locales-webpack-plugin": "^1.2.3",
"@types/serve-handler": "^6.1.1",
"mock-fs": "^5.1.2",
Expand Down
3 changes: 3 additions & 0 deletions packages/mc-scripts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@tsconfig/node16/tsconfig.json"
}
12 changes: 8 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2447,6 +2447,7 @@ __metadata:
"@babel/preset-env": ^7.16.11
"@babel/preset-typescript": ^7.16.7
"@rushstack/eslint-patch": ^1.1.2
"@tsconfig/node16": ^1.0.2
"@typescript-eslint/eslint-plugin": ^5.19.0
"@typescript-eslint/parser": ^5.19.0
eslint: 8.15.0
Expand All @@ -2467,6 +2468,7 @@ __metadata:
dependencies:
"@babel/runtime": ^7.17.9
"@babel/runtime-corejs3": ^7.17.9
"@tsconfig/node16": ^1.0.2
"@types/express-unless": ^0.5.3
"@types/jsonwebtoken": ^8.5.8
"@types/node": 16.11.33
Expand All @@ -2485,6 +2487,7 @@ __metadata:
"@babel/runtime": ^7.17.9
"@babel/runtime-corejs3": ^7.17.9
"@sentry/node": 6.19.7
"@tsconfig/node16": ^1.0.2
"@types/triple-beam": 1.3.2
express: 4.18.1
express-winston: 4.2.0
Expand Down Expand Up @@ -2914,7 +2917,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@commercetools-frontend/codemod@workspace:packages/codemod"
dependencies:
"@tsconfig/node14": ^1.0.1
"@tsconfig/node16": ^1.0.2
"@types/jscodeshift": 0.11.5
glob: 8.0.1
jscodeshift: 0.13.1
Expand Down Expand Up @@ -3097,7 +3100,7 @@ __metadata:
"@babel/runtime": ^7.17.9
"@babel/runtime-corejs3": ^7.17.9
"@commercetools-frontend/application-config": 21.5.0
"@tsconfig/node14": ^1.0.1
"@tsconfig/node16": ^1.0.2
express: 4.18.1
languageName: unknown
linkType: soft
Expand All @@ -3110,7 +3113,7 @@ __metadata:
"@babel/runtime-corejs3": ^7.17.9
"@commercetools-frontend/application-config": 21.5.0
"@commercetools-frontend/constants": 21.3.4
"@tsconfig/node14": ^1.0.1
"@tsconfig/node16": ^1.0.2
"@types/serialize-javascript": ^5.0.2
html-webpack-plugin: 5.5.0
serialize-javascript: 6.0.0
Expand All @@ -3135,6 +3138,7 @@ __metadata:
"@pmmmwh/react-refresh-webpack-plugin": 0.5.5
"@rollup/plugin-graphql": 1.1.0
"@svgr/webpack": 6.2.1
"@tsconfig/node16": ^1.0.2
"@types/moment-locales-webpack-plugin": ^1.2.3
"@types/serve-handler": ^6.1.1
"@vitejs/plugin-react": 1.3.2
Expand Down Expand Up @@ -9778,7 +9782,7 @@ __metadata:
languageName: node
linkType: hard

"@tsconfig/node14@npm:^1.0.0, @tsconfig/node14@npm:^1.0.1":
"@tsconfig/node14@npm:^1.0.0":
version: 1.0.1
resolution: "@tsconfig/node14@npm:1.0.1"
checksum: 976345e896c0f059867f94f8d0f6ddb8b1844fb62bf36b727de8a9a68f024857e5db97ed51d3325e23e0616a5e48c034ff51a8d595b3fe7e955f3587540489be
Expand Down

0 comments on commit 5f62e81

Please sign in to comment.