Skip to content

Commit

Permalink
Merge pull request #18 from SchematicHQ/ben/sch-679-react
Browse files Browse the repository at this point in the history
Fix double-react
  • Loading branch information
bpapillon authored Jan 25, 2024
2 parents a514126 + c306577 commit 59d4f96
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
6 changes: 3 additions & 3 deletions react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
14 changes: 14 additions & 0 deletions react/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,17 @@ export {
useSchematicEvents,
useSchematicFlag,
};

export type {
Event,
EventBody,
EventBodyCompany,
EventBodyIdentify,
EventBodyTrack,
EventType,
FlagCheckResponseBody,
FlagCheckWithKeyResponseBody,
Keys,
SchematicContext,
Traits,
} from "@schematichq/schematic-js";

0 comments on commit 59d4f96

Please sign in to comment.