Skip to content

Commit

Permalink
fix(angular): ensure ssr invokation uses current package manager (#18322
Browse files Browse the repository at this point in the history
)
  • Loading branch information
meeroslav authored Jul 26, 2023
1 parent 1dadb3d commit c599d2f
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import type { Schema } from './schema';
import { readProjectsConfigurationFromProjectGraph } from 'nx/src/project-graph/project-graph';
import { getExecutorInformation } from 'nx/src/command-line/run/executor-utils';
import { readCachedProjectGraph, workspaceRoot } from '@nx/devkit';
import {
getPackageManagerCommand,
readCachedProjectGraph,
workspaceRoot,
} from '@nx/devkit';
import {
getDynamicRemotes,
getStaticRemotes,
Expand Down Expand Up @@ -109,8 +113,9 @@ export function executeModuleFederationDevSSRBuilder(
remoteProject.targets.server.options.outputPath,
'main.js'
);
const pm = getPackageManagerCommand();
execSync(
`npx nx run ${remote}:server${
`${pm.exec} nx run ${remote}:server${
context.target.configuration
? `:${context.target.configuration}`
: ''
Expand Down

1 comment on commit c599d2f

@vercel
Copy link

@vercel vercel bot commented on c599d2f Jul 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx.dev

Please sign in to comment.