Skip to content

Commit

Permalink
feat: common tsconfig package
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeCap08055 committed Jul 31, 2024
1 parent 7bc3f1b commit bc93127
Show file tree
Hide file tree
Showing 15 changed files with 100 additions and 3,579 deletions.
3,538 changes: 19 additions & 3,519 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions packages/ts-config/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "@amplica-labs/ts-config",
"version": "1.0.0",
"description": "Shared TS compiler options",
"main": "tsconfig.json",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "Apache-2.0"
}
20 changes: 20 additions & 0 deletions packages/ts-config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"esModuleInterop": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "CommonJS",
"moduleResolution": "node",
"noImplicitAny": false,
"noImplicitThis": false,
"outDir": "dist",
"resolveJsonModule": true,
"sourceMap": true,
"strict": true,
"skipLibCheck": true,
"strictPropertyInitialization": false,
"target": "es2021",
}
}
10 changes: 10 additions & 0 deletions services/account/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions services/account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"devDependencies": {
"@amplica-labs/frequency-scenario-template": "^1.1.4",
"@amplica-labs/prettier-config": "file:../../packages/prettier-config",
"@amplica-labs/ts-config": "file:../../packages/ts-config",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.11",
"@types/supertest": "^6.0.2",
Expand Down
16 changes: 1 addition & 15 deletions services/account/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
{
"extends": "@amplica-labs/ts-config",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"esModuleInterop": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "CommonJS",
"moduleResolution": "node",
"noImplicitAny": false,
"noImplicitThis": false,
"outDir": "dist",
"paths": {
"#api": [
"apps/api/src"
Expand Down Expand Up @@ -60,12 +52,6 @@
"libs/common/src/utils/*"
]
},
"resolveJsonModule": true,
"sourceMap": true,
"strict": true,
"skipLibCheck": true,
"strictPropertyInitialization": false,
"target": "es2021",
"typeRoots": [
"node_modules/@types"
]
Expand Down
10 changes: 10 additions & 0 deletions services/content-publishing/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions services/content-publishing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"time-constants": "^1.0.3"
},
"devDependencies": {
"@amplica-labs/ts-config": "file:../../packages/ts-config",
"@jest/globals": "^29.7.0",
"@nestjs/testing": "^10.3.8",
"@types/express": "^4.17.21",
Expand Down
19 changes: 3 additions & 16 deletions services/content-publishing/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
{
"extends": "@amplica-labs/ts-config",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "./src",
"esModuleInterop": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "CommonJS",
"moduleResolution": "node",
"noImplicitAny": false,
"noImplicitThis": false,
"baseUrl": ".",
"outDir": "dist",
"paths": {
"#app/*": [
Expand All @@ -21,14 +14,8 @@
"libs/common/src/*"
]
},
"resolveJsonModule": true,
"sourceMap": true,
"strict": true,
"skipLibCheck": true,
"strictPropertyInitialization": false,
"target": "es2021",
"typeRoots": [
"node_modules/@types"
]
}
}
}
10 changes: 10 additions & 0 deletions services/content-watcher/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions services/content-watcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"time-constants": "^1.0.3"
},
"devDependencies": {
"@amplica-labs/ts-config": "file:../../packages/ts-config",
"@hey-api/openapi-ts": "^0.45.1",
"@jest/globals": "^29.7.0",
"@nestjs/testing": "^10.3.10",
Expand Down
16 changes: 1 addition & 15 deletions services/content-watcher/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
{
"extends": "@amplica-labs/ts-config",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"esModuleInterop": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "CommonJS",
"moduleResolution": "node",
"noImplicitAny": false,
"noImplicitThis": false,
"outDir": "dist",
"paths": {
"#api": [
Expand All @@ -24,12 +16,6 @@
"libs/common/src/*"
]
},
"resolveJsonModule": true,
"sourceMap": true,
"strict": true,
"skipLibCheck": true,
"strictPropertyInitialization": false,
"target": "es2021",
"typeRoots": [
"node_modules/@types"
]
Expand Down
10 changes: 10 additions & 0 deletions services/graph/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions services/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
},
"devDependencies": {
"@amplica-labs/frequency-scenario-template": "^1.1.4",
"@amplica-labs/ts-config": "file:../../packages/ts-config",
"@jest/globals": "^29.7.0",
"@nestjs/testing": "^10.3.10",
"@types/express": "^4.17.21",
Expand Down
15 changes: 1 addition & 14 deletions services/graph/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
{
"extends": "@amplica-labs/ts-config",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"esModuleInterop": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "CommonJS",
"moduleResolution": "node",
"noImplicitAny": false,
"noImplicitThis": false,
"outDir": "dist",
"paths": {
"#api": [
Expand Down Expand Up @@ -78,12 +71,6 @@
"libs/common/src/utils/*"
]
},
"resolveJsonModule": true,
"sourceMap": true,
"strict": true,
"skipLibCheck": true,
"strictPropertyInitialization": false,
"target": "es2021",
"typeRoots": [
"node_modules/@types"
]
Expand Down

0 comments on commit bc93127

Please sign in to comment.