Skip to content

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

fix publish and build sdk

Carl-Gerhard Lindesvärdf7ccafbda090
diff --git a/bun.lockb b/bun.lockb
index 268e24584..fc6fa0777 100755
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/packages/sdk/package.json b/packages/sdk/package.json
index 9797592a5..baa0df1ef 100644
--- a/packages/sdk/package.json
+++ b/packages/sdk/package.json
@@ -10,6 +10,7 @@
"devDependencies": {
"@types/uuid": "^9.0.5",
"bun-types": "latest",
+ "tsup": "^7.2.0",
"typescript": "^5.0.0"
}
}
\ No newline at end of file
diff --git a/packages/types/package.json b/packages/types/package.json
index 42e9542ae..60f713d5e 100644
--- a/packages/types/package.json
+++ b/packages/types/package.json
@@ -5,6 +5,7 @@
"module": "index.ts",
"devDependencies": {
"bun-types": "latest",
+ "tsup": "^7.2.0",
"typescript": "^5.0.0"
}
}
\ No newline at end of file
diff --git a/publish.ts b/publish.ts
index f9ab76b46..9c08c5020 100644
--- a/publish.ts
+++ b/publish.ts
@@ -47,10 +47,10 @@ function main() {
})
try {
- execSync('npx tsup', {
+ execSync('bunx tsup', {
cwd: './packages/sdk',
})
- execSync('npx tsup', {
+ execSync('bunx tsup', {
cwd: './packages/types',
})
} catch(error) {