diff --git a/packages/react-native-sdk/app.plugin.js b/packages/react-native-sdk/app.plugin.js index 17d2b447ec..1c32705e2d 100644 --- a/packages/react-native-sdk/app.plugin.js +++ b/packages/react-native-sdk/app.plugin.js @@ -1 +1 @@ -module.exports = require('./expo-config-plugin/build'); +module.exports = require('./expo-config-plugin/dist'); diff --git a/packages/react-native-sdk/expo-config-plugin/tsconfig.json b/packages/react-native-sdk/expo-config-plugin/tsconfig.json index 82f427f6c1..8eab0b5262 100644 --- a/packages/react-native-sdk/expo-config-plugin/tsconfig.json +++ b/packages/react-native-sdk/expo-config-plugin/tsconfig.json @@ -1,10 +1,9 @@ { - "extends": "../tsconfig.json", - "compilerOptions": { - "module":"CommonJS", - "outDir": "build", - "rootDir": "src", - "declaration": true - }, - "include": ["./src"] - } \ No newline at end of file + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "dist", + "rootDir": "src" + }, + "include": ["./src"], + "exclude": ["**/__mocks__/*", "**/__tests__/*"] +} diff --git a/packages/react-native-sdk/package.json b/packages/react-native-sdk/package.json index 2cfc632d16..c65cc34777 100644 --- a/packages/react-native-sdk/package.json +++ b/packages/react-native-sdk/package.json @@ -10,9 +10,9 @@ "license": "See license in LICENSE", "scripts": { "postinstall": "yarn copy-version", - "clean": "rimraf dist", + "clean": "rimraf dist && rimraf expo-config-plugin/dist", "start": "yarn copy-version && tsc --project tsconfig.json --watch", - "build:expo-plugin": "rimraf plugin/build && tsc --build expo-config-plugin", + "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", "test:expo-plugin": "jest expo-config-plugin --coverage", "test": "jest --coverage && yarn test:expo-plugin", @@ -27,9 +27,11 @@ "index.ts", "stream-video-react-native.podspec", "package.json", - "README.md", - "LICENSE", - "CHANGELOG.md", + "app.plugin.js", + "expo-config-plugin/README.md", + "expo-config-plugin/dist/*", + "!expo-config-plugin/src/*", + "!expo-config-plugin/fixtures/*", "!ios/build", "!android/build", "!android/gradle",