Allow direct references of doctor and pkg from the main bundle

Summary: This diff allows direct referencing pkg and doctor packages from the main bundle so they can be changed and used in the main app without publishing to npm

Reviewed By: mweststrate

Differential Revision: D20390416

fbshipit-source-id: af625a8b7cead4481743a88aec198493d363ce76
This commit is contained in:
Anton Nikolaev
2020-03-14 15:56:58 -07:00
committed by Facebook GitHub Bot
parent 10d990c32c
commit 952cb7783a
6 changed files with 33 additions and 22 deletions

View File

@@ -9,6 +9,7 @@
"icon": "icon.png",
"category": "facebook-intern",
"privileged": true,
"license": "MIT",
"build": {
"appId": "flipper",
"productName": "Flipper",
@@ -77,7 +78,9 @@
"<rootDir>/static/globalTestSetup.js"
],
"moduleNameMapper": {
"^flipper$": "<rootDir>/src/index.tsx"
"^flipper$": "<rootDir>/src",
"^flipper-doctor$": "<rootDir>/doctor/src",
"^flipper-pkg$": "<rootDir>/pkg/src"
},
"clearMocks": true
},