mirror of
https://github.com/unraid/api.git
synced 2026-01-06 08:39:54 -06:00
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [vue-sonner](https://redirect.github.com/xiaoluoboding/vue-sonner) | [`1.3.2` -> `2.0.8`](https://renovatebot.com/diffs/npm/vue-sonner/1.3.2/2.0.8) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>xiaoluoboding/vue-sonner (vue-sonner)</summary> ### [`v2.0.8`](https://redirect.github.com/xiaoluoboding/vue-sonner/blob/HEAD/CHANGELOG.md#208-2025-08-18) [Compare Source](https://redirect.github.com/xiaoluoboding/vue-sonner/compare/v2.0.7...v2.0.8) ##### Bug Fixes - fixed the type for nuxt 4 ([e60b0bd](e60b0bd56f)) ### [`v2.0.7`](https://redirect.github.com/xiaoluoboding/vue-sonner/blob/HEAD/CHANGELOG.md#207-2025-08-17) [Compare Source](https://redirect.github.com/xiaoluoboding/vue-sonner/compare/v2.0.2...v2.0.7) ##### Bug Fixes - custom component not trigger on dismiss function ([d5a69c6](d5a69c6ae1)) - fixed the build error ([5ec4bca](5ec4bca24f)) - improve expanded state management in Toaster component ([5acca24](5acca24250)) - postcss-calc will change the style ([f0d6add](f0d6add116)) ##### Features - add a new example ([cb08aef](cb08aef616)) - add example for close all ([70ef6e2](70ef6e2b7f)) ### [`v2.0.2`](https://redirect.github.com/xiaoluoboding/vue-sonner/blob/HEAD/CHANGELOG.md#202-2025-07-17) [Compare Source](https://redirect.github.com/xiaoluoboding/vue-sonner/compare/v2.0.1...v2.0.2) ### [`v2.0.1`](https://redirect.github.com/xiaoluoboding/vue-sonner/blob/HEAD/CHANGELOG.md#201-2025-06-23) [Compare Source](https://redirect.github.com/xiaoluoboding/vue-sonner/compare/v2.0.0...v2.0.1) ##### Bug Fixes - fixed multiple position bug ([9b07801](9b07801f5f)) - **theme:** make theme='system' reactive with watchEffect ([3b57e90](3b57e90498)) - **tsconfig:** add tsconfig.includes files ([e0d469b](e0d469b84e)) ##### Features - add do not generate css logic ([61458fb](61458fb7aa)) ### [`v2.0.0`](https://redirect.github.com/xiaoluoboding/vue-sonner/blob/HEAD/CHANGELOG.md#200-2025-05-21) [Compare Source](https://redirect.github.com/xiaoluoboding/vue-sonner/compare/v1.3.2...v2.0.0) ##### Bug Fixes - add packages path ([35490b3](35490b3fb5)) - add packages path ([c7424e9](c7424e9070)) - fixed for nuxt module ([261eaf0](261eaf0be2)) - fixed for nuxt module ([29751cf](29751cfd5b)) - format ([9033f2b](9033f2b935)) #### [1.3.2](https://redirect.github.com/xiaoluoboding/vue-sonner/compare/v1.3.0...v1.3.2) (2025-04-12) ##### Bug Fixes - improve CSS insertion logic to handle document loading state ([6b22d24](6b22d2458b)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/unraid/api). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNy4yIiwidXBkYXRlZEluVmVyIjoiNDEuNzEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Eli Bosley <ekbosley@gmail.com>
86 lines
2.4 KiB
TypeScript
86 lines
2.4 KiB
TypeScript
/// <reference types="vitest" />
|
|
import { resolve } from 'path';
|
|
import { fileURLToPath } from 'url';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import vue from '@vitejs/plugin-vue';
|
|
import { defineConfig } from 'vite';
|
|
import dts from 'vite-plugin-dts';
|
|
|
|
const __dirname = fileURLToPath(new URL('.', import.meta.url));
|
|
|
|
export default function createConfig() {
|
|
return defineConfig({
|
|
plugins: [
|
|
tailwindcss(),
|
|
vue(),
|
|
...(process.env.npm_lifecycle_script?.includes('storybook')
|
|
? []
|
|
: [
|
|
dts({
|
|
insertTypesEntry: true,
|
|
include: ['src/**/*.ts', 'src/**/*.vue'],
|
|
outDir: 'dist',
|
|
rollupTypes: true,
|
|
copyDtsFiles: true,
|
|
}),
|
|
]),
|
|
],
|
|
build: {
|
|
cssCodeSplit: false,
|
|
rollupOptions: {
|
|
external: [
|
|
'vue',
|
|
'tailwindcss',
|
|
'ajv',
|
|
'ajv-errors',
|
|
...(process.env.npm_lifecycle_script?.includes('storybook') ? [/^storybook\//] : []),
|
|
],
|
|
input: {
|
|
index: resolve(__dirname, 'src/index.ts'),
|
|
},
|
|
preserveEntrySignatures: 'allow-extension',
|
|
output: {
|
|
exports: 'named',
|
|
globals: {
|
|
vue: 'Vue',
|
|
tailwindcss: 'tailwindcss',
|
|
},
|
|
format: 'es',
|
|
preserveModules: true,
|
|
assetFileNames: (assetInfo) => {
|
|
if (assetInfo.name === 'style.css') {
|
|
return 'style.css';
|
|
}
|
|
return '[name][extname]';
|
|
},
|
|
entryFileNames: (chunkInfo) => {
|
|
if (chunkInfo.name === 'tailwind') {
|
|
return '[name].config.js';
|
|
} else {
|
|
return '[name].js';
|
|
}
|
|
},
|
|
},
|
|
},
|
|
target: 'esnext',
|
|
sourcemap: true,
|
|
minify: false,
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, './src'),
|
|
'@/components': resolve(__dirname, './src/components'),
|
|
'@/composables': resolve(__dirname, './src/composables'),
|
|
'@/lib': resolve(__dirname, './src/lib'),
|
|
'@/styles': resolve(__dirname, './src/styles'),
|
|
'@/types': resolve(__dirname, './src/types'),
|
|
'@/theme': resolve(__dirname, './src/theme'),
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'happy-dom',
|
|
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
},
|
|
});
|
|
}
|