@nx/devkit 16.6.0-beta.2 → 16.6.0-beta.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.6.0-beta.2",
3
+ "version": "16.6.0-beta.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.6.0-beta.2",
31
+ "@nrwl/devkit": "16.6.0-beta.4",
32
32
  "ejs": "^3.1.7",
33
33
  "ignore": "^5.0.4",
34
34
  "semver": "7.5.3",
@@ -45,5 +45,5 @@
45
45
  "migrations": "./migrations.json"
46
46
  },
47
47
  "types": "./index.d.ts",
48
- "gitHead": "c3d31711b71d648cedeff688fce9334d393b586b"
48
+ "gitHead": "b1a9ae7ce76697019b26ec9a172005840cca8da6"
49
49
  }
@@ -4,7 +4,7 @@ exports.readTargetOptions = void 0;
4
4
  // eslint-disable-next-line @typescript-eslint/no-restricted-imports
5
5
  const params_1 = require("nx/src/utils/params");
6
6
  const nx_1 = require("../../nx");
7
- const { Workspaces } = (0, nx_1.requireNx)();
7
+ const { Workspaces, getExecutorInformation } = (0, nx_1.requireNx)();
8
8
  /**
9
9
  * Reads and combines options for a given target.
10
10
  *
@@ -16,7 +16,7 @@ function readTargetOptions({ project, target, configuration }, context) {
16
16
  const targetConfiguration = projectConfiguration.targets[target];
17
17
  const ws = new Workspaces(context.root);
18
18
  const [nodeModule, executorName] = targetConfiguration.executor.split(':');
19
- const { schema } = ws.readExecutor(nodeModule, executorName);
19
+ const { schema } = getExecutorInformation(nodeModule, executorName, context.root);
20
20
  const defaultProject = ws.calculateDefaultProjectName(context.cwd, { version: 2, projects: context.projectsConfigurations.projects }, context.nxJsonConfiguration);
21
21
  return (0, params_1.combineOptionsForExecutor)({}, (_a = configuration !== null && configuration !== void 0 ? configuration : targetConfiguration.defaultConfiguration) !== null && _a !== void 0 ? _a : '', targetConfiguration, schema, defaultProject, ws.relativeCwd(context.cwd));
22
22
  }
@@ -25,10 +25,14 @@ function installPackagesTask(tree, alwaysRun = false, cwd = '', packageManager =
25
25
  if (storedPackageJsonValue != packageJsonValue || alwaysRun) {
26
26
  global['__packageJsonInstallCache__'] = packageJsonValue;
27
27
  const pmc = getPackageManagerCommand(packageManager);
28
- (0, child_process_1.execSync)(pmc.install, {
28
+ const execSyncOptions = {
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
+ (0, child_process_1.execSync)(pmc.install, execSyncOptions);
32
36
  }
33
37
  }
34
38
  exports.installPackagesTask = installPackagesTask;