* feature(auth): replace clerk.com with custom auth * minor fixes * remove notification preferences * decrease live events interval fix(api): cookies.. # Conflicts: # .gitignore # apps/api/src/index.ts # apps/dashboard/src/app/providers.tsx # packages/trpc/src/trpc.ts
27 lines
586 B
TypeScript
27 lines
586 B
TypeScript
import { defineConfig } from 'tsup';
|
|
import type { Options } from 'tsup';
|
|
|
|
const options: Options = {
|
|
clean: true,
|
|
entry: ['src/index.ts'],
|
|
noExternal: [/^@openpanel\/.*$/u, /^@\/.*$/u],
|
|
external: [
|
|
'@hyperdx/node-opentelemetry',
|
|
'winston',
|
|
'@node-rs/argon2',
|
|
'bcrypt',
|
|
],
|
|
ignoreWatch: ['../../**/{.git,node_modules}/**'],
|
|
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);
|