Skip to content

Commit d851476

Browse files
authored
fix: Generates isomorphic types (#291)
1 parent de86458 commit d851476

File tree

6 files changed

+12
-41
lines changed

6 files changed

+12
-41
lines changed

index-es.ts

-17
This file was deleted.

isomorphic-es.ts

-21
This file was deleted.

lib/flagsmith/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flagsmith",
3-
"version": "9.0.3",
3+
"version": "9.0.4",
44
"description": "Feature flagging to support continuous development",
55
"main": "./index.js",
66
"module": "./index.mjs",

lib/react-native-flagsmith/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-flagsmith",
3-
"version": "9.0.3",
3+
"version": "9.0.4",
44
"description": "Feature flagging to support continuous development",
55
"main": "./index.js",
66
"repository": {

test/isomorphic.test.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import flagsmithIsomorphic from '../lib/flagsmith/isomorphic';
2+
import { getFlagsmith } from './test-constants';
3+
4+
describe('Flagsmith Isomorphic Import', () => {
5+
test('flagsmith is imported correctly', () => {
6+
const { initConfig } = getFlagsmith({});
7+
flagsmithIsomorphic.init(initConfig)
8+
})
9+
})

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"skipLibCheck": true,
66
"jsx": "react",
77
"module": "ESNext",
8-
"declaration": false,
8+
"declaration": true,
99
"strict": true,
1010
"noEmit": true,
1111
"sourceMap": true,

0 commit comments

Comments
 (0)