|
| 1 | +import { defineConfig } from 'vite'; |
| 2 | +import { rmSync } from 'fs'; |
| 3 | +import { getDefaultConfig } from '../../vite-config-base'; |
| 4 | + |
| 5 | +const dist = '../../../dist-cms/packages/core'; |
| 6 | + |
| 7 | +// delete the unbundled dist folder |
| 8 | +rmSync(dist, { recursive: true, force: true }); |
| 9 | + |
| 10 | +export default defineConfig({ |
| 11 | + ...getDefaultConfig({ |
| 12 | + dist, |
| 13 | + entry: { |
| 14 | + 'action/index': './action/index.ts', |
| 15 | + 'audit-log/index': './audit-log/index.ts', |
| 16 | + 'auth/index': './auth/index.ts', |
| 17 | + 'collection/index': './collection/index.ts', |
| 18 | + 'components/index': './components/index.ts', |
| 19 | + 'content-type/index': './content-type/index.ts', |
| 20 | + 'content/index': './content/index.ts', |
| 21 | + 'culture/index': './culture/index.ts', |
| 22 | + 'debug/index': './debug/index.ts', |
| 23 | + 'entity-action/index': './entity-action/index.ts', |
| 24 | + 'entity-bulk-action/index': './entity-bulk-action/index.ts', |
| 25 | + 'entity/index': './entity/index.ts', |
| 26 | + 'entry-point': 'entry-point.ts', |
| 27 | + 'event/index': './event/index.ts', |
| 28 | + 'extension-registry/index': './extension-registry/index.ts', |
| 29 | + 'icon-registry/index': './icon-registry/index.ts', |
| 30 | + 'id/index': './id/index.ts', |
| 31 | + 'lit-element/index': './lit-element/index.ts', |
| 32 | + 'localization/index': './localization/index.ts', |
| 33 | + 'menu/index': './menu/index.ts', |
| 34 | + 'modal/index': './modal/index.ts', |
| 35 | + 'models/index': './models/index.ts', |
| 36 | + 'notification/index': './notification/index.ts', |
| 37 | + 'picker-input/index': './picker-input/index.ts', |
| 38 | + 'property-action/index': './property-action/index.ts', |
| 39 | + 'property-editor/index': './property-editor/index.ts', |
| 40 | + 'property/index': './property/index.ts', |
| 41 | + 'recycle-bin/index': './recycle-bin/index.ts', |
| 42 | + 'repository/index': './repository/index.ts', |
| 43 | + 'resources/index': './resources/index.ts', |
| 44 | + 'router/index': './router/index.ts', |
| 45 | + 'section/index': './section/index.ts', |
| 46 | + 'server-file-system/index': './server-file-system/index.ts', |
| 47 | + 'sorter/index': './sorter/index.ts', |
| 48 | + 'store/index': './store/index.ts', |
| 49 | + 'style/index': './style/index.ts', |
| 50 | + 'temporary-file/index': './temporary-file/index.ts', |
| 51 | + 'themes/index': './themes/index.ts', |
| 52 | + 'tree/index': './tree/index.ts', |
| 53 | + 'utils/index': './utils/index.ts', |
| 54 | + 'validation/index': './validation/index.ts', |
| 55 | + 'variant/index': './variant/index.ts', |
| 56 | + 'workspace/index': './workspace/index.ts', |
| 57 | + //'settings/index': './settings/index.ts', // currently no index file so it is left out |
| 58 | + manifests: 'manifests.ts', |
| 59 | + }, |
| 60 | + }), |
| 61 | +}); |
0 commit comments