mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
Address additional review feedback for pnpm migration
• Fix node-version-file paths in GitHub workflow configurations • Refactor .pnpmfile.cjs to use switch statement for better code organization • Correct cache type typo in fix-format workflow • Simplify Vite configuration by merging configs inline • Update package description for consistency
This commit is contained in:
parent
0bfc8beec1
commit
23cce1ea91
8 changed files with 47 additions and 49 deletions
|
|
@ -4,9 +4,7 @@ import tailwindcss from '@tailwindcss/vite';
|
|||
import { svelteTesting } from '@testing-library/svelte/vite';
|
||||
import path from 'node:path';
|
||||
import { visualizer } from 'rollup-plugin-visualizer';
|
||||
|
||||
import { defineConfig as defineViteConfig, mergeConfig } from 'vite';
|
||||
import { defineConfig as defineVitestConfig } from 'vitest/config';
|
||||
import { defineConfig, type UserConfig } from 'vite';
|
||||
|
||||
const upstream = {
|
||||
target: process.env.IMMICH_SERVER_URL || 'http://immich-server:2283/',
|
||||
|
|
@ -16,7 +14,7 @@ const upstream = {
|
|||
ws: true,
|
||||
};
|
||||
|
||||
const viteConfig = defineViteConfig({
|
||||
export default defineConfig({
|
||||
build: {
|
||||
target: 'es2022',
|
||||
},
|
||||
|
|
@ -52,9 +50,6 @@ const viteConfig = defineViteConfig({
|
|||
optimizeDeps: {
|
||||
entries: ['src/**/*.{svelte,ts,html}'],
|
||||
},
|
||||
});
|
||||
|
||||
const vitestConfig = defineVitestConfig({
|
||||
test: {
|
||||
include: ['src/**/*.{test,spec}.{js,ts}'],
|
||||
globals: true,
|
||||
|
|
@ -64,6 +59,4 @@ const vitestConfig = defineVitestConfig({
|
|||
hooks: 'list',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export default mergeConfig(viteConfig, vitestConfig);
|
||||
} as UserConfig);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue