@nx/devkit
Advanced tools
Comparing version 17.2.0-beta.10 to 17.2.0-beta.11
{ | ||
"name": "@nx/devkit", | ||
"version": "17.2.0-beta.10", | ||
"version": "17.2.0-beta.11", | ||
"private": false, | ||
@@ -37,3 +37,3 @@ "description": "The Nx Devkit is used to customize Nx for different technologies and use cases. It contains many utility functions for reading and writing files, updating configuration, working with Abstract Syntax Trees(ASTs), and more. Learn more about [extending Nx by leveraging the Nx Devkit](https://nx.dev/extending-nx/intro/getting-started) on our docs.", | ||
"semver": "7.5.3", | ||
"@nrwl/devkit": "17.2.0-beta.10" | ||
"@nrwl/devkit": "17.2.0-beta.11" | ||
}, | ||
@@ -40,0 +40,0 @@ "peerDependencies": { |
@@ -74,3 +74,3 @@ "use strict"; | ||
for (const [optionName, optionValue] of Object.entries(targetFromProjectConfig.options ?? {})) { | ||
if (targetFromCreateNodes.options[optionName] === optionValue) { | ||
if (equals(targetFromCreateNodes.options[optionName], optionValue)) { | ||
delete targetFromProjectConfig.options[optionName]; | ||
@@ -101,2 +101,11 @@ } | ||
} | ||
function equals(a, b) { | ||
if (Array.isArray(a) && Array.isArray(b)) { | ||
return a.length === b.length && a.every((v, i) => v === b[i]); | ||
} | ||
if (typeof a === 'object' && typeof b === 'object') { | ||
return hashObject(a) === hashObject(b); | ||
} | ||
return a === b; | ||
} | ||
function shouldRemoveArrayProperty(arrayValuesFromProjectConfiguration, arrayValuesFromCreateNodes) { | ||
@@ -103,0 +112,0 @@ const setOfArrayValuesFromProjectConfiguration = new Set(arrayValuesFromProjectConfiguration); |
165360
4347
+ Added@nrwl/devkit@17.2.0-beta.11(transitive)
- Removed@nrwl/devkit@17.2.0-beta.10(transitive)
Updated@nrwl/devkit@17.2.0-beta.11