Skip to content

Commit

Permalink
fix(react-native): fix react native npm preset (#16624)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi authored Apr 28, 2023
1 parent 08ecd81 commit 828f77a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/detox/src/executors/build/build.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export function runCliBuild(
['build', ...createDetoxBuildOptions(options)],
{
cwd: join(workspaceRoot, projectRoot),
env: process.env,
}
);

Expand Down
1 change: 1 addition & 0 deletions packages/detox/src/executors/test/test.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function runCliTest(
['test', ...createDetoxTestOptions(options)],
{
cwd: join(workspaceRoot, projectRoot),
env: process.env,
}
);

Expand Down
1 change: 1 addition & 0 deletions packages/expo/plugins/with-nx-metro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function withNxMetro(config: any, opts: WithNxOptions = {}) {
watchFolders = watchFolders.concat([
join(workspaceRoot, 'node_modules'),
join(workspaceRoot, workspaceLayout().libsDir),
join(workspaceRoot, 'packages'),
]);
if (opts.watchFolders?.length) {
watchFolders = watchFolders.concat(opts.watchFolders);
Expand Down
1 change: 1 addition & 0 deletions packages/react-native/plugins/with-nx-metro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function withNxMetro(config: any, opts: WithNxOptions = {}) {
watchFolders = watchFolders.concat([
join(workspaceRoot, 'node_modules'),
join(workspaceRoot, workspaceLayout().libsDir),
join(workspaceRoot, 'packages'),
join(workspaceRoot, '.storybook'),
]);
if (opts.watchFolders?.length) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function runCliBuildIOS(
*/
childProcess = fork(
join(workspaceRoot, './node_modules/react-native/cli.js'),
['run-ios', ...createBuildIOSOptions(options), '--no-packager'],
['build-ios', ...createBuildIOSOptions(options), '--no-packager'],
{
cwd: join(workspaceRoot, projectRoot),
env: { ...process.env, RCT_METRO_PORT: options.port.toString() },
Expand Down

0 comments on commit 828f77a

Please sign in to comment.