Skip to content

Commit

Permalink
fix: yarn types crash when /tmp is cross-device (#454)
Browse files Browse the repository at this point in the history
* fix: `yarn types` crash when `/tmp` is cross-device

* refactor: Run prettier
  • Loading branch information
elldritch authored Dec 19, 2024
1 parent 3a69717 commit 9d378fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/json-schema-bin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ fn main() {
}
}

std::fs::rename(&tmp_path, path).unwrap()
std::fs::copy(&tmp_path, path).unwrap();
}
2 changes: 1 addition & 1 deletion frontend/src/gen-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ export interface Trick {
*
* TODO: remove default deserialization attribute in a few days.
*/
played_card_mappings?: Array<TrickUnit[] | null>;
played_card_mappings?: (TrickUnit[] | null)[];
played_cards: PlayedCards[];
player_queue: number[];
trick_format?: TrickFormat | null;
Expand Down

0 comments on commit 9d378fc

Please sign in to comment.