Skip to content

Commit

Permalink
fix(angular): install swc/helpers when generating remote applications (
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 authored Oct 18, 2023
1 parent 866179d commit a5c45cc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/angular/src/generators/remote/remote.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
addDependenciesToPackageJson,
formatFiles,
getProjects,
runTasksInSerial,
Expand All @@ -13,6 +14,7 @@ import { setupMf } from '../setup-mf/setup-mf';
import { getInstalledAngularVersionInfo } from '../utils/version-utils';
import { addSsr, findNextAvailablePort } from './lib';
import type { Schema } from './schema';
import { swcHelpersVersion } from '@nx/js/src/utils/versions';

export async function remote(tree: Tree, options: Schema) {
return await remoteInternal(tree, {
Expand Down Expand Up @@ -76,7 +78,15 @@ export async function remoteInternal(tree: Tree, schema: Schema) {
typescriptConfiguration,
});

let installTasks = [appInstallTask];
const installSwcHelpersTask = addDependenciesToPackageJson(
tree,
{},
{
'@swc/helpers': swcHelpersVersion,
}
);

let installTasks = [appInstallTask, installSwcHelpersTask];
if (options.ssr) {
let ssrInstallTask = await addSsr(tree, {
appName: remoteProjectName,
Expand Down

0 comments on commit a5c45cc

Please sign in to comment.