diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte
index 1987eb0..eaed6b9 100644
--- a/frontend/src/App.svelte
+++ b/frontend/src/App.svelte
@@ -1,79 +1,77 @@
-
- {resultText}
-
-
-
-
+
+ {resultText}
+
+
+
+
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
index 2cffdc5..36aaa3e 100644
--- a/frontend/tsconfig.json
+++ b/frontend/tsconfig.json
@@ -1,30 +1,30 @@
{
- "extends": "@tsconfig/svelte/tsconfig.json",
- "compilerOptions": {
- "target": "ESNext",
- "useDefineForClassFields": true,
- "module": "ESNext",
- "resolveJsonModule": true,
- "baseUrl": ".",
- /**
- * Typecheck JS in `.svelte` and `.js` files by default.
- * Disable checkJs if you'd like to use dynamic types in JS.
- * Note that setting allowJs false does not prevent the use
- * of JS in `.svelte` files.
- */
- "allowJs": true,
- "checkJs": true,
- "isolatedModules": true
- },
- "include": [
- "src/**/*.d.ts",
- "src/**/*.ts",
- "src/**/*.js",
- "src/**/*.svelte"
- ],
- "references": [
- {
- "path": "./tsconfig.node.json"
+ "extends": "@tsconfig/svelte/tsconfig.json",
+ "compilerOptions": {
+ "target": "ESNext",
+ "useDefineForClassFields": true,
+ "module": "ESNext",
+ "resolveJsonModule": true,
+ "baseUrl": ".",
+ /**
+ * Typecheck JS in `.svelte` and `.js` files by default.
+ * Disable checkJs if you'd like to use dynamic types in JS.
+ * Note that setting allowJs false does not prevent the use
+ * of JS in `.svelte` files.
+ */
+ "allowJs": true,
+ "checkJs": true,
+ "isolatedModules": true,
+ "paths": {
+ "$lib/*": ["src/lib/*"],
+ "$components/*": ["src/lib/components/*"],
+ "$router/*": ["src/lib/router/*"]
}
- ]
+ },
+ "include": ["src/**/*.d.ts", "src/**/*.ts", "src/**/*.js", "src/**/*.svelte"],
+ "references": [
+ {
+ "path": "./tsconfig.node.json"
+ }
+ ]
}
diff --git a/main.go b/main.go
index 0f82886..0843532 100644
--- a/main.go
+++ b/main.go
@@ -6,9 +6,7 @@ import (
"fmt"
"io"
"log"
- "math/rand"
"os"
- "sync"
"github.com/wailsapp/wails/v2"
"github.com/wailsapp/wails/v2/pkg/options"
diff --git a/wails.json b/wails.json
index 0a7a7ed..33f0eb0 100644
--- a/wails.json
+++ b/wails.json
@@ -2,9 +2,9 @@
"$schema": "https://wails.io/schemas/config.v2.json",
"name": "calorie-counter",
"outputfilename": "calorie-counter",
- "frontend:install": "npm install",
- "frontend:build": "npm run build",
- "frontend:dev:watcher": "npm run dev",
+ "frontend:install": "pnpm install",
+ "frontend:build": "pnpm build",
+ "frontend:dev:watcher": "pnpm dev",
"frontend:dev:serverUrl": "auto",
"author": {
"name": "PhatPhuckDave",