nx 18.2.0-canary.20240327-82dc703 → 18.2.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.
@@ -1 +1 @@
1
- (()=>{"use strict";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={id:e,loaded:!1,exports:{}};return r[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=r,e=[],o.O=(r,t,n,i)=>{if(!t){var l=1/0;for(f=0;f<e.length;f++){for(var[t,n,i]=e[f],a=!0,u=0;u<t.length;u++)(!1&i||l>=i)&&Object.keys(o.O).every((e=>o.O[e](t[u])))?t.splice(u--,1):(a=!1,i<l&&(l=i));if(a){e.splice(f--,1);var d=n();void 0!==d&&(r=d)}}return r}i=i||0;for(var f=e.length;f>0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[t,n,i]},o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};o.O.j=r=>0===e[r];var r=(r,t)=>{var n,i,[l,a,u]=t,d=0;if(l.some((r=>0!==e[r]))){for(n in a)o.o(a,n)&&(o.m[n]=a[n]);if(u)var f=u(o)}for(r&&r(t);d<l.length;d++)i=l[d],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(f)},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();
1
+ (()=>{"use strict";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={id:e,loaded:!1,exports:{}};return r[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=r,e=[],o.O=(r,t,n,i)=>{if(!t){var l=1/0;for(f=0;f<e.length;f++){for(var[t,n,i]=e[f],a=!0,u=0;u<t.length;u++)(!1&i||l>=i)&&Object.keys(o.O).every((e=>o.O[e](t[u])))?t.splice(u--,1):(a=!1,i<l&&(l=i));if(a){e.splice(f--,1);var d=n();void 0!==d&&(r=d)}}return r}i=i||0;for(var f=e.length;f>0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[t,n,i]},o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={1:0};o.O.j=r=>0===e[r];var r=(r,t)=>{var n,i,[l,a,u]=t,d=0;if(l.some((r=>0!==e[r]))){for(n in a)o.o(a,n)&&(o.m[n]=a[n]);if(u)var f=u(o)}for(r&&r(t);d<l.length;d++)i=l[d],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(f)},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[532],{22232:()=>{}},s=>{var e;e=22232,s(s.s=e)}]);
1
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2],{22232:(s,e,k)=>{k.r(e)}},s=>{var e;e=22232,s(s.s=e)}]);
@@ -53,7 +53,7 @@ const createDependencies = (_, ctx) => {
53
53
  // lockfile may not exist yet
54
54
  if (pluginConfig.analyzeLockfile &&
55
55
  (0, lock_file_1.lockFileExists)(packageManager) &&
56
- parsedLockFile) {
56
+ parsedLockFile.externalNodes) {
57
57
  const lockFilePath = (0, path_1.join)(workspace_root_1.workspaceRoot, (0, lock_file_1.getLockFileName)(packageManager));
58
58
  const lockFileContents = (0, fs_1.readFileSync)(lockFilePath).toString();
59
59
  const lockFileHash = getLockFileHash(lockFileContents);
@@ -200,7 +200,7 @@ class TaskOrchestrator {
200
200
  // obtain metadata
201
201
  const temporaryOutputPath = this.cache.temporaryOutputPath(task);
202
202
  const streamOutput = (0, utils_1.shouldStreamOutput)(task, this.initiatingProject);
203
- const env = pipeOutput
203
+ let env = pipeOutput
204
204
  ? (0, task_env_1.getEnvVariablesForTask)(task, taskSpecificEnv, process.env.FORCE_COLOR === undefined
205
205
  ? 'true'
206
206
  : process.env.FORCE_COLOR, this.options.skipNxCache, this.options.captureStderr, null, null)
@@ -216,6 +216,12 @@ class TaskOrchestrator {
216
216
  const { schema } = (0, utils_1.getExecutorForTask)(task, this.projectGraph);
217
217
  const isRunOne = this.initiatingProject != null;
218
218
  const combinedOptions = (0, params_1.combineOptionsForExecutor)(task.overrides, task.target.configuration ?? targetConfiguration.defaultConfiguration, targetConfiguration, schema, task.target.project, (0, path_1.relative)(task.projectRoot ?? workspace_root_1.workspaceRoot, process.cwd()), process.env.NX_VERBOSE_LOGGING === 'true');
219
+ if (combinedOptions.env) {
220
+ env = {
221
+ ...env,
222
+ ...combinedOptions.env,
223
+ };
224
+ }
219
225
  if (streamOutput) {
220
226
  const args = (0, utils_1.getPrintableCommandArgsForTask)(task);
221
227
  output_1.output.logCommand(args.join(' '));
@@ -27,7 +27,14 @@ function getIgnoredGlobs(root = workspace_root_1.workspaceRoot, prependRoot = tr
27
27
  }
28
28
  exports.getIgnoredGlobs = getIgnoredGlobs;
29
29
  function getAlwaysIgnore(root) {
30
- const paths = ['node_modules', '**/node_modules', '.git', '.nx', '.vscode'];
30
+ const paths = [
31
+ 'node_modules',
32
+ '**/node_modules',
33
+ '.git',
34
+ '.nx',
35
+ '.vscode',
36
+ '.yarn/cache',
37
+ ];
31
38
  return root ? paths.map((x) => (0, path_1.joinPathFragments)(root, x)) : paths;
32
39
  }
33
40
  exports.getAlwaysIgnore = getAlwaysIgnore;
@@ -205,7 +205,7 @@ function validateObject(opts, schema, definitions) {
205
205
  if (schema.additionalProperties !== undefined &&
206
206
  schema.additionalProperties !== true) {
207
207
  Object.keys(opts).find((p) => {
208
- if (Object.keys(schema.properties).indexOf(p) === -1 &&
208
+ if (Object.keys(schema.properties ?? {}).indexOf(p) === -1 &&
209
209
  (!schema.patternProperties ||
210
210
  !Object.keys(schema.patternProperties).some((pattern) => new RegExp(pattern).test(p)))) {
211
211
  if (p === '_') {