-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(react-native): add missing commonjs support (#1075)
- Loading branch information
1 parent
35ebe22
commit c9e4e7d
Showing
18 changed files
with
1,070 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,5 +63,3 @@ buck-out/ | |
# Ruby / CocoaPods | ||
/ios/Pods/ | ||
/vendor/bundle/ | ||
|
||
version.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,10 @@ | |
"name": "@stream-io/video-react-native-sdk", | ||
"version": "0.0.10", | ||
"packageManager": "[email protected]", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"main": "dist/commonjs/index.js", | ||
"module": "dist/module/index.js", | ||
"react-native": "src/index.ts", | ||
"types": "dist/typescript/index.d.ts", | ||
"description": "Stream Video SDK for React Native", | ||
"author": "https://getstream.io", | ||
"homepage": "https://github.com/GetStream/stream-video-js/tree/main/packages/react-native-sdk#readme", | ||
|
@@ -13,18 +15,17 @@ | |
"clean": "rimraf dist && rimraf expo-config-plugin/dist", | ||
"start": "yarn copy-version && tsc --project tsconfig.json --watch", | ||
"build:expo-plugin": "rimraf plugin/dist && tsc --project expo-config-plugin/tsconfig.json", | ||
"build": "yarn clean && yarn copy-version && tsc --project tsconfig.json && yarn build:expo-plugin", | ||
"build": "yarn clean && yarn copy-version && bob build && yarn build:expo-plugin", | ||
"test:expo-plugin": "jest expo-config-plugin --coverage", | ||
"test": "jest --coverage && yarn test:expo-plugin", | ||
"copy-version": "echo \"export const version = '$npm_package_version';\" > ./version.ts" | ||
"copy-version": "echo \"export const version = '$npm_package_version';\" > ./src/version.ts" | ||
}, | ||
"files": [ | ||
"dist", | ||
"src", | ||
"android", | ||
"ios", | ||
"cpp", | ||
"index.ts", | ||
"stream-video-react-native.podspec", | ||
"package.json", | ||
"app.plugin.js", | ||
|
@@ -98,6 +99,7 @@ | |
"@stream-io/react-native-webrtc": "104.0.1", | ||
"@testing-library/jest-native": "^5.4.2", | ||
"@testing-library/react-native": "^12.1.2", | ||
"@tsconfig/node14": "14.1.0", | ||
"@types/jest": "^29.5.1", | ||
"@types/lodash.merge": "^4", | ||
"@types/react": "18.0.26", | ||
|
@@ -107,6 +109,7 @@ | |
"@types/rimraf": "^3.0.2", | ||
"jest": "^29.5.0", | ||
"react-native": "0.71.8", | ||
"react-native-builder-bob": "^0.21.3", | ||
"react-native-callkeep": "4.3.11", | ||
"react-native-gesture-handler": "2.8.0", | ||
"react-native-incall-manager": "^4.0.0", | ||
|
@@ -118,5 +121,14 @@ | |
"ts-jest": "^29.1.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.9.5" | ||
}, | ||
"react-native-builder-bob": { | ||
"source": "src", | ||
"output": "dist", | ||
"targets": [ | ||
"commonjs", | ||
"module", | ||
"typescript" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,18 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "./dist", | ||
"target": "esnext", | ||
"types": ["react-native", "jest"], | ||
"target": "ES6", | ||
"declaration": true, | ||
"lib": ["esnext"], | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"lib": ["es6", "dom"], | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"strictNullChecks": true, | ||
"sourceMap": true, | ||
"jsx": "react" | ||
}, | ||
"include": [ | ||
"./src", | ||
"index.ts", | ||
"__tests__", | ||
"./jest-setup.ts", | ||
"version.ts" | ||
], | ||
"exclude": ["./dist", "node_modules"] | ||
"include": ["src"] | ||
} |
Oops, something went wrong.