@nx/devkit
Advanced tools
Comparing version 0.0.0-pr-28859-d05a640 to 0.0.0-pr-29047-57d3073
{ | ||
"name": "@nx/devkit", | ||
"version": "0.0.0-pr-28859-d05a640", | ||
"version": "0.0.0-pr-29047-57d3073", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "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.", |
@@ -132,3 +132,3 @@ "use strict"; | ||
} | ||
const replacedTargets = new Set(); | ||
let hasChanges = false; | ||
for (const targetCommand of targetCommands) { | ||
@@ -144,3 +144,3 @@ const { command, target, configuration } = targetCommand; | ||
: `$1nx ${target}$3`); | ||
replacedTargets.add(target); | ||
hasChanges = true; | ||
} | ||
@@ -204,3 +204,3 @@ else { | ||
: `$1nx ${target}$4`)); | ||
replacedTargets.add(target); | ||
hasChanges = true; | ||
} | ||
@@ -212,3 +212,3 @@ else { | ||
: `$1nx ${target}$3`)); | ||
replacedTargets.add(target); | ||
hasChanges = true; | ||
} | ||
@@ -219,3 +219,5 @@ } | ||
} | ||
(0, devkit_exports_1.writeJson)(tree, packageJsonPath, packageJson); | ||
if (hasChanges) { | ||
(0, devkit_exports_1.writeJson)(tree, packageJsonPath, packageJson); | ||
} | ||
} | ||
@@ -222,0 +224,0 @@ function getInferredTargetCommands(project) { |
5060
205292