Skip to content

Commit

Permalink
Move api.ts to avoid rewriting other files in same directory on gen
Browse files Browse the repository at this point in the history
  • Loading branch information
kunyavskiy committed Mar 16, 2024
1 parent a320ab2 commit 525f4a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export enum PenaltyRoundingMode {

export interface AwardsSettings {
championTitle?: string | null;
groupsChampionTitles?: { [key: string]: string };
groupsChampionTitles?: { [key: GroupId]: string };
rankAwardsMaxRank?: number;
medals?: MedalSettings[];
medalGroups?: MedalSettings[][];
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/overlay/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"rootDir": "../", // Yes, this is ugly. Will be fixed once the admin is typescript too.
"baseUrl": ".",
"paths": {
"@shared/*": ["../common/*"],
"@shared/*": ["../common/*", "../generated/*"],
"@/*": ["src/*"]
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/schema-generator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ val schemasExportLocation = rootProject.layout.projectDirectory.dir("schemas")
val schemasGenerationLocation = tmpLocation.map { it.dir("schemas") }
val schemasGatherLocation = layout.buildDirectory.dir("schemas")

val tsExportLocation = rootProject.layout.projectDirectory.dir("src").dir("frontend").dir("common")
val tsExportLocation = rootProject.layout.projectDirectory.dir("src").dir("frontend").dir("generated")
val tsGenerationLocation = tmpLocation.map { it.dir("ts") }
val tsGatherLocation = layout.buildDirectory.dir("ts")

Expand Down

0 comments on commit 525f4a4

Please sign in to comment.