@schematics/angular 18.1.0-next.0 → 18.1.0-next.2

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.
Files changed (113) hide show
  1. package/app-shell/index.d.ts +1 -1
  2. package/app-shell/index.js +2 -2
  3. package/application/files/common-files/tsconfig.app.json.template +2 -1
  4. package/application/files/common-files/tsconfig.spec.json.template +2 -1
  5. package/application/index.d.ts +1 -1
  6. package/application/index.js +2 -2
  7. package/class/index.d.ts +1 -1
  8. package/class/index.js +2 -2
  9. package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template +1 -1
  10. package/component/index.d.ts +1 -1
  11. package/component/index.js +2 -2
  12. package/config/index.d.ts +1 -1
  13. package/config/index.js +2 -2
  14. package/directive/index.d.ts +1 -1
  15. package/directive/index.js +2 -2
  16. package/e2e/files/tsconfig.json.template +2 -1
  17. package/e2e/index.d.ts +1 -1
  18. package/e2e/index.js +2 -2
  19. package/enum/index.d.ts +1 -1
  20. package/enum/index.js +2 -2
  21. package/environments/index.d.ts +1 -1
  22. package/environments/index.js +2 -2
  23. package/guard/index.d.ts +1 -1
  24. package/guard/index.js +2 -2
  25. package/interceptor/index.d.ts +1 -1
  26. package/interceptor/index.js +2 -2
  27. package/interface/index.d.ts +1 -1
  28. package/interface/index.js +2 -2
  29. package/library/files/tsconfig.lib.json.template +2 -1
  30. package/library/files/tsconfig.lib.prod.json.template +2 -1
  31. package/library/files/tsconfig.spec.json.template +2 -1
  32. package/library/index.d.ts +1 -1
  33. package/library/index.js +2 -2
  34. package/migrations/use-application-builder/css-import-lexer.d.ts +1 -1
  35. package/migrations/use-application-builder/css-import-lexer.js +2 -3
  36. package/migrations/use-application-builder/migration.d.ts +1 -1
  37. package/migrations/use-application-builder/migration.js +2 -2
  38. package/module/index.d.ts +1 -1
  39. package/module/index.js +2 -2
  40. package/ng-new/index.d.ts +1 -1
  41. package/ng-new/index.js +2 -2
  42. package/ng-new/schema.d.ts +1 -1
  43. package/ng-new/schema.json +1 -1
  44. package/package.json +12 -3
  45. package/pipe/index.d.ts +1 -1
  46. package/pipe/index.js +2 -2
  47. package/resolver/index.d.ts +1 -1
  48. package/resolver/index.js +2 -2
  49. package/server/files/root/tsconfig.server.json.template +2 -1
  50. package/server/index.d.ts +1 -1
  51. package/server/index.js +2 -2
  52. package/service/index.d.ts +1 -1
  53. package/service/index.js +2 -2
  54. package/service-worker/index.d.ts +1 -1
  55. package/service-worker/index.js +2 -2
  56. package/ssr/index.d.ts +1 -1
  57. package/ssr/index.js +2 -2
  58. package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +1008 -1413
  59. package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +183622 -179407
  60. package/utility/add-declaration-to-ng-module.d.ts +1 -1
  61. package/utility/add-declaration-to-ng-module.js +2 -3
  62. package/utility/ast-utils.d.ts +1 -1
  63. package/utility/ast-utils.js +18 -19
  64. package/utility/change.d.ts +1 -1
  65. package/utility/change.js +3 -3
  66. package/utility/dependencies.d.ts +1 -1
  67. package/utility/dependencies.js +5 -5
  68. package/utility/dependency.d.ts +1 -1
  69. package/utility/dependency.js +3 -3
  70. package/utility/eol.d.ts +1 -1
  71. package/utility/eol.js +2 -3
  72. package/utility/find-module.d.ts +1 -1
  73. package/utility/find-module.js +5 -5
  74. package/utility/generate-from-files.d.ts +1 -1
  75. package/utility/generate-from-files.js +2 -3
  76. package/utility/index.d.ts +1 -1
  77. package/utility/index.js +1 -1
  78. package/utility/json-file.d.ts +1 -1
  79. package/utility/json-file.js +1 -1
  80. package/utility/latest-versions.d.ts +1 -1
  81. package/utility/latest-versions.js +3 -3
  82. package/utility/ng-ast-utils.d.ts +1 -1
  83. package/utility/ng-ast-utils.js +4 -5
  84. package/utility/parse-name.d.ts +1 -1
  85. package/utility/parse-name.js +2 -3
  86. package/utility/paths.d.ts +1 -1
  87. package/utility/paths.js +2 -3
  88. package/utility/project-targets.d.ts +1 -1
  89. package/utility/project-targets.js +2 -3
  90. package/utility/standalone/app_config.d.ts +1 -1
  91. package/utility/standalone/app_config.js +2 -3
  92. package/utility/standalone/code_block.d.ts +1 -1
  93. package/utility/standalone/code_block.js +1 -1
  94. package/utility/standalone/index.d.ts +1 -1
  95. package/utility/standalone/index.js +1 -1
  96. package/utility/standalone/rules.d.ts +1 -1
  97. package/utility/standalone/rules.js +3 -4
  98. package/utility/standalone/util.d.ts +1 -1
  99. package/utility/standalone/util.js +7 -8
  100. package/utility/validation.d.ts +1 -1
  101. package/utility/validation.js +4 -4
  102. package/utility/workspace-models.d.ts +1 -1
  103. package/utility/workspace-models.js +1 -1
  104. package/utility/workspace.d.ts +1 -1
  105. package/utility/workspace.js +9 -9
  106. package/web-worker/files/worker-tsconfig/tsconfig.worker.json.template +1 -1
  107. package/web-worker/index.d.ts +1 -1
  108. package/web-worker/index.js +2 -2
  109. package/workspace/files/tsconfig.json.template +2 -2
  110. package/workspace/index.d.ts +1 -1
  111. package/workspace/index.js +2 -2
  112. package/workspace/schema.d.ts +1 -1
  113. package/workspace/schema.json +1 -1
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { Rule } from '@angular-devkit/schematics';
9
9
  export interface DeclarationToNgModuleOptions {
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -30,7 +30,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  return result;
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.addDeclarationToNgModule = void 0;
33
+ exports.addDeclarationToNgModule = addDeclarationToNgModule;
34
34
  const schematics_1 = require("@angular-devkit/schematics");
35
35
  const ts = __importStar(require("../third_party/github.com/Microsoft/TypeScript/lib/typescript"));
36
36
  const ast_utils_1 = require("./ast-utils");
@@ -65,4 +65,3 @@ function addDeclarationToNgModule(options) {
65
65
  return host;
66
66
  };
67
67
  }
