Skip to content

Commit f443b1b

Browse files
Merge pull request #1125 from angular/main
Create a new pull request by comparing changes across two branches
2 parents 352c5ad + 7c50ba9 commit f443b1b

File tree

14 files changed

+147
-112
lines changed

14 files changed

+147
-112
lines changed

.github/workflows/assistant-to-the-branch-manager.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
assistant_to_the_branch_manager:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
16+
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
1717
with:
1818
persist-credentials: false
1919
- uses: angular/dev-infra/github-actions/branch-manager@46771fcd70e08e7ba3c30f4ee9ebf9971b7fdb5c

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
./scripts/saucelabs/wait-for-tunnel.sh
171171
yarn bazel test --config=saucelabs //tests/legacy-cli:e2e.saucelabs
172172
./scripts/saucelabs/stop-tunnel.sh
173-
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
173+
- uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1
174174
if: ${{ failure() }}
175175
with:
176176
name: sauce-connect-log

.github/workflows/dev-infra.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
labels:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
15+
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
1616
- uses: angular/dev-infra/github-actions/commit-message-based-labels@46771fcd70e08e7ba3c30f4ee9ebf9971b7fdb5c
1717
with:
1818
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}
1919
post_approval_changes:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
22+
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
2323
- uses: angular/dev-infra/github-actions/post-approval-changes@46771fcd70e08e7ba3c30f4ee9ebf9971b7fdb5c
2424
with:
2525
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}

