diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..d9e3bd6 --- /dev/null +++ b/.npmignore @@ -0,0 +1,10 @@ +* + +# Included to the final package +!ios/**/* +ios/RadioPlayer.xcodeproj +!android/**/* +!react-native-radio-player.podspec +!src/index.tsx +!LICENSE +!README \ No newline at end of file diff --git a/package.json b/package.json index f9f7691..876838c 100644 --- a/package.json +++ b/package.json @@ -7,18 +7,6 @@ "types": "lib/typescript/src/index.d.ts", "react-native": "src/index", "source": "src/index", - "files": [ - "src", - "lib", - "android", - "ios", - "cpp", - "react-native-radio-player.podspec", - "!lib/typescript/example", - "!**/__tests__", - "!**/__fixtures__", - "!**/__mocks__" - ], "scripts": { "test": "jest", "typescript": "tsc --noEmit", @@ -125,7 +113,10 @@ ] } }, - "eslintIgnore": ["node_modules/", "lib/"], + "eslintIgnore": [ + "node_modules/", + "lib/" + ], "prettier": { "quoteProps": "consistent", "singleQuote": true, @@ -136,6 +127,10 @@ "@react-native-community/bob": { "source": "src", "output": "lib", - "targets": ["commonjs", "module", "typescript"] + "targets": [ + "commonjs", + "module", + "typescript" + ] } }