Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bun.lock

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

11 changes: 11 additions & 0 deletions common/lib/panic.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// unexpected error
export function panic(reason: string): never {
throw new Error(reason, {
cause: "panic",
});
}

// expected error
export function error(reason: string, code?: number): never {
throw new Error(reason, { cause: code });
}
116 changes: 0 additions & 116 deletions common/lib/result.ts

This file was deleted.

8 changes: 0 additions & 8 deletions common/lib/result/safeParseInt.ts

This file was deleted.

20 changes: 3 additions & 17 deletions flake.lock

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

3 changes: 1 addition & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

prisma-utils = {
url = "github:VanCoding/nix-prisma-utils";
# HACK: they have named nixpkgs pkgs. I'm submitting a fix PR soon, rename this to `inputs.nixpkgs.follows` when that gets merged.
inputs.pkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
};

Expand Down
3 changes: 2 additions & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
"author": "",
"license": "ISC",
"dependencies": {
"common": "workspace:common",
"@prisma/client": "^5.20.0",
"common": "workspace:common",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ずれてそう(まあいいけど)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bun add するとパッケージが名前順になるっぽい?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

そうなのか、、、

"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"dotenv-cli": "^7.4.2",
"express": "^4.18.2",
"express-async-errors": "^3.1.1",
"firebase-admin": "^12.2.0",
"sharp": "^0.33.5",
"socket.io": "^4.7.5",
Expand Down
2 changes: 1 addition & 1 deletion server/prisma.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
prisma =
(prisma-utils.lib.prisma-factory
{
nixpkgs = pkgs;
inherit pkgs;
prisma-fmt-hash = "sha256-atD5GZfmeU86mF1V6flAshxg4fFR2ews7EwaJWZZzbc=";
query-engine-hash = "sha256-8FTZaKmQCf9lrDQvkF5yWPeZ7TSVfFjTbjdbWWEHgq4=";
libquery-engine-hash = "sha256-USIdaum87ekGY6F6DaL/tKH0BAZvHBDK7zjmCLo//kM=";
Expand Down
Loading
Loading