68
- exports.addDeclarationToNgModule = addDeclarationToNgModule;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import * as ts from '../third_party/github.com/Microsoft/TypeScript/lib/typescript';
9
9
  import { Change } from './change';
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -30,7 +30,23 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  return result;
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.hasTopLevelIdentifier = exports.addRouteDeclarationToModule = exports.getRouterModuleDeclaration = exports.isImported = exports.addBootstrapToModule = exports.addExportToModule = exports.addProviderToModule = exports.addImportToModule = exports.addDeclarationToModule = exports.addSymbolToNgModuleMetadata = exports.getMetadataField = exports.getDecoratorMetadata = exports.insertAfterLastOccurrence = exports.findNode = exports.getSourceNodes = exports.findNodes = exports.insertImport = void 0;
33
+ exports.insertImport = insertImport;
34
+ exports.findNodes = findNodes;
35
+ exports.getSourceNodes = getSourceNodes;
36
+ exports.findNode = findNode;
37
+ exports.insertAfterLastOccurrence = insertAfterLastOccurrence;
38
+ exports.getDecoratorMetadata = getDecoratorMetadata;
39
+ exports.getMetadataField = getMetadataField;
40
+ exports.addSymbolToNgModuleMetadata = addSymbolToNgModuleMetadata;
41
+ exports.addDeclarationToModule = addDeclarationToModule;
42
+ exports.addImportToModule = addImportToModule;
43
+ exports.addProviderToModule = addProviderToModule;
44
+ exports.addExportToModule = addExportToModule;
45
+ exports.addBootstrapToModule = addBootstrapToModule;
46
+ exports.isImported = isImported;
47
+ exports.getRouterModuleDeclaration = getRouterModuleDeclaration;
48
+ exports.addRouteDeclarationToModule = addRouteDeclarationToModule;
49
+ exports.hasTopLevelIdentifier = hasTopLevelIdentifier;
34
50
  const core_1 = require("@angular-devkit/core");
