Skip to content

Commit b4fd1d8

Browse files
authored
Move from npmignore to files in order to fix the native components packaging (#3319)
1 parent 9fd7d87 commit b4fd1d8

File tree

2 files changed

+22
-257
lines changed

2 files changed

+22
-257
lines changed

.npmignore

Lines changed: 0 additions & 256 deletions
This file was deleted.

package.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,26 @@
150150
"fakeTimers": {
151151
"legacyFakeTimers": true
152152
}
153-
}
153+
},
154+
"files": [
155+
"*.js",
156+
"*.d.ts",
157+
"!scripts",
158+
"scripts/prReleaseNotesCommon.js",
159+
"src",
160+
"testkit",
161+
"ReactNativeUILib.podspec",
162+
"!src/**/*.ts",
163+
"src/**/*.d.ts",
164+
"!src/**/*.tsx",
165+
"!src/**/__tests__",
166+
"!**/.DS_Store",
167+
"lib/components",
168+
"lib/ios",
169+
"lib/android",
170+
"!lib/android/build",
171+
"!lib/scripts",
172+
"lib/package.json",
173+
"lib/ReactNativeUILib.podspec"
174+
]
154175
}

0 commit comments

Comments
 (0)