chore: pnpm 11 + dependency cleanup (#2089)

* core: upgrade to pnpm 11 and nodejs to 22.22.2

* chore: allow builds

* chore: remove unused

* chore: update actions

* chore: add stub for vitest

* reafactor: small optimization
This commit is contained in:
Alex Christoffer Rasmussen
2026-05-17 21:01:16 +02:00
committed by GitHub
parent d30d9cfd4e
commit 9ae49a7175
15 changed files with 104 additions and 519 deletions
+3 -3
View File
@@ -204,7 +204,7 @@ function isPresettableView(view: string): view is OntimeViewPresettable {
/**
* Check if current location is a preset path
*/
export function isPresetPath(location: Path): boolean {
const segments = location.pathname.split('/').filter(Boolean);
return segments[0] === 'preset';
function isPresetPath(location: Path): boolean {
const firstSegment = location.pathname.split('/').find(Boolean);
return firstSegment === 'preset';
}