35
51
  const ts = __importStar(require("../third_party/github.com/Microsoft/TypeScript/lib/typescript"));
36
52
  const change_1 = require("./change");
@@ -90,7 +106,6 @@ function insertImport(source, fileToEdit, symbolName, fileName, isDefault = fals
90
106
  ` from '${fileName}'${insertAtBeginning ? `;${eol}` : ''}`;
91
107
  return insertAfterLastOccurrence(allImports, toInsert, fileToEdit, fallbackPos, ts.SyntaxKind.StringLiteral);
92
108
  }
93
- exports.insertImport = insertImport;
94
109
  function findNodes(node, kindOrGuard, max = Infinity, recursive = false) {
95
110
  if (!node || max == 0) {
96
111
  return [];
@@ -118,7 +133,6 @@ function findNodes(node, kindOrGuard, max = Infinity, recursive = false) {
118
133
  }
119
134
  return arr;
120
135
  }
121
- exports.findNodes = findNodes;
122
136
  /**
123
137
  * Get all the nodes from a source.
124
138
  * @param sourceFile The source file object.
@@ -138,7 +152,6 @@ function getSourceNodes(sourceFile) {
138
152
  }
139
153
  return result;
140
154
  }
141
- exports.getSourceNodes = getSourceNodes;
142
155
  function findNode(node, kind, text) {
143
156
  if (node.kind === kind && node.getText() === text) {
144
157
  return node;
@@ -149,7 +162,6 @@ function findNode(node, kind, text) {
149
162
  });
150
163
  return foundNode;
151
164
  }
152
- exports.findNode = findNode;
153
165
  /**
154
166
  * Helper for sorting nodes.
155
167
  * @return function to sort nodes in increasing order of position in sourceFile
@@ -186,7 +198,6 @@ function insertAfterLastOccurrence(nodes, toInsert, file, fallbackPos, syntaxKin
186
198
  const lastItemPosition = lastItem ? lastItem.getEnd() : fallbackPos;
187
199
  return new change_1.InsertChange(file, lastItemPosition, toInsert);
188
200
  }
189
- exports.insertAfterLastOccurrence = insertAfterLastOccurrence;
190
201
  function _angularImportsFromNode(node) {
191
202
  const ms = node.moduleSpecifier;
192
203
  let modulePath;
@@ -267,7 +278,6 @@ function getDecoratorMetadata(source, identifier, module) {
267
278
  .filter((expr) => expr.arguments[0] && expr.arguments[0].kind == ts.SyntaxKind.ObjectLiteralExpression)
268
279
  .map((expr) => expr.arguments[0]);
269
280
  }
270
- exports.getDecoratorMetadata = getDecoratorMetadata;
271
281
  function getMetadataField(node, metadataField) {
272
282
  return (node.properties
273
283
  .filter(ts.isPropertyAssignment)
@@ -277,7 +287,6 @@ function getMetadataField(node, metadataField) {
277
287
  return (ts.isIdentifier(name) || ts.isStringLiteral(name)) && name.text === metadataField;
278
288
  }));
279
289
  }
280
- exports.getMetadataField = getMetadataField;
281
290
  function addSymbolToNgModuleMetadata(source, ngModulePath, metadataField, symbolName, importPath = null) {
282
291
  const nodes = getDecoratorMetadata(source, 'NgModule', '@angular/core');
283
292
  const node = nodes[0];
@@ -365,7 +374,6 @@ function addSymbolToNgModuleMetadata(source, ngModulePath, metadataField, symbol
365
374
  }
366
375
  return [new change_1.InsertChange(ngModulePath, position, toInsert)];
367
376
  }
368
- exports.addSymbolToNgModuleMetadata = addSymbolToNgModuleMetadata;
369
377
  /**
370
378
  * Custom function to insert a declaration (component, pipe, directive)
371
379
  * into NgModule declarations. It also imports the component.
@@ -373,35 +381,30 @@ exports.addSymbolToNgModuleMetadata = addSymbolToNgModuleMetadata;
373
381
  function addDeclarationToModule(source, modulePath, classifiedName, importPath) {
374
382
  return addSymbolToNgModuleMetadata(source, modulePath, 'declarations', classifiedName, importPath);
375
383
  }
376
- exports.addDeclarationToModule = addDeclarationToModule;
377
384
  /**
378
385
  * Custom function to insert an NgModule into NgModule imports. It also imports the module.
379
386
  */
380
387
  function addImportToModule(source, modulePath, classifiedName, importPath) {
381
388
  return addSymbolToNgModuleMetadata(source, modulePath, 'imports', classifiedName, importPath);
382
389
  }
383
- exports.addImportToModule = addImportToModule;
384
390
  /**
385
391
  * Custom function to insert a provider into NgModule. It also imports it.
386
392
  */
387
393
  function addProviderToModule(source, modulePath, classifiedName, importPath) {
388
394
  return addSymbolToNgModuleMetadata(source, modulePath, 'providers', classifiedName, importPath);
389
395
  }
390
- exports.addProviderToModule = addProviderToModule;
391
396
  /**
392
397
  * Custom function to insert an export into NgModule. It also imports it.
393
398
  */
394
399
  function addExportToModule(source, modulePath, classifiedName, importPath) {
395
400
  return addSymbolToNgModuleMetadata(source, modulePath, 'exports', classifiedName, importPath);
396
401
  }
397
- exports.addExportToModule = addExportToModule;
398
402
  /**
399
403
  * Custom function to insert an export into NgModule. It also imports it.
400
404
  */
401
405
  function addBootstrapToModule(source, modulePath, classifiedName, importPath) {
402
406
  return addSymbolToNgModuleMetadata(source, modulePath, 'bootstrap', classifiedName, importPath);
403
407
  }
404
- exports.addBootstrapToModule = addBootstrapToModule;
405
408
  /**
406
409
  * Determine if an import already exists.
407
410
  */
@@ -419,7 +422,6 @@ function isImported(source, classifiedName, importPath) {
419
422
  });
