Skip to content

Commit

Permalink
refactor: tsconfig files
Browse files Browse the repository at this point in the history
  • Loading branch information
collettemathieu committed Sep 14, 2024
1 parent 7a093ab commit 495f61e
Show file tree
Hide file tree
Showing 21 changed files with 94 additions and 22 deletions.
Binary file modified bun.lockb
Binary file not shown.
10 changes: 9 additions & 1 deletion libs/common/tools/server/http-exceptions/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,13 @@
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": []
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
4 changes: 3 additions & 1 deletion libs/common/tools/server/http-exceptions/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../../../dist/out-tsc",
"types": ["node"]
"types": ["node"],
"composite": true,
"declaration": true
},
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts", "src/**/*.step.ts"]
Expand Down
4 changes: 3 additions & 1 deletion libs/common/tools/server/http-exceptions/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"esModuleInterop": true
"esModuleInterop": true,
"composite": true,
"declaration": true
},
"include": ["src/**/*.ts"]
}
Empty file.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { strict as assert } from 'node:assert';
import type {
PDSPBEPathwayEntity,
PDSPBPInitializePathwayPersistencePort,
Expand All @@ -7,7 +8,6 @@ import type {
import type { DataTable } from '@cucumber/cucumber';
import type { EventPublisher } from '@nestjs/cqrs';
import { before, binding, then, when } from 'cucumber-tsflow';
import { strict as assert } from 'node:assert';
import sinon from 'sinon';
import { PDSPAIUInitializePathwayUsecase } from '../usecase/initialize-pathway.usecase';

Expand Down Expand Up @@ -44,14 +44,14 @@ class FakeEventPublisher {

@binding()
export default class ControllerSteps {
private pDSPBUInitPathwayUseCase = new PDSPAIUInitializePathwayUsecase();
private result: PDSPBPPathwayPresenters | undefined;
private fakeEventPublisher = new FakeEventPublisher();
private fakeInitializePathwayPersistence =
new FakeInitializePathwayPersistence();
private fakePathwayPresenter = new FakePathwayPresenter();
private fakeEventPublisher = new FakeEventPublisher();
private pDSPBUInitPathwayUseCase = new PDSPAIUInitializePathwayUsecase();
private persistenceSpy: sinon.SinonSpy | undefined;
private presenterSpy: sinon.SinonSpy | undefined;
private result: PDSPBPPathwayPresenters | undefined;

@before()
public before() {
Expand Down
10 changes: 9 additions & 1 deletion libs/pathway-design/server/pathway/application/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,13 @@
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": []
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../../../dist/out-tsc",
"types": ["node"]
"types": ["node"],
"composite": true,
"declaration": true
},
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts", "src/**/*.step.ts"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"esModuleInterop": true
"esModuleInterop": true,
"composite": true,
"declaration": true
},
"include": ["src/**/*.ts"]
}
10 changes: 9 additions & 1 deletion libs/pathway-design/server/pathway/business/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,13 @@
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": []
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../../../dist/out-tsc",
"types": ["node"]
"types": ["node"],
"composite": true,
"declaration": true
},
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts", "src/**/*.step.ts"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"esModuleInterop": true
"esModuleInterop": true,
"composite": true,
"declaration": true
},
"include": ["src/**/*.ts"]
}
10 changes: 9 additions & 1 deletion libs/pathway-design/server/pathway/infrastructure/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,13 @@
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": []
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../../../dist/out-tsc",
"types": ["node"]
"types": ["node"],
"composite": true,
"declaration": true
},
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts", "src/**/*.step.ts"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"esModuleInterop": true
"esModuleInterop": true,
"composite": true,
"declaration": true
},
"include": ["src/**/*.ts"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,13 @@
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": ["src/**/*.ts"]
"include": ["src/**/*.ts"],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../../../dist/out-tsc",
"types": ["node"]
"types": ["node"],
"composite": true,
"declaration": true
},
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts", "src/**/*.step.ts"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"esModuleInterop": true
"esModuleInterop": true,
"composite": true,
"declaration": true
},
"include": ["src/**/*.ts"]
}
10 changes: 9 additions & 1 deletion libs/pathway-design/server/pathway/presenters/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,13 @@
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": []
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../../../dist/out-tsc",
"types": ["node"]
"types": ["node"],
"composite": true,
"declaration": true
},
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts", "src/**/*.step.ts"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"esModuleInterop": true
"esModuleInterop": true,
"composite": true,
"declaration": true
},
"include": ["src/**/*.ts"]
}

0 comments on commit 495f61e

Please sign in to comment.