@schematics/angular 20.0.0-next.2 → 20.0.0-next.3

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.
@@ -195,7 +195,6 @@ function addAppToWorkspaceFile(options, appDir, folderName) {
195
195
  builder: workspace_models_1.Builders.BuildApplication,
196
196
  defaultConfiguration: 'production',
197
197
  options: {
198
- outputPath: `dist/${folderName}`,
199
198
  index: `${sourceRoot}/index.html`,
200
199
  browser: `${sourceRoot}/main.ts`,
201
200
  polyfills: options.experimentalZoneless ? [] : ['zone.js'],
@@ -203,7 +202,6 @@ function addAppToWorkspaceFile(options, appDir, folderName) {
203
202
  inlineStyleLanguage,
204
203
  assets: [{ 'glob': '**/*', 'input': `${projectRoot}public` }],
205
204
  styles: [`${sourceRoot}/styles.${options.style}`],
206
- scripts: [],
207
205
  },
208
206
  configurations: {
209
207
  production: {
@@ -243,7 +241,6 @@ function addAppToWorkspaceFile(options, appDir, folderName) {
243
241
  inlineStyleLanguage,
244
242
  assets: [{ 'glob': '**/*', 'input': `${projectRoot}public` }],
245
243
  styles: [`${sourceRoot}/styles.${options.style}`],
246
- scripts: [],
247
244
  },
248
245
  },
249
246
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "20.0.0-next.2",
3
+ "version": "20.0.0-next.3",
4
4
  "description": "Schematics specific to Angular",
5
5
  "homepage": "https://github.com/angular/angular-cli",
6
6
  "keywords": [
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "schematics": "./collection.json",
24
24
  "dependencies": {
25
- "@angular-devkit/core": "20.0.0-next.2",
26
- "@angular-devkit/schematics": "20.0.0-next.2",
25
+ "@angular-devkit/core": "20.0.0-next.3",
26
+ "@angular-devkit/schematics": "20.0.0-next.3",
27
27
  "jsonc-parser": "3.3.1"
28
28
  },
29
29
  "repository": {
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "packageManager": "pnpm@9.15.6",
34
34
  "engines": {
35
- "node": "^20.11.1 || >=22.0.0",
35
+ "node": "^20.11.1 || >=22.11.0",
36
36
  "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
37
37
  "yarn": ">= 1.13.0"
38
38
  },
@@ -5,11 +5,9 @@ import {
5
5
  writeResponseToNodeResponse,
6
6
  } from '@angular/ssr/node';
7
7
  import express from 'express';
8
- import { dirname, resolve } from 'node:path';
9
- import { fileURLToPath } from 'node:url';
8
+ import { join } from 'node:path';
10
9
 
11
- const serverDistFolder = dirname(fileURLToPath(import.meta.url));
12
- const browserDistFolder = resolve(serverDistFolder, '../<%= browserDistDirectory %>');
10
+ const browserDistFolder = join(import.meta.dirname, '../<%= browserDistDirectory %>');
13
11
 
14
12
  const app = express();
15
13
  const angularApp = new AngularNodeAppEngine();
package/ssr/index.js CHANGED
@@ -46,10 +46,9 @@ async function getApplicationBuilderOutputPaths(host, projectName) {
46
46
  if (!architectTarget?.options) {
47
47
  throw new schematics_1.SchematicsException(`Cannot find 'options' for ${projectName} ${target} target.`);
48
48
  }
49
- const { outputPath } = architectTarget.options;
50
- if (outputPath === null || outputPath === undefined) {
51
- throw new schematics_1.SchematicsException(`outputPath for ${projectName} ${target} target is undefined or null.`);
52
- }
49
+ let { outputPath } = architectTarget.options;
50
+ // Use default if not explicitly specified
51
+ outputPath ??= node_path_1.posix.join('dist', projectName);
53
52
  const defaultDirs = {
54
53
  server: DEFAULT_SERVER_DIR,
55
54
  browser: DEFAULT_BROWSER_DIR,
@@ -16,7 +16,7 @@ exports.latestVersions = {
16
16
  // As Angular CLI works with same minor versions of Angular Framework, a tilde match for the current
17
17
  Angular: '^20.0.0-next.0',
18
18
  NgPackagr: '^20.0.0-next.0',
19
- DevkitBuildAngular: '^20.0.0-next.2',
20
- AngularBuild: '^20.0.0-next.2',
21
- AngularSSR: '^20.0.0-next.2',
19
+ DevkitBuildAngular: '^20.0.0-next.3',
20
+ AngularBuild: '^20.0.0-next.3',
21
+ AngularSSR: '^20.0.0-next.3',
22
22
  };
@@ -15,7 +15,6 @@
15
15
  "@angular/core": "<%= latestVersions.Angular %>",
16
16
  "@angular/forms": "<%= latestVersions.Angular %>",
17
17
  "@angular/platform-browser": "<%= latestVersions.Angular %>",
18
- "@angular/platform-browser-dynamic": "<%= latestVersions.Angular %>",
19
18
  "@angular/router": "<%= latestVersions.Angular %>",
20
19
  "rxjs": "<%= latestVersions['rxjs'] %>",
21
20
  "tslib": "<%= latestVersions['tslib'] %>",
@@ -20,6 +20,7 @@
20
20
  "enableI18nLegacyMessageIdFormat": false<% if (strict) { %>,
21
21
  "strictInjectionParameters": true,
22
22
  "strictInputAccessModifiers": true,
23
+ "typeCheckHostBindings": true,
23
24
  "strictTemplates": true<% } %>
24
25
  }
25
26
  }