Skip to content

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

add exports fields to published packages

Carl-Gerhard Lindesvärdb81d6823dda8
diff --git a/tooling/publish/publish.ts b/tooling/publish/publish.ts
index e47f01535..058353f57 100644
--- a/tooling/publish/publish.ts
+++ b/tooling/publish/publish.ts
@@ -43,6 +43,10 @@ function main() {
module: './dist/index.mjs',
types: './dist/index.d.ts',
files: ['dist'],
+ exports: {
+ import: './dist/index.js',
+ require: './dist/index.cjs',
+ },
};
try {