@nx/workspace 17.3.0-canary.20240125-70fd808 → 17.3.0-rc.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/migrations.json CHANGED
@@ -73,6 +73,18 @@
73
73
  "version": "~5.2.2"
74
74
  }
75
75
  }
76
+ },
77
+ "17.3.0": {
78
+ "version": "17.3.0-beta.10",
79
+ "x-prompt": "Do you want to update to TypeScript v5.3?",
80
+ "requires": {
81
+ "typescript": ">=5.2.0 <5.3.0"
82
+ },
83
+ "packages": {
84
+ "typescript": {
85
+ "version": "~5.3.2"
86
+ }
87
+ }
76
88
  }
77
89
  }
78
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/workspace",
3
- "version": "17.3.0-canary.20240125-70fd808",
3
+ "version": "17.3.0-rc.0",
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": "17.3.0-canary.20240125-70fd808",
64
+ "@nx/devkit": "17.3.0-rc.0",
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": "17.3.0-canary.20240125-70fd808",
70
- "@nrwl/workspace": "17.3.0-canary.20240125-70fd808"
69
+ "nx": "17.3.0-rc.0",
70
+ "@nrwl/workspace": "17.3.0-rc.0"
71
71
  },
72
72
  "publishConfig": {
73
73
  "access": "public"
@@ -25,7 +25,9 @@ jobs:
25
25
  - script: npm install --prefix=$HOME/.local -g pnpm@8
26
26
  displayName: Install PNPM
27
27
  <% } %>- script: <%= packageManagerInstall %>
28
- # uncomment to enable task distribution
29
- # - script: <%= packageManagerPrefix %> nx-cloud start-ci-run --distributes-on="5 linux-medium"
28
+
29
+ # Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
30
+ # - script: <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
31
+
30
32
  - script: <%= packageManagerPrefix %> nx-cloud record -- nx format:check --base=$(BASE_SHA) --head=$(HEAD_SHA)
31
- - script: <%= packageManagerPrefix %> nx affected --base=$(BASE_SHA) --head=$(HEAD_SHA) -t=lint,test,build --parallel=3
33
+ - script: <%= packageManagerPrefix %> nx affected --base=$(BASE_SHA) --head=$(HEAD_SHA) -t=lint,test,build
@@ -15,7 +15,9 @@ pipelines:
15
15
  - npm install --prefix=$HOME/.local -g pnpm@8
16
16
  <% } %>
17
17
  - <%= packageManagerInstall %>
18
- # uncomment to enable task distribution
19
- # - <%= packageManagerPrefix %> nx-cloud start-ci-run --distributes-on="5 linux-medium"
18
+
19
+ # Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
20
+ # - <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
21
+
20
22
  - <%= packageManagerPrefix %> nx-cloud record -- nx format:check
21
- - <%= packageManagerPrefix %> nx affected -t=lint,test,build --parallel=3
23
+ - <%= packageManagerPrefix %> nx affected -t=lint,test,build
@@ -16,10 +16,12 @@ jobs:
16
16
  <% } %>- run: <%= packageManagerInstall %>
17
17
  - nx/set-shas:
18
18
  main-branch-name: '<%= mainBranch %>'
19
- # uncomment to enable task distribution
20
- # - run: <%= packageManagerPrefix %> nx-cloud start-ci-run --distributes-on="5 linux-medium"
19
+
20
+ # Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
21
+ # - run: <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
22
+
21
23
  - run: <%= packageManagerPrefix %> nx-cloud record -- nx format:check --base=$NX_BASE --head=$NX_HEAD
22
- - run: <%= packageManagerPrefix %> nx affected --base=$NX_BASE --head=$NX_HEAD -t=lint,test,build --parallel=3
24
+ - run: <%= packageManagerPrefix %> nx affected --base=$NX_BASE --head=$NX_HEAD -t=lint,test,build
23
25
 
24
26
  workflows:
25
27
  version: 2
@@ -29,8 +29,8 @@ jobs:
29
29
  - run: <%= packageManagerInstall %>
