mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add @react-native/core-cli-utils to build script
Summary: Changelog: [Internal] Use our build script for packages and to generate the TypeScript types. bypass-github-export-checks Reviewed By: huntie Differential Revision: D54428870 fbshipit-source-id: 2a1666d30ac472300979b2be078a906d390e919a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
62acc29896
commit
f855de7fed
@@ -10,7 +10,7 @@
|
||||
"directory": "packages/core-cli-utils"
|
||||
},
|
||||
"exports": {
|
||||
".": "./index.js",
|
||||
".": "./src/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/core-cli-utils#readme",
|
||||
|
||||
@@ -41,17 +41,22 @@ export type BuildConfig = $ReadOnly<{
|
||||
* Node.js packages only.
|
||||
*/
|
||||
const buildConfig /*: BuildConfig */ = {
|
||||
/* eslint sort-keys: "error" */
|
||||
packages: {
|
||||
'community-cli-plugin': {
|
||||
target: 'node',
|
||||
},
|
||||
'dev-middleware': {
|
||||
target: 'node',
|
||||
'core-cli-utils': {
|
||||
emitTypeScriptDefs: true,
|
||||
target: 'node',
|
||||
},
|
||||
'dev-middleware': {
|
||||
emitTypeScriptDefs: true,
|
||||
target: 'node',
|
||||
},
|
||||
'metro-config': {
|
||||
target: 'node',
|
||||
emitTypeScriptDefs: true,
|
||||
target: 'node',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user