@nx/workspace 19.0.0-canary.20240420-9ca53b7 → 19.0.0-canary.20240423-b37bfdb

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.0.0-canary.20240420-9ca53b7",
3
+ "version": "19.0.0-canary.20240423-b37bfdb",
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.0.0-canary.20240420-9ca53b7",
64
+ "@nx/devkit": "19.0.0-canary.20240423-b37bfdb",
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.0.0-canary.20240420-9ca53b7",
70
- "@nrwl/workspace": "19.0.0-canary.20240420-9ca53b7"
69
+ "nx": "19.0.0-canary.20240423-b37bfdb",
70
+ "@nrwl/workspace": "19.0.0-canary.20240423-b37bfdb"
71
71
  },
72
72
  "publishConfig": {
73
73
  "access": "public"
@@ -41,14 +41,16 @@ jobs:
41
41
  echo "##vso[task.setvariable variable=BASE_SHA]$LAST_SHA"
42
42
  fi
43
43
 
44
+ <% if(packageManager == 'pnpm'){ %>
45
+ - script: npm install --prefix=$HOME/.local -g pnpm@8
46
+ displayName: Install PNPM
47
+
48
+ <% } %>
44
49
  # Connect your workspace on <%= nxCloudHost %> and uncomment this to enable task distribution.
45
50
  # The "--stop-agents-after" is optional, but allows idle agents to shut down once the "<% if(hasE2E){ %>e2e-ci<% } else { %>build<% } %>" targets have been requested
46
51
  # - script: <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="<% if(hasE2E){ %>e2e-ci<% } else { %>build<% } %>"
47
52
 
48
- <% if(packageManager == 'pnpm'){ %>
49
- - script: npm install --prefix=$HOME/.local -g pnpm@8
50
- displayName: Install PNPM
51
- <% } %>- script: <%= packageManagerInstall %>
53
+ - script: <%= packageManagerInstall %>
52
54
  - script: git branch --track main origin/main
53
55
  condition: eq(variables['Build.Reason'], 'PullRequest')
54
56
 
@@ -11,13 +11,14 @@ pipelines:
11
11
  script:
12
12
  - export NX_BRANCH=$BITBUCKET_PR_ID
13
13
 
14
+ <% if(packageManager == 'pnpm'){ %>
15
+ - npm install --prefix=$HOME/.local -g pnpm@8
16
+
17
+ <% } %>
14
18
  # Connect your workspace on <%= nxCloudHost %> and uncomment this to enable task distribution.
15
19
  # The "--stop-agents-after" is optional, but allows idle agents to shut down once the "<% if(hasE2E){ %>e2e-ci<% } else { %>build<% } %>" targets have been requested
16
20
  # - <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="<% if(hasE2E){ %>e2e-ci<% } else { %>build<% } %>"
17
21
 
18
- <% if(packageManager == 'pnpm'){ %>
19
- - npm install --prefix=$HOME/.local -g pnpm@8
20
- <% } %>
21
22
  - <%= packageManagerInstall %>
22
23
 
23
24
  - <%= packageManagerPrefix %> nx-cloud record -- nx format:check
@@ -9,16 +9,17 @@ jobs:
9
9
  - image: cimg/node:lts-browsers
10
10
  steps:
11
11
  - checkout
12
+ <% if(packageManager == 'pnpm'){ %>
13
+ - run:
14
+ name: Install PNPM
15
+ command: npm install --prefix=$HOME/.local -g pnpm@8
16
+ <% } %>
12
17
 
13
18
  # Connect your workspace on <%= nxCloudHost %> and uncomment this to enable task distribution.
14
19
  # The "--stop-agents-after" is optional, but allows idle agents to shut down once the "<% if(hasE2E){ %>e2e-ci<% } else { %>build<% } %>" targets have been requested
15
20
  # - run: <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="<% if(hasE2E){ %>e2e-ci<% } else { %>build<% } %>"
16
21
 
17
- <% if(packageManager == 'pnpm'){ %>
18
- - run:
19
- name: Install PNPM
20
- command: npm install --prefix=$HOME/.local -g pnpm@8
21
- <% } %>- run: <%= packageManagerInstall %>
22
+ - run: <%= packageManagerInstall %>
22
23
  - nx/set-shas:
23
24
  main-branch-name: '<%= mainBranch %>'
24
25
 
@@ -17,16 +17,17 @@ jobs:
17
17
  - uses: actions/checkout@v4
18
18
  with:
19
19
  fetch-depth: 0
20
+ <% if(packageManager == 'pnpm'){ %>
21
+ - uses: pnpm/action-setup@v2
22
+ with:
23
+ version: 8
24
+ <% } %>
20
25
 
21
26
  # Connect your workspace on <%= nxCloudHost %> and uncomment this to enable task distribution.
22
27
  # The "--stop-agents-after" is optional, but allows idle agents to shut down once the "<% if(hasE2E){ %>e2e-ci<% } else { %>build<% } %>" targets have been requested
23
28
  # - run: <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="<% if(hasE2E){ %>e2e-ci<% } else { %>build<% } %>"
24
29
 
25
- <% if(packageManager == 'pnpm'){ %>
26
- - uses: pnpm/action-setup@v2
27
- with:
28
- version: 8
29
- <% } %># Cache node_modules
30
+ # Cache node_modules
30
31
  - uses: actions/setup-node@v3
31
32
  with:
32
33
  node-version: 20
@@ -9,13 +9,13 @@ variables:
9
9
  - main
10
10
  - merge_requests
11
11
  script:
12
+ <% if(packageManager == 'pnpm'){ %>
13
+ - npm install --prefix=$HOME/.local -g pnpm@8
14
+ <% } %>
12
15
  # Connect your workspace on <%= nxCloudHost %> and uncomment this to enable task distribution.
13
16
  # The "--stop-agents-after" is optional, but allows idle agents to shut down once the "<% if(hasE2E){ %>e2e-ci<% } else { %>build<% } %>" targets have been requested
14
17
  # - <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="<% if(hasE2E){ %>e2e-ci<% } else { %>build<% } %>"
15
18
 
16
- <% if(packageManager == 'pnpm'){ %>
17
- - npm install --prefix=$HOME/.local -g pnpm@8
18
- <% } %>
19
19
  - <%= packageManagerInstall %>
20
20
  - NX_HEAD=$CI_COMMIT_SHA
21
21
  - NX_BASE=${CI_MERGE_REQUEST_DIFF_BASE_SHA:-$CI_COMMIT_BEFORE_SHA}