@nx/devkit 16.5.0 → 16.6.0-beta.0

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.5.0",
3
+ "version": "16.6.0-beta.0",
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.5.0",
31
+ "@nrwl/devkit": "16.6.0-beta.0",
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": "eaebcc34f92db2200dab0bde2e2e1dde107a47bf"
48
+ "gitHead": "5a7ffb93c9e84bffbf52f6ae9c6c1e3b8edb9d35"
49
49
  }
@@ -267,11 +267,19 @@ function ensurePackage(pkgOrTree, requiredVersionOrPackage, maybeRequiredVersion
267
267
  };
268
268
  console.log(`Fetching ${pkg}...`);
269
269
  const packageManager = detectPackageManager();
270
+ const isVerbose = process.env.NX_VERBOSE_LOGGING === 'true';
271
+ const preInstallCommand = getPackageManagerCommand(packageManager).preInstall;
272
+ if (preInstallCommand) {
273
+ // ensure package.json and repo in tmp folder is set to a proper package manager state
274
+ (0, child_process_1.execSync)(preInstallCommand, {
275
+ cwd: tempDir,
276
+ stdio: isVerbose ? 'inherit' : 'ignore',
277
+ });
278
+ }
270
279
  let addCommand = getPackageManagerCommand(packageManager).addDev;
271
280
  if (packageManager === 'pnpm') {
272
281
  addCommand = 'pnpm add -D'; // we need to ensure that we are not using workspace command
273
282
  }
274
- const isVerbose = process.env.NX_VERBOSE_LOGGING === 'true';
275
283
  (0, child_process_1.execSync)(`${addCommand} ${pkg}@${requiredVersion}`, {
276
284
  cwd: tempDir,
277
285
  stdio: isVerbose ? 'inherit' : 'ignore',