diff --git a/react/package.json b/react/package.json index 9aff4a5e..a5d0e28b 100644 --- a/react/package.json +++ b/react/package.json @@ -34,8 +34,8 @@ }, "scripts": { "build": "npx tsc && yarn clean && yarn build:cjs && yarn build:esm && yarn build:types", - "build:cjs": "npx esbuild src/index.tsx --bundle --format=cjs --outfile=dist/schematic-react.cjs.js", - "build:esm": "npx esbuild src/index.tsx --bundle --format=esm --outfile=dist/schematic-react.esm.js", + "build:cjs": "npx esbuild src/index.tsx --bundle --external:react --format=cjs --outfile=dist/schematic-react.cjs.js", + "build:esm": "npx esbuild src/index.tsx --bundle --external:react --format=esm --outfile=dist/schematic-react.esm.js", "build:types": "npx tsc && npx api-extractor run", "clean": "rm -rf dist", "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --fix", @@ -44,7 +44,7 @@ "types": "dist/schematic-react.d.ts", "version": "0.1.2", "dependencies": { - "@schematichq/schematic-js": "^0.1.2" + "@schematichq/schematic-js": "^0.1.3" }, "peerDependencies": { "react": ">=18" diff --git a/react/src/index.tsx b/react/src/index.tsx index 11581308..cc6d8078 100644 --- a/react/src/index.tsx +++ b/react/src/index.tsx @@ -94,3 +94,17 @@ export { useSchematicEvents, useSchematicFlag, }; + +export type { + Event, + EventBody, + EventBodyCompany, + EventBodyIdentify, + EventBodyTrack, + EventType, + FlagCheckResponseBody, + FlagCheckWithKeyResponseBody, + Keys, + SchematicContext, + Traits, +} from "@schematichq/schematic-js";