release: v1.0.4
Publish Docker image / build (linux/amd64, ubuntu-latest, amd64) (push) Canceled after 0s
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm, arm64) (push) Canceled after 0s
Publish Docker image / merge (push) Canceled after 0s
ci / ci (22, ubuntu-latest) (push) Canceled after 0s
GitHub Release / release (push) Canceled after 0s
Publish Docker image / build (linux/amd64, ubuntu-latest, amd64) (push) Canceled after 0s
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm, arm64) (push) Canceled after 0s
Publish Docker image / merge (push) Canceled after 0s
ci / ci (22, ubuntu-latest) (push) Canceled after 0s
GitHub Release / release (push) Canceled after 0s
Add PasswordInput with show/hide toggle, align legacy setup/register routing, merge duplicate i18n keys, and remove unused jose dependency.
This commit is contained in:
1 parent
661146ce20
commit
7c45a78572
13 files changed
+107
-70
No files matched your search
@@ -23,6 +23,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref }}
|
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref }}
|
||||||
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v6
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
cache: npm
|
||||||
|
|
||||||
|
- name: Install npm 11
|
||||||
|
run: npm install -g npm@11.12.1
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
- name: Extract release notes from CHANGELOG
|
- name: Extract release notes from CHANGELOG
|
||||||
id: notes
|
id: notes
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -36,3 +36,7 @@ data
|
|||||||
|
|
||||||
# 本地 Git hooks 模板(仅安装在 .git/hooks/,不进仓库)
|
# 本地 Git hooks 模板(仅安装在 .git/hooks/,不进仓库)
|
||||||
git-hooks/
|
git-hooks/
|
||||||
|
|
||||||
|
# 飞牛 fpk 工程与产物(仅本地维护,不进仓库)
|
||||||
|
scripts/fpk/
|
||||||
|
dist-fpk/
|
||||||
@@ -2,6 +2,21 @@
|
|||||||
|
|
||||||
本仓库自 **v1.0.0** 起作为正式版维护;此前历史提交已归档重置。
|
本仓库自 **v1.0.0** 起作为正式版维护;此前历史提交已归档重置。
|
||||||
|
|
||||||
|
## [1.0.4] - 2026-08-25
|
||||||
|
|
||||||
|
### 新增
|
||||||
|
|
||||||
|
- 密码输入框支持显示/隐藏切换(`PasswordInput` 组件,含无障碍文案)
|
||||||
|
|
||||||
|
### 改进
|
||||||
|
|
||||||
|
- 遗留 `ADMIN_SECRET` 部署:`/setup`、`/register` 路由与 `needsMigration` 检测对齐
|
||||||
|
- 合并重复的密码不一致 i18n 文案;移除未使用的 `jose` 依赖
|
||||||
|
|
||||||
|
### 修复
|
||||||
|
|
||||||
|
- 修复 `PasswordInput` 导致 CI typecheck 失败
|
||||||
|
|
||||||
## [1.0.3] - 2026-08-23
|
## [1.0.3] - 2026-08-23
|
||||||
|
|
||||||
### 修复
|
### 修复
|
||||||
|
|||||||
@@ -2,10 +2,6 @@
|
|||||||
import logoLight from '~/assets/image/logo-light.png'
|
import logoLight from '~/assets/image/logo-light.png'
|
||||||
import logoDark from '~/assets/image/logo-dark.png'
|
import logoDark from '~/assets/image/logo-dark.png'
|
||||||
|
|
||||||
const emit = defineEmits<{
|
|
||||||
success: []
|
|
||||||
}>()
|
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const { login, fetchStatus, authStatus } = useAuth()
|
const { login, fetchStatus, authStatus } = useAuth()
|
||||||
const toast = useToast()
|
const toast = useToast()
|
||||||
@@ -47,7 +43,6 @@ async function submit() {
|
|||||||
username.value = ''
|
username.value = ''
|
||||||
password.value = ''
|
password.value = ''
|
||||||
secret.value = ''
|
secret.value = ''
|
||||||
emit('success')
|
|
||||||
toast.add({ title: t('auth.loginSuccess'), color: 'success' })
|
toast.add({ title: t('auth.loginSuccess'), color: 'success' })
|
||||||
} else {
|
} else {
|
||||||
toast.add({
|
toast.add({
|
||||||
@@ -108,15 +103,11 @@ async function submit() {
|
|||||||
>
|
>
|
||||||
{{ t('auth.adminSecret') }}
|
{{ t('auth.adminSecret') }}
|
||||||
</label>
|
</label>
|
||||||
<UInput
|
<PasswordInput
|
||||||
id="admin-secret"
|
id="admin-secret"
|
||||||
v-model="secret"
|
v-model="secret"
|
||||||
type="password"
|
|
||||||
:placeholder="t('auth.adminSecretPlaceholder')"
|
:placeholder="t('auth.adminSecretPlaceholder')"
|
||||||
autocomplete="current-password"
|
autocomplete="current-password"
|
||||||
size="lg"
|
|
||||||
class="w-full"
|
|
||||||
:ui="{ root: 'w-full' }"
|
|
||||||
@keyup.enter="submit"
|
@keyup.enter="submit"
|
||||||
/>
|
/>
|
||||||
<p class="text-xs leading-relaxed text-muted">
|
<p class="text-xs leading-relaxed text-muted">
|
||||||
@@ -151,15 +142,11 @@ async function submit() {
|
|||||||
>
|
>
|
||||||
{{ t('auth.password') }}
|
{{ t('auth.password') }}
|
||||||
</label>
|
</label>
|
||||||
<UInput
|
<PasswordInput
|
||||||
id="login-password"
|
id="login-password"
|
||||||
v-model="password"
|
v-model="password"
|
||||||
type="password"
|
|
||||||
:placeholder="t('auth.password')"
|
:placeholder="t('auth.password')"
|
||||||
autocomplete="current-password"
|
autocomplete="current-password"
|
||||||
size="lg"
|
|
||||||
class="w-full"
|
|
||||||
:ui="{ root: 'w-full' }"
|
|
||||||
@keyup.enter="submit"
|
@keyup.enter="submit"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
defineOptions({
|
||||||
|
inheritAttrs: false
|
||||||
|
})
|
||||||
|
|
||||||
|
const model = defineModel<string>({ default: '' })
|
||||||
|
|
||||||
|
defineProps<{
|
||||||
|
id?: string
|
||||||
|
placeholder?: string
|
||||||
|
autocomplete?: string
|
||||||
|
}>()
|
||||||
|
|
||||||
|
const show = ref(false)
|
||||||
|
const { t } = useI18n()
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<UInput
|
||||||
|
:id="id"
|
||||||
|
v-model="model"
|
||||||
|
:type="show ? 'text' : 'password'"
|
||||||
|
:placeholder="placeholder"
|
||||||
|
:autocomplete="autocomplete"
|
||||||
|
size="lg"
|
||||||
|
class="w-full"
|
||||||
|
:ui="{ root: 'w-full', trailing: 'pe-1' }"
|
||||||
|
v-bind="$attrs"
|
||||||
|
>
|
||||||
|
<template #trailing>
|
||||||
|
<UButton
|
||||||
|
color="neutral"
|
||||||
|
variant="link"
|
||||||
|
size="sm"
|
||||||
|
:icon="show ? 'i-lucide-eye-off' : 'i-lucide-eye'"
|
||||||
|
:aria-label="show ? t('auth.hidePassword') : t('auth.showPassword')"
|
||||||
|
:aria-pressed="show"
|
||||||
|
:aria-controls="id"
|
||||||
|
type="button"
|
||||||
|
@click="() => { show = !show }"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</UInput>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
:deep(::-ms-reveal) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -38,7 +38,7 @@ async function submit() {
|
|||||||
if (!canSubmit.value || loading.value) return
|
if (!canSubmit.value || loading.value) return
|
||||||
|
|
||||||
if (newPassword.value !== confirmPassword.value) {
|
if (newPassword.value !== confirmPassword.value) {
|
||||||
toast.add({ title: t('password.mismatch'), color: 'error' })
|
toast.add({ title: t('auth.passwordMismatch'), color: 'error' })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,14 +101,10 @@ async function submit() {
|
|||||||
>
|
>
|
||||||
{{ t('password.current') }}
|
{{ t('password.current') }}
|
||||||
</label>
|
</label>
|
||||||
<UInput
|
<PasswordInput
|
||||||
id="current-password"
|
id="current-password"
|
||||||
v-model="currentPassword"
|
v-model="currentPassword"
|
||||||
type="password"
|
|
||||||
autocomplete="current-password"
|
autocomplete="current-password"
|
||||||
size="lg"
|
|
||||||
class="w-full"
|
|
||||||
:ui="{ root: 'w-full' }"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -119,15 +115,11 @@ async function submit() {
|
|||||||
>
|
>
|
||||||
{{ t('password.new') }}
|
{{ t('password.new') }}
|
||||||
</label>
|
</label>
|
||||||
<UInput
|
<PasswordInput
|
||||||
id="new-password"
|
id="new-password"
|
||||||
v-model="newPassword"
|
v-model="newPassword"
|
||||||
type="password"
|
|
||||||
:placeholder="t('password.newPlaceholder')"
|
:placeholder="t('password.newPlaceholder')"
|
||||||
autocomplete="new-password"
|
autocomplete="new-password"
|
||||||
size="lg"
|
|
||||||
class="w-full"
|
|
||||||
:ui="{ root: 'w-full' }"
|
|
||||||
/>
|
/>
|
||||||
<PasswordStrength :password="newPassword" />
|
<PasswordStrength :password="newPassword" />
|
||||||
</div>
|
</div>
|
||||||
@@ -139,14 +131,10 @@ async function submit() {
|
|||||||
>
|
>
|
||||||
{{ t('password.confirmNew') }}
|
{{ t('password.confirmNew') }}
|
||||||
</label>
|
</label>
|
||||||
<UInput
|
<PasswordInput
|
||||||
id="confirm-new-password"
|
id="confirm-new-password"
|
||||||
v-model="confirmPassword"
|
v-model="confirmPassword"
|
||||||
type="password"
|
|
||||||
autocomplete="new-password"
|
autocomplete="new-password"
|
||||||
size="lg"
|
|
||||||
class="w-full"
|
|
||||||
:ui="{ root: 'w-full' }"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
+3
-11
@@ -22,7 +22,7 @@ const canSubmit = computed(() =>
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
const status = await fetchStatus()
|
const status = await fetchStatus()
|
||||||
if (!status.initialized) {
|
if (!status.initialized && !status.legacyMode) {
|
||||||
await router.replace('/setup')
|
await router.replace('/setup')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -118,15 +118,11 @@ async function submit() {
|
|||||||
>
|
>
|
||||||
{{ t('auth.password') }}
|
{{ t('auth.password') }}
|
||||||
</label>
|
</label>
|
||||||
<UInput
|
<PasswordInput
|
||||||
id="register-password"
|
id="register-password"
|
||||||
v-model="password"
|
v-model="password"
|
||||||
type="password"
|
|
||||||
:placeholder="t('setup.passwordPlaceholder')"
|
:placeholder="t('setup.passwordPlaceholder')"
|
||||||
autocomplete="new-password"
|
autocomplete="new-password"
|
||||||
size="lg"
|
|
||||||
class="w-full"
|
|
||||||
:ui="{ root: 'w-full' }"
|
|
||||||
/>
|
/>
|
||||||
<PasswordStrength :password="password" />
|
<PasswordStrength :password="password" />
|
||||||
</div>
|
</div>
|
||||||
@@ -138,15 +134,11 @@ async function submit() {
|
|||||||
>
|
>
|
||||||
{{ t('auth.confirmPassword') }}
|
{{ t('auth.confirmPassword') }}
|
||||||
</label>
|
</label>
|
||||||
<UInput
|
<PasswordInput
|
||||||
id="register-confirm"
|
id="register-confirm"
|
||||||
v-model="confirmPassword"
|
v-model="confirmPassword"
|
||||||
type="password"
|
|
||||||
:placeholder="t('setup.confirmPlaceholder')"
|
:placeholder="t('setup.confirmPlaceholder')"
|
||||||
autocomplete="new-password"
|
autocomplete="new-password"
|
||||||
size="lg"
|
|
||||||
class="w-full"
|
|
||||||
:ui="{ root: 'w-full' }"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
+9
-11
@@ -9,7 +9,8 @@ const { setup, migrate, fetchStatus } = useAuth()
|
|||||||
const toast = useToast()
|
const toast = useToast()
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
const isMigrate = computed(() => route.query.migrate === '1')
|
const needsMigration = ref(false)
|
||||||
|
const isMigrate = computed(() => needsMigration.value || route.query.migrate === '1')
|
||||||
|
|
||||||
const username = ref('')
|
const username = ref('')
|
||||||
const password = ref('')
|
const password = ref('')
|
||||||
@@ -26,6 +27,11 @@ const canSubmit = computed(() =>
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
const status = await fetchStatus()
|
const status = await fetchStatus()
|
||||||
|
needsMigration.value = status.needsMigration
|
||||||
|
if (status.legacyMode && !status.needsMigration) {
|
||||||
|
await router.replace('/')
|
||||||
|
return
|
||||||
|
}
|
||||||
if (status.initialized && !status.needsMigration) {
|
if (status.initialized && !status.needsMigration) {
|
||||||
await router.replace('/')
|
await router.replace('/')
|
||||||
}
|
}
|
||||||
@@ -129,15 +135,11 @@ async function submit() {
|
|||||||
>
|
>
|
||||||
{{ t('auth.password') }}
|
{{ t('auth.password') }}
|
||||||
</label>
|
</label>
|
||||||
<UInput
|
<PasswordInput
|
||||||
id="setup-password"
|
id="setup-password"
|
||||||
v-model="password"
|
v-model="password"
|
||||||
type="password"
|
|
||||||
:placeholder="t('setup.passwordPlaceholder')"
|
:placeholder="t('setup.passwordPlaceholder')"
|
||||||
autocomplete="new-password"
|
autocomplete="new-password"
|
||||||
size="lg"
|
|
||||||
class="w-full"
|
|
||||||
:ui="{ root: 'w-full' }"
|
|
||||||
/>
|
/>
|
||||||
<PasswordStrength :password="password" />
|
<PasswordStrength :password="password" />
|
||||||
</div>
|
</div>
|
||||||
@@ -149,15 +151,11 @@ async function submit() {
|
|||||||
>
|
>
|
||||||
{{ t('auth.confirmPassword') }}
|
{{ t('auth.confirmPassword') }}
|
||||||
</label>
|
</label>
|
||||||
<UInput
|
<PasswordInput
|
||||||
id="setup-confirm"
|
id="setup-confirm"
|
||||||
v-model="confirmPassword"
|
v-model="confirmPassword"
|
||||||
type="password"
|
|
||||||
:placeholder="t('setup.confirmPlaceholder')"
|
:placeholder="t('setup.confirmPlaceholder')"
|
||||||
autocomplete="new-password"
|
autocomplete="new-password"
|
||||||
size="lg"
|
|
||||||
class="w-full"
|
|
||||||
:ui="{ root: 'w-full' }"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,8 @@
|
|||||||
"setupFailed": "Setup failed. Check your input",
|
"setupFailed": "Setup failed. Check your input",
|
||||||
"migrateFailed": "Migration failed. Check your input",
|
"migrateFailed": "Migration failed. Check your input",
|
||||||
"passwordMismatch": "Passwords do not match",
|
"passwordMismatch": "Passwords do not match",
|
||||||
|
"showPassword": "Show password",
|
||||||
|
"hidePassword": "Hide password",
|
||||||
"registerSuccess": "Registered successfully",
|
"registerSuccess": "Registered successfully",
|
||||||
"errors": {
|
"errors": {
|
||||||
"invalidUsername": "Username must be 3–32 letters, numbers, or underscores",
|
"invalidUsername": "Username must be 3–32 letters, numbers, or underscores",
|
||||||
@@ -93,7 +95,6 @@
|
|||||||
"new": "New password",
|
"new": "New password",
|
||||||
"confirmNew": "Confirm new password",
|
"confirmNew": "Confirm new password",
|
||||||
"newPlaceholder": "Set new password",
|
"newPlaceholder": "Set new password",
|
||||||
"mismatch": "New passwords do not match",
|
|
||||||
"changed": "Password updated",
|
"changed": "Password updated",
|
||||||
"tooShort": "New password must be at least 8 characters",
|
"tooShort": "New password must be at least 8 characters",
|
||||||
"changeFailed": "Failed to change password",
|
"changeFailed": "Failed to change password",
|
||||||
|
|||||||
@@ -64,6 +64,8 @@
|
|||||||
"setupFailed": "初始化失败,请检查输入",
|
"setupFailed": "初始化失败,请检查输入",
|
||||||
"migrateFailed": "迁移失败,请检查输入",
|
"migrateFailed": "迁移失败,请检查输入",
|
||||||
"passwordMismatch": "两次输入的密码不一致",
|
"passwordMismatch": "两次输入的密码不一致",
|
||||||
|
"showPassword": "显示密码",
|
||||||
|
"hidePassword": "隐藏密码",
|
||||||
"registerSuccess": "注册成功",
|
"registerSuccess": "注册成功",
|
||||||
"errors": {
|
"errors": {
|
||||||
"invalidUsername": "用户名需为 3–32 位字母、数字或下划线",
|
"invalidUsername": "用户名需为 3–32 位字母、数字或下划线",
|
||||||
@@ -93,7 +95,6 @@
|
|||||||
"new": "新密码",
|
"new": "新密码",
|
||||||
"confirmNew": "确认新密码",
|
"confirmNew": "确认新密码",
|
||||||
"newPlaceholder": "设置新密码",
|
"newPlaceholder": "设置新密码",
|
||||||
"mismatch": "两次输入的新密码不一致",
|
|
||||||
"changed": "密码已修改",
|
"changed": "密码已修改",
|
||||||
"tooShort": "新密码至少 8 位",
|
"tooShort": "新密码至少 8 位",
|
||||||
"changeFailed": "修改密码失败",
|
"changeFailed": "修改密码失败",
|
||||||
|
|||||||
Generated
+2
-12
@@ -1,19 +1,18 @@
|
|||||||
{
|
{
|
||||||
"name": "pichost",
|
"name": "pichost",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "pichost",
|
"name": "pichost",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@iconify-json/lucide": "^1.2.114",
|
"@iconify-json/lucide": "^1.2.114",
|
||||||
"@nuxt/ui": "^4.9.0",
|
"@nuxt/ui": "^4.9.0",
|
||||||
"@nuxtjs/i18n": "^10.6.0",
|
"@nuxtjs/i18n": "^10.6.0",
|
||||||
"jose": "^6.0.11",
|
|
||||||
"nuxt": "^4.4.8",
|
"nuxt": "^4.4.8",
|
||||||
"sharp": "^0.35.3",
|
"sharp": "^0.35.3",
|
||||||
"tailwindcss": "^4.3.1"
|
"tailwindcss": "^4.3.1"
|
||||||
@@ -12242,15 +12241,6 @@
|
|||||||
"jiti": "lib/jiti-cli.mjs"
|
"jiti": "lib/jiti-cli.mjs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/jose": {
|
|
||||||
"version": "6.2.3",
|
|
||||||
"resolved": "https://registry.npmmirror.com/jose/-/jose-6.2.3.tgz",
|
|
||||||
"integrity": "sha512-YYVDInQKFJfR/xa3ojUTl8c2KoTwiL1R5Wg9YCydwH0x0B9grbzlg5HC7mMjCtUJjbQ/YnGEZIhI5tCgfTb4Hw==",
|
|
||||||
"license": "MIT",
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/panva"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/js-tokens": {
|
"node_modules/js-tokens": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz",
|
"resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz",
|
||||||
|
|||||||
+1
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pichost",
|
"name": "pichost",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"description": "Self-hosted image hosting for your NAS / home server — Nuxt admin UI, local disk storage, server-side WebP compression, referer protection, Twikoo/EasyImage compatible.",
|
"description": "Self-hosted image hosting for your NAS / home server — Nuxt admin UI, local disk storage, server-side WebP compression, referer protection, Twikoo/EasyImage compatible.",
|
||||||
"homepage": "https://github.com/O96u/PicHost#readme",
|
"homepage": "https://github.com/O96u/PicHost#readme",
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -39,7 +39,6 @@
|
|||||||
"@iconify-json/lucide": "^1.2.114",
|
"@iconify-json/lucide": "^1.2.114",
|
||||||
"@nuxt/ui": "^4.9.0",
|
"@nuxt/ui": "^4.9.0",
|
||||||
"@nuxtjs/i18n": "^10.6.0",
|
"@nuxtjs/i18n": "^10.6.0",
|
||||||
"jose": "^6.0.11",
|
|
||||||
"nuxt": "^4.4.8",
|
"nuxt": "^4.4.8",
|
||||||
"sharp": "^0.35.3",
|
"sharp": "^0.35.3",
|
||||||
"tailwindcss": "^4.3.1"
|
"tailwindcss": "^4.3.1"
|
||||||
|
|||||||
+1
-1
@@ -3,6 +3,6 @@ import { defineConfig } from 'vitest/config'
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
test: {
|
test: {
|
||||||
environment: 'node',
|
environment: 'node',
|
||||||
include: ['server/**/*.test.ts']
|
include: ['server/**/*.test.ts', 'scripts/**/*.test.ts']
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
Reference in new issue
Block a user