Skip to content

Commit

Permalink
refactor: drop error-utils
Browse files Browse the repository at this point in the history
Unnecessary package we build, publish and maintain.
What it really does is check for never which can be done
with simple `satisfies` operator.
  • Loading branch information
TrySound committed Feb 3, 2025
1 parent c5f15d2 commit 6a96fad
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 753 deletions.
1 change: 0 additions & 1 deletion packages/css-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
},
"dependencies": {
"@emotion/hash": "^0.9.2",
"@webstudio-is/error-utils": "workspace:*",
"@webstudio-is/fonts": "workspace:*",
"zod": "^3.22.4"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/css-engine/src/core/to-value.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { captureError } from "@webstudio-is/error-utils";
import { DEFAULT_FONT_FALLBACK, SYSTEM_FONTS } from "@webstudio-is/fonts";
import type { StyleValue } from "../schema";

Expand Down Expand Up @@ -146,5 +145,6 @@ export const toValue = (
return "";
}

return captureError(new Error("Unknown value type"), value);
value satisfies never;
return "";
};
661 changes: 0 additions & 661 deletions packages/error-utils/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions packages/error-utils/README.md

This file was deleted.

28 changes: 0 additions & 28 deletions packages/error-utils/package.json

This file was deleted.

18 changes: 0 additions & 18 deletions packages/error-utils/src/index.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/error-utils/tsconfig.dts.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/error-utils/tsconfig.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/proxy.ts

This file was deleted.

9 changes: 0 additions & 9 deletions pnpm-lock.yaml

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

0 comments on commit 6a96fad

Please sign in to comment.