30
30
  - uses: nrwl/nx-set-shas@v4
31
31
 
32
- # uncomment to enable task distribution
33
- # - run: <%= packageManagerPrefix %> nx-cloud start-ci-run --distributes-on="5 linux-medium"
32
+ # Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
33
+ # - run: <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
34
34
 
35
35
  - run: <%= packageManagerPrefix %> nx-cloud record -- nx format:check
36
- - run: <%= packageManagerPrefix %> nx affected -t=lint,test,build --parallel=3
36
+ - run: <%= packageManagerPrefix %> nx affected -t=lint,test,build
@@ -15,7 +15,9 @@ variables:
15
15
  - <%= packageManagerInstall %>
16
16
  - NX_HEAD=$CI_COMMIT_SHA
17
17
  - NX_BASE=${CI_MERGE_REQUEST_DIFF_BASE_SHA:-$CI_COMMIT_BEFORE_SHA}
18
- # uncomment to enable task distribution
19
- # - <%= packageManagerPrefix %> nx-cloud start-ci-run --distributes-on="5 linux-medium"
18
+
19
+ # Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
20
+ # - <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
21
+
20
22
  - <%= packageManagerPrefix %> nx-cloud record -- nx format:check --base=$NX_BASE --head=$NX_HEAD
21
- - <%= packageManagerPrefix %> nx affected --base=$NX_BASE --head=$NX_HEAD -t=lint,test,build --parallel=3
23
+ - <%= packageManagerPrefix %> nx affected --base=$NX_BASE --head=$NX_HEAD -t=lint,test,build
@@ -28,9 +28,9 @@ function moveProjectFiles(tree, schema, project) {
28
28
  'index.html', // Vite
29
29
  ];
30
30
  const knownRootProjectFolders = [
31
- 'src',
32
- 'app',
33
- 'pages',
31
+ 'src', // Most apps/libs
32
+ 'app', // Remix, Next.js
33
+ 'pages', // Next.js
34
34
  'public', // Vite, Remix, Next.js
35
35
  ];
36
36
  const isKnownRootProjectFile = (file) => {
@@ -124,7 +124,7 @@ async function determineFormat(formats) {
124
124
  name: derivedSelectedValue,
125
125
  },
126
126
  ],
127
- initial: 'as-provided',
127
+ initial: 0,
128
128
  }).then(({ format }) => format === asProvidedSelectedValue ? 'as-provided' : 'derived');
129
129
  return result;
130
130
  }
@@ -56,6 +56,12 @@ Nx comes with local caching already built-in (check your `nx.json`). On CI you m
56
56
  - [Set up task distribution across multiple machines](https://nx.dev/nx-cloud/features/distribute-task-execution)
57
57
  - [Learn more how to setup CI](https://nx.dev/recipes/ci)
58
58
 
59
+ ## Explore the Graph of Your Workspace
60
+ Run `nx graph` to show the graph of the workspace.
61
+ It will show tasks that you can run with Nx.
62
+
63
+ - [Learn more about Exploring the Graph](https://nx.dev/core-features/explore-graph)
64
+
59
65
  ## Connect with us!
60
66
 
61
67
  - [Join the community](https://nx.dev/community)
@@ -1,3 +1,3 @@
1
1
  export declare const nxVersion: any;
2
- export declare const typescriptVersion = "~5.2.2";
3
- export declare const angularCliVersion = "~17.0.0";
2
+ export declare const typescriptVersion = "~5.3.2";
3
+ export declare const angularCliVersion = "~17.1.0";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.angularCliVersion = exports.typescriptVersion = exports.nxVersion = void 0;
4
4
  exports.nxVersion = require('../../package.json').version;
5
- exports.typescriptVersion = '~5.2.2';
5
+ exports.typescriptVersion = '~5.3.2';
6
6
  // TODO: remove when preset generation is reworked and
7
7
  // deps are not installed from workspace
8
- exports.angularCliVersion = '~17.0.0';
8
+ exports.angularCliVersion = '~17.1.0';