Skip to content

Commit

Permalink
Remove auto-types.ts and hardcode its relevant items into types.ts
Browse files Browse the repository at this point in the history
This file was ignored and persisted across branches, thus causing fresh checkouts to break (as Vite no longer generates this) but existing checkouts to act "normal".  I've removed the files and its special cases entirely, and added its contents into types.ts.

This now repairs the build. Next up is pruning out the unused generated items and only keeping the relevant ones.
  • Loading branch information
judeallred committed Dec 14, 2023
1 parent 8da4a2e commit b3f9e0f
Show file tree
Hide file tree
Showing 18 changed files with 7,350 additions and 21,896 deletions.
5 changes: 1 addition & 4 deletions apps/sim-core/packages/core/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
coverage
dist

# auto-generated types for API queries
src/util/api/auto-types.ts
dist
2 changes: 0 additions & 2 deletions apps/sim-core/packages/core/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
src/util/api/graphql-schema.json
src/util/api/auto-types.ts
13 changes: 0 additions & 13 deletions apps/sim-core/packages/core/codegen.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CommitActionVerb } from "../../../../util/api/auto-types";
import { CommitActionVerb } from "../../../../util/api/types";
import { ProjectTemplate } from "./types";
import { defaultJsBehaviorSrc } from "../../../../util/defaultJsBehaviorSrc";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CommitActionVerb } from "../../../../util/api/auto-types";
import { CommitActionVerb } from "../../../../util/api/types";
import { ProjectTemplate } from "./types";

const starterSimAnalysis = `\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from "@hashintel/engine-web";

import { AnalysisMode } from "./enum";
import { Commit, ProjectHistoryItemType } from "../../../util/api/auto-types";
import { Commit, ProjectHistoryItemType } from "../../../util/api/types";
import { CommitWithoutStats } from "../../../util/api/queries/commitActions";
import {
DEFAULT_STEPS_PER_SECOND,
Expand Down
Loading

0 comments on commit b3f9e0f

Please sign in to comment.