@nx/devkit 16.7.2 → 16.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/devkit",
3
- "version": "16.7.2",
3
+ "version": "16.7.4",
4
4
  "private": false,
5
5
  "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.",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "homepage": "https://nx.dev",
30
30
  "dependencies": {
31
- "@nrwl/devkit": "16.7.2",
31
+ "@nrwl/devkit": "16.7.4",
32
32
  "ejs": "^3.1.7",
33
33
  "enquirer": "~2.3.6",
34
34
  "ignore": "^5.0.4",
@@ -46,5 +46,5 @@
46
46
  "migrations": "./migrations.json"
47
47
  },
48
48
  "type": "commonjs",
49
- "gitHead": "b024f44a1ad4e1773e80f6dc72f9d22766b950f9"
49
+ "gitHead": "5d73f6e0f2c6d4dfb2e9d45519d591c338bb5c37"
50
50
  }
@@ -38,7 +38,9 @@ function formatFiles(tree) {
38
38
  if (support.ignored || !support.inferredParser) {
39
39
  return;
40
40
  }
41
- tree.write(file.path, prettier.format(file.content.toString('utf-8'), options));
41
+ tree.write(file.path,
42
+ // In prettier v3 the format result is a promise
43
+ yield prettier.format(file.content.toString('utf-8'), options));
42
44
  }
43
45
  catch (e) {
44
46
  console.warn(`Could not format ${file.path}. Error: "${e.message}"`);
@@ -29,9 +29,6 @@ function installPackagesTask(tree, alwaysRun = false, cwd = '', packageManager =
29
29
  cwd: (0, path_1.join)(tree.root, cwd),
30
30
  stdio: process.env.NX_GENERATE_QUIET === 'true' ? 'ignore' : 'inherit',
31
31
  };
32
- if (pmc.preInstall) {
33
- (0, child_process_1.execSync)(pmc.preInstall, execSyncOptions);
34
- }
35
32
  (0, child_process_1.execSync)(pmc.install, execSyncOptions);
36
33
  }
37
34
  }