@nx/devkit
Advanced tools
{ | ||
"name": "@nx/devkit", | ||
"version": "20.7.0-canary.20250320-2a0d89d", | ||
"version": "20.7.0-canary.20250321-cad4d26", | ||
"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.", |
@@ -21,2 +21,9 @@ "use strict"; | ||
prettier = await Promise.resolve().then(() => require('prettier')); | ||
/** | ||
* Even after we discovered prettier in node_modules, we need to be sure that the user is intentionally using prettier | ||
* before proceeding to format with it. | ||
*/ | ||
if (!(0, devkit_internals_1.isUsingPrettierInTree)(tree)) { | ||
return; | ||
} | ||
} | ||
@@ -23,0 +30,0 @@ catch { } |
209791
0.14%5158
0.14%