Files
stats/apps/api/tsup.config.ts
Carl-Gerhard Lindesvärd e6c0bc2ec8 rename mixan to OPENPANEL!
2024-03-11 13:40:46 +01:00

19 lines
427 B
TypeScript

import { defineConfig } from 'tsup';
import type { Options } from 'tsup';
const options: Options = {
clean: true,
entry: ['src/index.ts'],
noExternal: [/^@openpanel\/.*$/u, /^@\/.*$/u],
sourcemap: true,
splitting: false,
};
if (process.env.WATCH) {
options.watch = ['src/**/*', '../../packages/**/*'];
options.onSuccess = 'node dist/index.js';
options.minify = false;
}
export default defineConfig(options);