refactor: move scaler out of $lib/server so it can run in browser

RecipeView needs scaleIngredients on the client for live portion scaling.
Moved scaler.ts from $lib/server/recipes/ to $lib/recipes/.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-17 15:41:20 +02:00
parent 4d7783dd8b
commit 0f9aabe76b
4 changed files with 25 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
<script lang="ts">
import { scaleIngredients } from '$lib/server/recipes/scaler';
import { scaleIngredients } from '$lib/recipes/scaler';
import type { Recipe } from '$lib/types';
type Props = {