Skip to content

Commit

Permalink
build: update tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoerpenbeck committed Mar 28, 2024
1 parent 21f24a3 commit 245ff2a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/dist
/tmp
/out-tsc
*.d.cts

# dependencies
node_modules
Expand Down
26 changes: 13 additions & 13 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license": "MIT",
"scripts": {
"ci": "npm run build",
"build": "rimraf ./dist && npm run build:cjs && npm run build:mjs",
"build": "rimraf ./dist ./coverage && npm run build:cjs && npm run build:mjs",
"build:cjs": "tsc --project tsconfig.cjs.json && cp res/package.cjs.json dist/cjs/package.json",
"build:mjs": "tsc --project tsconfig.mjs.json && cp res/package.mjs.json dist/mjs/package.json",
"lint": "eslint .",
Expand Down Expand Up @@ -72,7 +72,7 @@
"dependencies": {
"date-fns": "2.30.0",
"dotenv": "16.4.5",
"express": "4.18.3",
"express": "4.19.2",
"http-status-enum": "1.0.2",
"superagent": "8.1.2",
"timers": "0.1.1",
Expand Down
6 changes: 3 additions & 3 deletions src/common/httpClient/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export * from './constants';
export * from './httpClient';
export { HttpResult } from './models';
export { HttpRequestConfiguration } from './models';
export { QueryParams } from './models';
export type { HttpResult } from './models';
export type { HttpRequestConfiguration } from './models';
export type { QueryParams } from './models';
export { HttpMethod } from './models';

export * from './testHttpClient';
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
"extends": "@tsconfig/node16/tsconfig.json",
"exclude": ["node_modules", "tmp", "dist"],
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"declaration": true,
"lib": ["ESNext"],
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"resolveJsonModule": true,
"rootDir": "./src",
"skipLibCheck": false,
Expand Down

0 comments on commit 245ff2a

Please sign in to comment.