import { defineConfig } from 'vite';
import { rmSync } from 'fs';
import { getDefaultConfig } from '../../vite-config-base.js';
const dist = '../../../dist-cms/packages/user';
// delete the unbundled dist folder
rmSync(dist, { recursive: true, force: true });
export default defineConfig({
    ...getDefaultConfig({
        dist,
        entry: {
            'current-user/index': 'current-user/index.ts',
            'umbraco-package': 'umbraco-package.ts',
            'change-password/index': 'change-password/index.ts',
            'user-group/index': 'user-group/index.ts',
            'user-permission/index': 'user-permission/index.ts',
            'user/index': 'user/index.ts',
            manifests: 'manifests.ts',
        },
    }),
});
