Skip to content

Commit

Permalink
build: unify tsconfig.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymindarts committed Oct 5, 2023
1 parent b3d2f52 commit 3680ad9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
5 changes: 2 additions & 3 deletions core/api/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"name": "galoy",
"scripts": {
"tsc-check-noimplicitany": "tsc --noEmit -p tsconfig.no-implicit-any.json",
"tsc-check": "tsc --noEmit -p tsconfig.d.json && tsc --noEmit",
"tsc-check": "tsc --noEmit -p tsconfig.json && tsc --noEmit",
"madge-check": "yarn madge --circular lib/servers/graphql-main-server.js",
"eslint-check": "eslint \"{src,test}/**/*.ts\"",
"eslint-fix": "eslint \"{src,test}/**/*.ts\" --fix",
"build": "tsc -p tsconfig-build.json && cp -R src/services/price/protos lib/services/price/ && cp -R src/services/dealer-price/proto lib/services/dealer-price/ && cp -R src/services/loopd/protos lib/services/loopd/ && cp -R src/services/bria/proto lib/services/bria/ && tscpaths --silent -p tsconfig.json -s ./src -o ./lib",
"build": "tsc -p tsconfig.json && cp -R src/services/price/protos lib/services/price/ && cp -R src/services/dealer-price/proto lib/services/dealer-price/ && cp -R src/services/loopd/protos lib/services/loopd/ && cp -R src/services/bria/proto lib/services/bria/ && tscpaths --silent -p tsconfig.json -s ./src -o ./lib",
"trigger": "yarn build && node lib/servers/trigger.js | pino-pretty -c -l",
"check:sdl": ". ../../.env && yarn write-sdl && if git diff --name-only | grep -q 'core/api/src/graphql/admin/schema.graphql'; then echo 'Error: core/api/src/graphql/admin/schema.graphql has changes, run `make codegen` and re-recommit' >&2; exit 1; fi && if git diff --name-only | grep -q 'core/api/src/graphql/public/schema.graphql'; then echo 'Error: core/api/src/graphql/public/schema.graphql has changes, run `make codegen` and re-recommit' >&2; exit 1; fi",
"write-sdl": "yarn build && node lib/servers/write-sdl.js write-sdl.yaml && rover supergraph compose --config dev/apollo-federation/supergraph-config.yaml --elv2-license accept > dev/apollo-federation/supergraph.graphql",
Expand Down
7 changes: 0 additions & 7 deletions core/api/tsconfig-build.json

This file was deleted.

4 changes: 0 additions & 4 deletions core/api/tsconfig.d.json

This file was deleted.

8 changes: 6 additions & 2 deletions core/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"sourceMap": true,
"strict": true,
"target": "es2020",
"noImplicitAny": false,
"noImplicitAny": true,
"esModuleInterop": true,
"baseUrl": "./",
"moduleResolution": "node",
Expand All @@ -23,7 +23,11 @@
}
},
"compileOnSave": true,
"include": ["src/**/*", "test/**/*"],
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"test/**/*"
],
"watchOptions": {
"synchronousWatchDirectory": true
}
Expand Down

0 comments on commit 3680ad9

Please sign in to comment.