Skip to content

Commit

Permalink
fix(add-spartacus schematics): mutate options.features as the first s…
Browse files Browse the repository at this point in the history
…tep (#18926)
  • Loading branch information
Platonn authored Jun 3, 2024
1 parent 4e31b5b commit 5683aae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions projects/schematics/src/add-spartacus/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,8 @@ function addAppRoutingModuleImport(

export function addSpartacus(options: SpartacusOptions): Rule {
return (tree: Tree, context: SchematicContext) => {
const features = analyzeCrossFeatureDependencies(
normalizeOptionsFeatures(options)
);
options.features = normalizeOptionsFeatures(options);
const features = analyzeCrossFeatureDependencies(options.features);
const dependencies = prepareDependencies(features);
const spartacusRxjsDependency: NodeDependency[] = [
dependencies.find((dep) => dep.name === RXJS) as NodeDependency,
Expand Down

0 comments on commit 5683aae

Please sign in to comment.