Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
build(sdk-recorder): add tsup build config and dist exports
Richie McIlroy894010820467
diff --git a/packages/sdk-recorder/package.json b/packages/sdk-recorder/package.jsonindex 5fb71d773..3be3e33c3 100644--- a/packages/sdk-recorder/package.json+++ b/packages/sdk-recorder/package.json@@ -3,13 +3,21 @@"version": "0.1.0","description": "Cap Recording SDK for third-party integrations","type": "module",- "main": "./src/index.ts",- "types": "./src/index.ts",+ "main": "./dist/index.js",+ "types": "./dist/index.d.ts","exports": {- ".": "./src/index.ts",- "./react": "./src/react/index.ts"+ ".": {+ "types": "./dist/index.d.ts",+ "import": "./dist/index.js"+ },+ "./react": {+ "types": "./dist/react/index.d.ts",+ "import": "./dist/react/index.js"+ }},+ "files": ["dist"],"scripts": {+ "build": "tsup","typecheck": "tsc --noEmit"},"dependencies": {},@@ -24,6 +32,7 @@"devDependencies": {"@types/react": "^19.0.0","@types/react-dom": "^19.0.0",+ "tsup": "^8.0.0","typescript": "^5.7.3"}}diff --git a/packages/sdk-recorder/tsup.config.ts b/packages/sdk-recorder/tsup.config.tsnew file mode 100644index 000000000..998171328--- /dev/null+++ b/packages/sdk-recorder/tsup.config.ts@@ -0,0 +1,10 @@+import { defineConfig } from "tsup";++export default defineConfig({+ entry: ["src/index.ts", "src/react/index.ts"],+ format: ["esm"],+ dts: true,+ splitting: true,+ clean: true,+ external: ["react"],+});