@nx/devkit
Advanced tools
Comparing version 16.1.3 to 16.1.4
{ | ||
"name": "@nx/devkit", | ||
"version": "16.1.3", | ||
"version": "16.1.4", | ||
"private": false, | ||
@@ -31,3 +31,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.", | ||
"dependencies": { | ||
"@nrwl/devkit": "16.1.3", | ||
"@nrwl/devkit": "16.1.4", | ||
"ejs": "^3.1.7", | ||
@@ -49,3 +49,3 @@ "ignore": "^5.0.4", | ||
"types": "./index.d.ts", | ||
"gitHead": "a6642bf2a87616e2791ade7dc9b570a3e4908974" | ||
"gitHead": "16f098804653374057eff7e2f9565fb4c7a90b29" | ||
} |
@@ -27,15 +27,15 @@ "use strict"; | ||
yield Promise.all(Array.from(files).map((file) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const systemPath = path.join(tree.root, file.path); | ||
const resolvedOptions = yield prettier.resolveConfig(systemPath, { | ||
editorconfig: true, | ||
}); | ||
const options = Object.assign(Object.assign(Object.assign({}, resolvedOptions), changedPrettierInTree), { filepath: systemPath }); | ||
if (file.path.endsWith('.swcrc')) { | ||
options.parser = 'json'; | ||
} | ||
const support = yield prettier.getFileInfo(systemPath, options); | ||
if (support.ignored || !support.inferredParser) { | ||
return; | ||
} | ||
try { | ||
const systemPath = path.join(tree.root, file.path); | ||
const resolvedOptions = yield prettier.resolveConfig(systemPath, { | ||
editorconfig: true, | ||
}); | ||
const options = Object.assign(Object.assign(Object.assign({}, resolvedOptions), changedPrettierInTree), { filepath: systemPath }); | ||
if (file.path.endsWith('.swcrc')) { | ||
options.parser = 'json'; | ||
} | ||
const support = yield prettier.getFileInfo(systemPath, options); | ||
if (support.ignored || !support.inferredParser) { | ||
return; | ||
} | ||
tree.write(file.path, prettier.format(file.content.toString('utf-8'), options)); | ||
@@ -42,0 +42,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
253961
+ Added@nrwl/devkit@16.1.4(transitive)
- Removed@nrwl/devkit@16.1.3(transitive)
Updated@nrwl/devkit@16.1.4