mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00

- Updated server `Bun.build` configuration: adjusted `outdir`, added `format` as `esm`, and set `@open-gsio/client` to external. - Expanded README with Docker instructions. - Added new package `@open-gsio/analytics-worker`. - Upgraded dependencies (`vite`, `typescript`, `bun`) and locked `pnpm` version in `package.json`.
27 lines
920 B
TypeScript
27 lines
920 B
TypeScript
import { defineConfig } from 'vite';
|
|
// eslint-disable-next-line import/no-unresolved
|
|
import { configDefaults } from 'vitest/config';
|
|
|
|
export default defineConfig(({ command }) => {
|
|
return {
|
|
build: {
|
|
cssMinify: 'esbuild',
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
registerNodeLoader: false,
|
|
// setupFiles: ['./src/test/setup.ts'],
|
|
exclude: [...configDefaults.exclude, 'dist/**', '.open-gsio/**'],
|
|
reporters: process.env.GITHUB_ACTIONS ? ['dot', 'github-actions', 'html'] : ['dot', 'html'],
|
|
coverage: {
|
|
// you can include other reporters, but 'json-summary' is required, json is recommended
|
|
reporter: ['json-summary', 'json', 'html'],
|
|
reportsDirectory: 'coverage',
|
|
// If you want a coverage reports even if your tests are failing, include the reportOnFailure option
|
|
reportOnFailure: true,
|
|
},
|
|
},
|
|
};
|
|
});
|