@nx/workspace 19.7.0-canary.20240906-a3c2db8 → 19.7.1

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/workspace",
3
- "version": "19.7.0-canary.20240906-a3c2db8",
3
+ "version": "19.7.1",
4
4
  "private": false,
5
5
  "description": "The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.",
6
6
  "repository": {
@@ -61,13 +61,13 @@
61
61
  }
62
62
  },
63
63
  "dependencies": {
64
- "@nx/devkit": "19.7.0-canary.20240906-a3c2db8",
64
+ "@nx/devkit": "19.7.1",
65
65
  "chalk": "^4.1.0",
66
66
  "enquirer": "~2.3.6",
67
67
  "tslib": "^2.3.0",
68
68
  "yargs-parser": "21.1.1",
69
- "nx": "19.7.0-canary.20240906-a3c2db8",
70
- "@nrwl/workspace": "19.7.0-canary.20240906-a3c2db8"
69
+ "nx": "19.7.1",
70
+ "@nrwl/workspace": "19.7.1"
71
71
  },
72
72
  "publishConfig": {
73
73
  "access": "public"
@@ -74,4 +74,12 @@ function addWorkflowFileToSharedGlobals(nxJson, ci, workflowFileName) {
74
74
  nxJson.namedInputs ??= {};
75
75
  nxJson.namedInputs.sharedGlobals ??= [];
76
76
  nxJson.namedInputs.sharedGlobals.push(input);
77
+ // Ensure 'default' named input exists and includes 'sharedGlobals'
78
+ if (!nxJson.namedInputs.default) {
79
+ nxJson.namedInputs.default = ['sharedGlobals'];
80
+ }
81
+ else if (Array.isArray(nxJson.namedInputs.default) &&
82
+ !nxJson.namedInputs.default.includes('sharedGlobals')) {
83
+ nxJson.namedInputs.default.push('sharedGlobals');
84
+ }
77
85
  }
@@ -20,7 +20,7 @@ jobs:
20
20
  <% if(packageManager == 'pnpm'){ %>
21
21
  - uses: pnpm/action-setup@v4
22
22
  with:
23
- version: 8
23
+ version: 9
24
24
  <% } %>
25
25
  <% if(packageManager == 'bun'){ %>
26
26
  - uses: oven-sh/setup-bun@v1