@schematics/angular 19.1.5 → 19.1.7

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.
@@ -3,8 +3,7 @@ import { <% if(changeDetection !== 'Default') { %>ChangeDetectionStrategy, <% }%
3
3
  @Component({<% if(!skipSelector) {%>
4
4
  selector: '<%= selector %>',<%}%><% if(standalone) {%>
5
5
  imports: [],<%} else { %>
6
- standalone: false,
7
- <% }%><% if(inlineTemplate) { %>
6
+ standalone: false,<% }%><% if(inlineTemplate) { %>
8
7
  template: `
9
8
  <p>
10
9
  <%= dasherize(name) %> works!
@@ -42,6 +42,7 @@ var __importStar = (this && this.__importStar) || (function () {
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.default = default_1;
44
44
  const ts = __importStar(require("../../third_party/github.com/Microsoft/TypeScript/lib/typescript"));
45
+ const dependencies_1 = require("../../utility/dependencies");
45
46
  function* visit(directory) {
46
47
  for (const path of directory.subfiles) {
47
48
  if (path.endsWith('.ts') && !path.endsWith('.d.ts')) {
@@ -70,6 +71,9 @@ function* visit(directory) {
70
71
  */
71
72
  function default_1() {
72
73
  return (tree) => {
74
+ if (!(0, dependencies_1.getPackageJsonDependency)(tree, '@angular/ssr')) {
75
+ return;
76
+ }
73
77
  for (const sourceFile of visit(tree.root)) {
74
78
  let recorder;
75
79
  const allImportDeclarations = sourceFile.statements.filter((n) => ts.isImportDeclaration(n));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "19.1.5",
3
+ "version": "19.1.7",
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": "19.1.5",
26
- "@angular-devkit/schematics": "19.1.5",
25
+ "@angular-devkit/core": "19.1.7",
26
+ "@angular-devkit/schematics": "19.1.7",
27
27
  "jsonc-parser": "3.3.1"
28
28
  },
29
29
  "repository": {
@@ -61,6 +61,6 @@ if (isMainModule(import.meta.url)) {
61
61
  }
62
62
 
63
63
  /**
64
- * The request handler used by the Angular CLI (dev-server and during build).
64
+ * Request handler used by the Angular CLI (for dev-server and during build) or Firebase Cloud Functions.
65
65
  */
66
66
  export const reqHandler = createNodeRequestHandler(app);
@@ -63,3 +63,5 @@ if (isMainModule(import.meta.url)) {
63
63
  console.log(`Node Express server listening on http://localhost:${port}`);
64
64
  });
65
65
  }
66
+
67
+ export default app;
@@ -15,7 +15,7 @@ exports.latestVersions = {
15
15
  ...dependencies,
16
16
  // As Angular CLI works with same minor versions of Angular Framework, a tilde match for the current
17
17
  Angular: dependencies['@angular/core'],
18
- DevkitBuildAngular: '^19.1.5',
19
- AngularBuild: '^19.1.5',
20
- AngularSSR: '^19.1.5',
18
+ DevkitBuildAngular: '^19.1.7',
19
+ AngularBuild: '^19.1.7',
20
+ AngularSSR: '^19.1.7',
21
21
  };