admin fix 3

This commit is contained in:
Dmitry 2026-01-06 23:59:30 +03:00
parent 469b04492c
commit 96f017fe03
5 changed files with 4 additions and 33 deletions

View file

@ -5,7 +5,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite --port 5174", "dev": "vite --port 5174",
"build": "vite build", "build": "tsc -b && vite build",
"lint": "eslint .", "lint": "eslint .",
"preview": "vite preview --port 5174", "preview": "vite preview --port 5174",
"test": "vitest" "test": "vitest"

View file

@ -28,8 +28,7 @@
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": ["./src/*"]
}, }
"resolveJsonModule": true
}, },
"include": ["src"] "include": ["src"]
} }

View file

@ -1,13 +0,0 @@
{
"extends": "./tsconfig.app.json",
"compilerOptions": {
"moduleResolution": "node",
"allowImportingTsExtensions": false,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["src"]
}

View file

@ -3,11 +3,5 @@
"references": [ "references": [
{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" } { "path": "./tsconfig.node.json" }
], ]
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
} }

View file

@ -1,20 +1,11 @@
/// <reference types="vitest" /> /// <reference types="vitest" />
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react' import react from '@vitejs/plugin-react'
import checker from 'vite-plugin-checker'
import path from 'path' import path from 'path'
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [react()],
react(),
checker({
typescript: {
tsconfigPath: './tsconfig.app.json',
buildMode: true,
},
}),
],
server: { server: {
port: 5174, port: 5174,
}, },