From 969ba81090c7ca1097b168c65e6fd33e086ec7b2 Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Sun, 23 Mar 2025 08:27:04 -0400 Subject: [PATCH] Update package version to 0.0.10, disable Deno support in VSCode settings, and modify target directory in store based on development environment. --- .vscode/settings.json | 2 +- package.json | 2 +- src/lib/store.ts | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index b943dbc..81a8778 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ { - "deno.enable": true + "deno.enable": false } \ No newline at end of file diff --git a/package.json b/package.json index 0541303..f2f7e48 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "name": "kunkun-ext-disk-speed", "license": "MIT", "repository": "https://github.com/kunkunsh/kunkun-ext-disk-speed", - "version": "0.0.9", + "version": "0.0.10", "type": "module", "kunkun": { "name": "Disk Speed", diff --git a/src/lib/store.ts b/src/lib/store.ts index 4789c4a..fb2d218 100644 --- a/src/lib/store.ts +++ b/src/lib/store.ts @@ -1,4 +1,7 @@ import { writable } from "svelte/store"; +import { dev } from "$app/environment"; export const stress = writable(1); -export const targetDir = writable("/Volumes/Portable2TB"); +export const targetDir = writable( + dev ? "/Volumes/Portable2TB" : undefined +);