From 3985d5d0893c48f5f9395ecc321dc7cbba62ec58 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sat, 26 Apr 2025 13:22:32 +0800 Subject: [PATCH] fix: server and app build --- app/package.json | 4 ++-- packages/utils/tests/auth.test.ts | 2 +- packages/utils/tests/commands.test.ts | 2 +- packages/utils/tests/dag.test.ts | 2 +- server/src/cli/clean.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/package.json b/app/package.json index d0784f0..db74fed 100644 --- a/app/package.json +++ b/app/package.json @@ -5,8 +5,8 @@ "scripts": { "dev": "vite", "dev:docker": "API_TARGET=http://backend:3000 vite", - "build": "vue-tsc -b && vite build", - "type-check": "vue-tsc -b", + "build": "vue-tsc && vite build", + "type-check": "vue-tsc", "preview": "vite preview" }, "dependencies": { diff --git a/packages/utils/tests/auth.test.ts b/packages/utils/tests/auth.test.ts index 84eff27..22fea10 100644 --- a/packages/utils/tests/auth.test.ts +++ b/packages/utils/tests/auth.test.ts @@ -1,5 +1,5 @@ import { test, expect } from '@jest/globals' -import { isValidEmail, isValidUsername } from '../src/auth.js' +import { isValidEmail, isValidUsername } from '../auth' test('check valid username', () => { const valid = ['alex', 'alex123', 'john_doe', 'john-doe', 'rudeus'] diff --git a/packages/utils/tests/commands.test.ts b/packages/utils/tests/commands.test.ts index c926b98..3ee5b63 100644 --- a/packages/utils/tests/commands.test.ts +++ b/packages/utils/tests/commands.test.ts @@ -1,5 +1,5 @@ import { describe, it, expect } from '@jest/globals' -import { buildFileCheckCmd, File } from '../src/commands.js' +import { buildFileCheckCmd, File } from '../commands' describe('buildFileCheckCmd function', () => { it('builds the file check command correctly', () => { diff --git a/packages/utils/tests/dag.test.ts b/packages/utils/tests/dag.test.ts index 80b4f05..4f60a7e 100644 --- a/packages/utils/tests/dag.test.ts +++ b/packages/utils/tests/dag.test.ts @@ -1,5 +1,5 @@ import { describe, it, expect } from '@jest/globals' -import DAG from '../src/dag.js' +import DAG from '../dag' describe('dag layers', () => { it('two layer', () => { diff --git a/server/src/cli/clean.ts b/server/src/cli/clean.ts index 41e24cc..e8e166b 100644 --- a/server/src/cli/clean.ts +++ b/server/src/cli/clean.ts @@ -1,4 +1,4 @@ -import connectDB from '../../../packages/models' +import { connectDB } from '../../../packages/models' import { removeExpired } from '../containers/expiryChecker' import config from '../config' import logger from '../utils/logger'