Merge pull request #1190 from SaeedZhiany/ReducePackageSize

separate npmignore entries into their related folders
This commit is contained in:
Mikael Sand
2019-12-09 21:17:57 +02:00
committed by GitHub
4 changed files with 25 additions and 50 deletions

View File

@@ -1,52 +1,2 @@
node_modules/
.idea/
Example/
experimental/
android/build/
screenshots/ screenshots/
idl/ idl/
flow-typed/
# OSX
#
.DS_Store
# Xcode
#
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
gradle
project.xcworkspace
# Android/IJ
#
.idea
.gradle
local.properties
build
# node.js
#
node_modules
npm-debug.log
# webstorm
#
*.iml
# unfinished documents
#
cn-doc.md

10
android/.npmignore Normal file
View File

@@ -0,0 +1,10 @@
*.iml
.DS_Store
.gradle/
.idea/
.npmignore
build/
gradle/
gradlew
gradlew.bat
local.properties

6
ios/.npmignore Normal file
View File

@@ -0,0 +1,6 @@
*/project.xcworkspace/
*/xcuserdata/
.DS_Store
.npmignore
Pods/
build/

View File

@@ -12,6 +12,15 @@
"module": "lib/module/index.js", "module": "lib/module/index.js",
"react-native": "src/index.ts", "react-native": "src/index.ts",
"types": "src/index.d.ts", "types": "src/index.d.ts",
"files": [
"__tests__",
"android",
"elements",
"ios",
"lib",
"src",
"RNSVG.podspec"
],
"@react-native-community/bob": { "@react-native-community/bob": {
"source": "src", "source": "src",
"output": "lib", "output": "lib",