420
423
  return matchingNodes.length > 0;
421
424
  }
422
- exports.isImported = isImported;
423
425
  /**
424
426
  * Returns the RouterModule declaration from NgModule metadata, if any.
425
427
  */
@@ -442,7 +444,6 @@ function getRouterModuleDeclaration(source) {
442
444
  .filter((el) => el.kind === ts.SyntaxKind.CallExpression)
443
445
  .find((el) => el.getText().startsWith('RouterModule'));
444
446
  }
445
- exports.getRouterModuleDeclaration = getRouterModuleDeclaration;
446
447
  /**
447
448
  * Adds a new route declaration to a router module (i.e. has a RouterModule declaration)
448
449
  */
@@ -506,7 +507,6 @@ function addRouteDeclarationToModule(source, fileToAdd, routeLiteral) {
506
507
  }
507
508
  return new change_1.InsertChange(fileToAdd, insertPos, route);
508
509
  }
509
- exports.addRouteDeclarationToModule = addRouteDeclarationToModule;
510
510
  /** Asserts if the specified node is a named declaration (e.g. class, interface). */
511
511
  function isNamedNode(node) {
512
512
  return !!node.name && ts.isIdentifier(node.name);
@@ -541,4 +541,3 @@ function hasTopLevelIdentifier(sourceFile, symbolName, skipModule = null) {
541
541
  }
542
542
  return false;
543
543
  }
