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:
Blake Friedman
2024-03-13 11:07:12 -07:00
committed by Facebook GitHub Bot
parent 62acc29896
commit f855de7fed
8 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -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",
+8 -3
View File
@@ -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',
},
},
};