Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

fix(api+worker): added external deps to tsup

Carl-Gerhard Lindesvärd3e974cd3c41a
diff --git a/apps/api/tsup.config.ts b/apps/api/tsup.config.ts
index 12e0eb1bd..dd028707c 100644
--- a/apps/api/tsup.config.ts
+++ b/apps/api/tsup.config.ts
@@ -5,6 +5,7 @@ const options: Options = {
clean: true,
entry: ['src/index.ts'],
noExternal: [/^@openpanel\/.*$/u, /^@\/.*$/u],
+ external: ['@hyperdx/node-opentelemetry', 'winston'],
sourcemap: true,
splitting: false,
};
diff --git a/apps/worker/tsup.config.ts b/apps/worker/tsup.config.ts
index 995a74bd7..34f141804 100644
--- a/apps/worker/tsup.config.ts
+++ b/apps/worker/tsup.config.ts
@@ -5,6 +5,7 @@ const options: Options = {
clean: true,
entry: ['src/index.ts'],
noExternal: [/^@openpanel\/.*$/u, /^@\/.*$/u],
+ external: ['@hyperdx/node-opentelemetry', 'winston'],
sourcemap: true,
splitting: false,
};