544
- exports.hasTopLevelIdentifier = hasTopLevelIdentifier;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { UpdateRecorder } from '@angular-devkit/schematics';
9
9
  export interface Host {
package/utility/change.js CHANGED
@@ -4,10 +4,11 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.applyToUpdateRecorder = exports.ReplaceChange = exports.RemoveChange = exports.InsertChange = exports.NoopChange = void 0;
10
+ exports.ReplaceChange = exports.RemoveChange = exports.InsertChange = exports.NoopChange = void 0;
11
+ exports.applyToUpdateRecorder = applyToUpdateRecorder;
11
12
  /**
12
13
  * An operation that does nothing.
13
14
  */
@@ -132,4 +133,3 @@ function applyToUpdateRecorder(recorder, changes) {
132
133
  }
133
134
  }
134
135
  }
135
- exports.applyToUpdateRecorder = applyToUpdateRecorder;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { Tree } from '@angular-devkit/schematics';
9
9
  export declare enum NodeDependencyType {
@@ -4,10 +4,13 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.getPackageJsonDependency = exports.removePackageJsonDependency = exports.addPackageJsonDependency = exports.NodeDependencyType = void 0;
10
+ exports.NodeDependencyType = void 0;
11
+ exports.addPackageJsonDependency = addPackageJsonDependency;
12
+ exports.removePackageJsonDependency = removePackageJsonDependency;
13
+ exports.getPackageJsonDependency = getPackageJsonDependency;
11
14
  const json_file_1 = require("./json-file");
12
15
  const PKG_JSON_PATH = '/package.json';
13
16
  var NodeDependencyType;
@@ -31,14 +34,12 @@ function addPackageJsonDependency(tree, dependency, pkgJsonPath = PKG_JSON_PATH)
31
34
  json.modify(path, version);
32
35
  }
33
36
  }
34
- exports.addPackageJsonDependency = addPackageJsonDependency;
35
37
  function removePackageJsonDependency(tree, name, pkgJsonPath = PKG_JSON_PATH) {
36
38
  const json = new json_file_1.JSONFile(tree, pkgJsonPath);
37
39
  for (const depType of ALL_DEPENDENCY_TYPE) {
38
40
  json.remove([depType, name]);
39
41
  }
40
42
  }
