Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
build(sdk-embed): add tsup build config and dist exports
Richie McIlroyc6760a27b104
diff --git a/packages/sdk-embed/package.json b/packages/sdk-embed/package.jsonindex 01ac8ffbb..221cb7cec 100644--- a/packages/sdk-embed/package.json+++ b/packages/sdk-embed/package.json@@ -3,14 +3,25 @@"version": "0.1.0","description": "Cap Embedding 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",- "./vanilla": "./src/vanilla/cap-embed-loader.ts"+ ".": {+ "types": "./dist/index.d.ts",+ "import": "./dist/index.js"+ },+ "./react": {+ "types": "./dist/react/index.d.ts",+ "import": "./dist/react/index.js"+ },+ "./vanilla": {+ "types": "./dist/vanilla/cap-embed-loader.d.ts",+ "import": "./dist/vanilla/cap-embed-loader.js"+ }},+ "files": ["dist"],"scripts": {+ "build": "tsup","typecheck": "tsc --noEmit"},"dependencies": {},@@ -25,6 +36,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-embed/tsup.config.ts b/packages/sdk-embed/tsup.config.tsnew file mode 100644index 000000000..e38c18e0a--- /dev/null+++ b/packages/sdk-embed/tsup.config.ts@@ -0,0 +1,14 @@+import { defineConfig } from "tsup";++export default defineConfig({+ entry: [+ "src/index.ts",+ "src/react/index.ts",+ "src/vanilla/cap-embed-loader.ts",+ ],+ format: ["esm"],+ dts: true,+ splitting: true,+ clean: true,+ external: ["react"],+});