⚙️ chore: Update Build Config due to Windows Tests (#9511)

* chore: remove `rollup-plugin-generate-package-json`

* chore: increase maximum file size to cache in Vite configuration for windows builds
This commit is contained in:
Danny Avila 2025-09-08 14:16:49 -04:00 committed by GitHub
parent 035f85c3ba
commit 7de6f6e44c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 2 additions and 249 deletions

View file

@ -5,7 +5,6 @@ import peerDepsExternal from 'rollup-plugin-peer-deps-external';
import commonjs from '@rollup/plugin-commonjs';
import replace from '@rollup/plugin-replace';
import terser from '@rollup/plugin-terser';
import generatePackageJson from 'rollup-plugin-generate-package-json';
const plugins = [
peerDepsExternal(),
@ -21,19 +20,6 @@ const plugins = [
terser(),
];
const subfolderPlugins = (folderName) => [
...plugins,
generatePackageJson({
baseContents: {
name: `${pkg.name}/${folderName}`,
private: true,
main: '../index.js',
module: './index.es.js', // Adjust to match the output file
types: `../types/${folderName}/index.d.ts`, // Point to correct types file
},
}),
];
export default [
{
input: 'src/index.ts',
@ -83,6 +69,6 @@ export default [
// 'librechat-data-provider', // Marking main part as external
],
preserveSymlinks: true,
plugins: subfolderPlugins('react-query'),
plugins,
},
];