41
- exports.removePackageJsonDependency = removePackageJsonDependency;
42
43
  function getPackageJsonDependency(tree, name, pkgJsonPath = PKG_JSON_PATH) {
43
44
  const json = new json_file_1.JSONFile(tree, pkgJsonPath);
44
45
  for (const depType of ALL_DEPENDENCY_TYPE) {
@@ -53,4 +54,3 @@ function getPackageJsonDependency(tree, name, pkgJsonPath = PKG_JSON_PATH) {
53
54
  }
54
55
  return null;
55
56
  }
56
- exports.getPackageJsonDependency = getPackageJsonDependency;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { Rule } from '@angular-devkit/schematics';
9
9
  /**
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -30,7 +30,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  return result;
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.addDependency = exports.ExistingBehavior = exports.InstallBehavior = exports.DependencyType = void 0;
33
+ exports.ExistingBehavior = exports.InstallBehavior = exports.DependencyType = void 0;
34
+ exports.addDependency = addDependency;
34
35
  const tasks_1 = require("@angular-devkit/schematics/tasks");
35
36
  const path = __importStar(require("path"));
36
37
  const installTasks = new WeakMap();
@@ -142,4 +143,3 @@ function addDependency(name, specifier, options = {}) {
142
143
  }
143
144
  };
144
145
  }
145
- exports.addDependency = addDependency;
package/utility/eol.d.ts CHANGED
@@ -3,6 +3,6 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  export declare function getEOL(content: string): string;
package/utility/eol.js CHANGED
@@ -4,10 +4,10 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.getEOL = void 0;
10
+ exports.getEOL = getEOL;
11
11
  const node_os_1 = require("node:os");
12
12
  const CRLF = '\r\n';
13
13
  const LF = '\n';
@@ -20,4 +20,3 @@ function getEOL(content) {
20
20
  }
21
21
  return node_os_1.EOL;
22
22
  }
23
- exports.getEOL = getEOL;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { Path } from '@angular-devkit/core';
9
9
  import { Tree } from '@angular-devkit/schematics';
@@ -4,10 +4,13 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.buildRelativePath = exports.findModule = exports.findModuleFromOptions = exports.ROUTING_MODULE_EXT = exports.MODULE_EXT = void 0;
10
+ exports.ROUTING_MODULE_EXT = exports.MODULE_EXT = void 0;
11
+ exports.findModuleFromOptions = findModuleFromOptions;
12
+ exports.findModule = findModule;
13
+ exports.buildRelativePath = buildRelativePath;
11
14
  const core_1 = require("@angular-devkit/core");
12
15
  exports.MODULE_EXT = '.module.ts';
13
16
  exports.ROUTING_MODULE_EXT = '-routing.module.ts';
@@ -48,7 +51,6 @@ function findModuleFromOptions(host, options) {
48
51
  `Looked in the following directories:\n ${candidatesDirs.join('\n ')}`);
49
52
  }
50
53
  }
51
- exports.findModuleFromOptions = findModuleFromOptions;
52
54
  /**
53
55
  * Function to find the "closest" module to a generated file's path.
54
56
  */
@@ -75,7 +77,6 @@ function findModule(host, generateDir, moduleExt = exports.MODULE_EXT, routingMo
75
77
  : `Could not find an NgModule. Use the '--skip-import' option to skip importing in NgModule.`;
76
78
  throw new Error(errorMsg);
77
79
  }
78
- exports.findModule = findModule;
79
80
  /**
80
81
  * Build a relative path from one file path to another file path.
81
82
  */
@@ -102,4 +103,3 @@ function buildRelativePath(from, to) {
102
103
  }
103
104
  return pathPrefix + (relativePath ? relativePath + '/' : '') + toFileName;
104
105
  }
105
- exports.buildRelativePath = buildRelativePath;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { Rule } from '@angular-devkit/schematics';
9
9
  export interface GenerateFromFilesOptions {
@@ -4,10 +4,10 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.generateFromFiles = void 0;
10
+ exports.generateFromFiles = generateFromFiles;
11
11
  const schematics_1 = require("@angular-devkit/schematics");
12
12
  const parse_name_1 = require("./parse-name");
13
13
  const validation_1 = require("./validation");
@@ -34,4 +34,3 @@ function generateFromFiles(options, extraTemplateValues = {}) {
34
34
  return (0, schematics_1.chain)([(0, schematics_1.mergeWith)(templateSource)]);
35
35
  };
36
36
  }
37
- exports.generateFromFiles = generateFromFiles;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  export { ProjectDefinition, TargetDefinition, WorkspaceDefinition, getWorkspace as readWorkspace, updateWorkspace, writeWorkspace, } from './workspace';
9
9
  export { Builders as AngularBuilder } from './workspace-models';
package/utility/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { JsonValue } from '@angular-devkit/core';
9
9
  import { Tree } from '@angular-devkit/schematics';
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.JSONFile = void 0;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  export declare const latestVersions: Record<string, string> & {
9
9
  Angular: string;
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.latestVersions = void 0;
@@ -15,6 +15,6 @@ 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: '^18.1.0-next.0',
19
- AngularSSR: '^18.1.0-next.0',
18
+ DevkitBuildAngular: '^18.1.0-next.2',
19
+ AngularSSR: '^18.1.0-next.2',
20
20
  };
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { Tree } from '@angular-devkit/schematics';
9
9
  import * as ts from '../third_party/github.com/Microsoft/TypeScript/lib/typescript';
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -30,7 +30,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  return result;
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.isStandaloneApp = exports.getAppModulePath = exports.findBootstrapModuleCall = void 0;
33
+ exports.findBootstrapModuleCall = findBootstrapModuleCall;
34
+ exports.getAppModulePath = getAppModulePath;
35
+ exports.isStandaloneApp = isStandaloneApp;
34
36
  const schematics_1 = require("@angular-devkit/schematics");
