diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e4fbdd..c903799 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.1.1](https://github.com/americanexpress/create-shared-react-context/compare/v1.1.0...v1.1.1) (2025-01-15) + + +### Bug Fixes + +* **interop:** fix export and use commonJS ([#53](https://github.com/americanexpress/create-shared-react-context/issues/53)) ([1777b68](https://github.com/americanexpress/create-shared-react-context/commit/1777b685a0774a73af883e48e9b0609db2168d92)) + # [1.1.0](https://github.com/americanexpress/create-shared-react-context/compare/v1.0.5...v1.1.0) (2025-01-13) diff --git a/src/index.ts b/src/index.ts index 38ca599..bb561b4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -34,4 +34,4 @@ function createSharedReactContext( return context; } -export default createSharedReactContext; +export = createSharedReactContext; diff --git a/tsconfig.json b/tsconfig.json index 8a17baf..74f7634 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,10 +2,12 @@ "compilerOptions": { "jsx": "react", "allowSyntheticDefaultImports": true, + "esModuleInterop": true, "types": ["node"], "outDir": "./dist", "allowJs": true, "target": "es6", + "module": "commonjs", "moduleResolution": "node", "strict": true },