.github/workflows/pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
outputs:
2121
snapshots: ${{ steps.filter.outputs.snapshots }}
2222
steps:
23-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
23+
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
2424
with:
2525
persist-credentials: false
2626
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
@@ -36,7 +36,7 @@ jobs:
3636
- name: Initialize environment
3737
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@46771fcd70e08e7ba3c30f4ee9ebf9971b7fdb5c
3838
- name: Setup ESLint Caching
39-
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
39+
uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
4040
with:
4141
path: .eslintcache
4242
key: ${{ runner.os }}-${{ hashFiles('.eslintrc.json') }}
@@ -80,7 +80,7 @@ jobs:
8080
- name: Build release targets
8181
run: yarn ng-dev release build
8282
- name: Store PR release packages
83-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
83+
uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1
8484
with:
8585
name: packages
8686
path: dist/releases/*.tgz

.github/workflows/scorecard.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
steps:
2727
- name: 'Checkout code'
28-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
28+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
2929
with:
3030
persist-credentials: false
3131

@@ -38,14 +38,14 @@ jobs:
3838

3939
# Upload the results as artifacts.
4040
- name: 'Upload artifact'
41-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
41+
uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1
4242
with:
4343
name: SARIF file
4444
path: results.sarif
4545
retention-days: 5
4646

4747
# Upload the results to GitHub's code scanning dashboard.
4848
- name: 'Upload to code-scanning'
49-
uses: github/codeql-action/upload-sarif@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11
49+
uses: github/codeql-action/upload-sarif@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
5050
with:
5151
sarif_file: results.sarif

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"@discoveryjs/json-ext": "0.6.1",
8888
"@inquirer/confirm": "5.0.0",
8989
"@inquirer/prompts": "7.0.0",
90-
"@listr2/prompt-adapter-inquirer": "2.0.16",
90+
"@listr2/prompt-adapter-inquirer": "2.0.17",
9191
"@rollup/plugin-commonjs": "^28.0.0",
9292
"@rollup/plugin-node-resolve": "^13.0.5",
9393
"@stylistic/eslint-plugin": "^2.8.0",
@@ -114,8 +114,8 @@
114114
"@types/yargs": "^17.0.20",
115115
"@types/yargs-parser": "^21.0.0",
116116
"@types/yarnpkg__lockfile": "^1.1.5",
117-
"@typescript-eslint/eslint-plugin": "8.8.0",
118-
"@typescript-eslint/parser": "8.8.0",
117+
"@typescript-eslint/eslint-plugin": "8.8.1",
118+
"@typescript-eslint/parser": "8.8.1",
119119
"@vitejs/plugin-basic-ssl": "1.1.0",
120120
"@web/test-runner": "^0.19.0",
121121
"@yarnpkg/lockfile": "1.1.0",
@@ -137,11 +137,11 @@
137137
"eslint": "8.57.0",
138138
"eslint-config-prettier": "9.1.0",
139139
"eslint-plugin-header": "3.1.1",
140-
"eslint-plugin-import": "2.30.0",
140+
"eslint-plugin-import": "2.31.0",
141141
"express": "4.21.0",
142142
"fast-glob": "3.3.2",
143143
"http-proxy": "^1.18.1",
144-
"http-proxy-middleware": "3.0.2",
144+
"http-proxy-middleware": "3.0.3",
145145
"https-proxy-agent": "7.0.5",
146146
"husky": "9.1.6",
147147
"ini": "5.0.0",
@@ -159,7 +159,7 @@
159159
"less": "4.2.0",
160160
"less-loader": "12.2.0",
161161
"license-webpack-plugin": "4.0.2",
162-
"listr2": "8.2.4",
162+
"listr2": "8.2.5",
163163
"lmdb": "3.1.3",
164164
"loader-utils": "3.3.1",
165165
"lodash": "^4.17.21",

packages/angular/build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"fast-glob": "3.3.2",
3333
"https-proxy-agent": "7.0.5",
3434
"istanbul-lib-instrument": "6.0.3",
35-
"listr2": "8.2.4",
35+
"listr2": "8.2.5",
3636
"lmdb": "3.1.3",
3737
"magic-string": "0.30.11",
3838
"mrmime": "2.0.0",

packages/angular/build/src/builders/application/build-action.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,6 @@ export async function* runEsBuildBuildAction(
9898
`${workspaceRoot.replace(/\\/g, '/')}/**/.*/**`,
9999
];
100100

101-
if (!preserveSymlinks) {
102-
// Ignore all node modules directories to avoid excessive file watchers.
103-
// Package changes are handled below by watching manifest and lock files.
104-
// NOTE: this is not enable when preserveSymlinks is true as this would break `npm link` usages.
105-
ignored.push('**/node_modules/**');
106-
}
107-
108101
// Setup a watcher
109102
const { createWatcher } = await import('../../tools/esbuild/watcher');
110103
watcher = createWatcher({
@@ -119,15 +112,22 @@ export async function* runEsBuildBuildAction(
119112

120113
// Watch the entire project root if 'NG_BUILD_WATCH_ROOT' environment variable is set
121114
if (shouldWatchRoot) {
115+
if (!preserveSymlinks) {
116+
// Ignore all node modules directories to avoid excessive file watchers.
117+
// Package changes are handled below by watching manifest and lock files.
118+
// NOTE: this is not enable when preserveSymlinks is true as this would break `npm link` usages.
119+
ignored.push('**/node_modules/**');
120+
121+
watcher.add(
122+
packageWatchFiles
123+
.map((file) => path.join(workspaceRoot, file))
124+
.filter((file) => existsSync(file)),
125+
);
126+
}
127+
122128
watcher.add(projectRoot);
123129
}
124130

125-
watcher.add(
126-
packageWatchFiles
127-
.map((file) => path.join(workspaceRoot, file))
128-
.filter((file) => existsSync(file)),
129-
);
130-
131131
// Watch locations provided by the initial build result
132132
watcher.add(result.watchFiles);
133133
}

packages/angular/build/src/builders/application/options.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,16 @@ export async function normalizeOptions(
320320
* If SSR is activated, create a distinct entry file for the `index.html`.
321321
* This is necessary because numerous server/cloud providers automatically serve the `index.html` as a static file
322322
* if it exists (handling SSG).
323+
*
323324
* For instance, accessing `foo.com/` would lead to `foo.com/index.html` being served instead of hitting the server.
325+
*
326+
* This approach can also be applied to service workers, where the `index.csr.html` is served instead of the prerendered `index.html`.
324327
*/
325328
const indexBaseName = path.basename(options.index);
326-
indexOutput = ssrOptions && indexBaseName === 'index.html' ? INDEX_HTML_CSR : indexBaseName;
329+
indexOutput =
330+
(ssrOptions || prerenderOptions) && indexBaseName === 'index.html'
331+
? INDEX_HTML_CSR
332+
: indexBaseName;
327333
} else {
328334
indexOutput = options.index.output || 'index.html';
329335
}

packages/angular/build/src/utils/server-rendering/prerender.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,9 @@ async function getAllRoutes(
334334
assertIsError(err);
335335

336336
return {
337-
errors: [`An error occurred while extracting routes.\n\n${err.stack}`],
337+
errors: [
338+
`An error occurred while extracting routes.\n\n${err.stack ?? err.message ?? err.code ?? err}`,
339+
],
338340
serializedRouteTree: [],
339341
};
340342
} finally {

0 commit comments

Comments
 (0)