35
37
  const posix_1 = require("node:path/posix");
36
38
  const ts = __importStar(require("../third_party/github.com/Microsoft/TypeScript/lib/typescript"));
@@ -59,7 +61,6 @@ function findBootstrapModuleCall(host, mainPath) {
59
61
  }
60
62
  return bootstrapCall;
61
63
  }
62
- exports.findBootstrapModuleCall = findBootstrapModuleCall;
63
64
  function findBootstrapModulePath(host, mainPath) {
64
65
  const bootstrapCall = findBootstrapModuleCall(host, mainPath);
65
66
  if (!bootstrapCall) {
@@ -86,7 +87,6 @@ function getAppModulePath(host, mainPath) {
86
87
  const modulePath = (0, posix_1.join)(mainDir, `${moduleRelativePath}.ts`);
87
88
  return modulePath;
88
89
  }
89
- exports.getAppModulePath = getAppModulePath;
90
90
  function isStandaloneApp(host, mainPath) {
91
91
  try {
92
92
  (0, util_1.findBootstrapApplicationCall)(host, mainPath);
@@ -99,4 +99,3 @@ function isStandaloneApp(host, mainPath) {
99
99
  throw error;
100
100
  }
101
101
  }
102
- exports.isStandaloneApp = isStandaloneApp;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { Path } from '@angular-devkit/core';
9
9
  export interface Location {
@@ -4,10 +4,10 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.parseName = void 0;
10
+ exports.parseName = parseName;
11
11
  const core_1 = require("@angular-devkit/core");
12
12
  function parseName(path, name) {
13
13
  const nameWithoutPath = (0, core_1.basename)((0, core_1.normalize)(name));
@@ -17,4 +17,3 @@ function parseName(path, name) {
17
17
  path: (0, core_1.normalize)('/' + namePath),
18
18
  };
19
19
  }
20
- exports.parseName = parseName;
@@ -3,6 +3,6 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  export declare function relativePathToWorkspaceRoot(projectRoot: string | undefined): string;
package/utility/paths.js CHANGED
@@ -4,10 +4,10 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.relativePathToWorkspaceRoot = void 0;
10
+ exports.relativePathToWorkspaceRoot = relativePathToWorkspaceRoot;
11
11
  const posix_1 = require("node:path/posix");
12
12
  function relativePathToWorkspaceRoot(projectRoot) {
13
13
  if (!projectRoot) {
@@ -15,4 +15,3 @@ function relativePathToWorkspaceRoot(projectRoot) {
15
15
  }
16
16
  return (0, posix_1.relative)((0, posix_1.join)('/', projectRoot), '/') || '.';
17
17
  }
18
- exports.relativePathToWorkspaceRoot = relativePathToWorkspaceRoot;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { SchematicsException } from '@angular-devkit/schematics';
9
9
  export declare function targetBuildNotFoundError(): SchematicsException;
@@ -4,12 +4,11 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.targetBuildNotFoundError = void 0;
10
+ exports.targetBuildNotFoundError = targetBuildNotFoundError;
11
11
  const schematics_1 = require("@angular-devkit/schematics");
12
12
  function targetBuildNotFoundError() {
13
13
  return new schematics_1.SchematicsException(`Project target "build" not found.`);
14
14
  }
15
- exports.targetBuildNotFoundError = targetBuildNotFoundError;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { Tree } from '@angular-devkit/schematics';
9
9
  import ts from '../../third_party/github.com/Microsoft/TypeScript/lib/typescript';