nx 20.2.1 → 20.2.2

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.
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[532],{9916:()=>{}},s=>{var e;e=9916,s(s.s=e)}]);
1
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[532],{24258:()=>{}},s=>{var e;e=24258,s(s.s=e)}]);
Binary file
@@ -21,6 +21,7 @@ async function getPlugins() {
21
21
  }
22
22
  // Cleanup current plugins before loading new ones
23
23
  if (cleanup) {
24
+ pendingPluginsPromise = undefined;
24
25
  cleanup();
25
26
  }
26
27
  pendingPluginsPromise ??= (0, internal_api_1.loadNxPlugins)(pluginsConfiguration, workspace_root_1.workspaceRoot);
@@ -40,6 +41,7 @@ async function getOnlyDefaultPlugins() {
40
41
  }
41
42
  // Cleanup current plugins before loading new ones
42
43
  if (cleanupDefaultPlugins) {
44
+ pendingDefaultPluginPromise = undefined;
43
45
  cleanupDefaultPlugins();
44
46
  }
45
47
  pendingDefaultPluginPromise ??= (0, internal_api_1.loadNxPlugins)([], workspace_root_1.workspaceRoot);
@@ -81,8 +81,8 @@ function readTargetsFromPackageJson(packageJson, nxJson) {
81
81
  const { scripts, nx, private: isPrivate } = packageJson ?? {};
82
82
  const res = {};
83
83
  const includedScripts = nx?.includedScripts || Object.keys(scripts ?? {});
84
- packageManagerCommand ??= (0, package_manager_1.getPackageManagerCommand)();
85
84
  for (const script of includedScripts) {
85
+ packageManagerCommand ??= (0, package_manager_1.getPackageManagerCommand)();
86
86
  res[script] = buildTargetFromScript(script, scripts, packageManagerCommand);
87
87
  }
88
88
  for (const targetName in nx?.targets) {