@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
  import { Schema } from './schema';
package/resolver/index.js CHANGED
@@ -4,13 +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.default = default_1;
10
11
  const generate_from_files_1 = require("../utility/generate-from-files");
11
12
  function default_1(options) {
12
13
  return options.functional
13
14
  ? (0, generate_from_files_1.generateFromFiles)({ ...options, templateFilesDirectory: './functional-files' })
14
15
  : (0, generate_from_files_1.generateFromFiles)({ ...options, templateFilesDirectory: './class-files' });
15
16
  }
16
- exports.default = default_1;
@@ -1,4 +1,5 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
2
3
  {
3
4
  "extends": "./<%= tsConfigExtends %>",
4
5
  "compilerOptions": {
package/server/index.d.ts CHANGED
@@ -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
  import { Schema as ServerOptions } from './schema';
package/server/index.js CHANGED
@@ -4,9 +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.default = default_1;
10
11
  const core_1 = require("@angular-devkit/core");
11
12
  const schematics_1 = require("@angular-devkit/schematics");
12
13
  const node_path_1 = require("node:path");
@@ -177,4 +178,3 @@ function default_1(options) {
177
178
  ]);
178
179
  };
179
180
  }
180
- exports.default = default_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
  import { Schema as ServiceOptions } from './schema';
package/service/index.js CHANGED
@@ -4,9 +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.default = default_1;
10
11
  const generate_from_files_1 = require("../utility/generate-from-files");
11
12
  function default_1(options) {
12
13
  // This schematic uses an older method to implement the flat option
@@ -16,4 +17,3 @@ function default_1(options) {
16
17
  'if-flat': (s) => (flat ? '' : s),
17
18
  });
18
19
  }
19
- exports.default = default_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
  import { Schema as ServiceWorkerOptions } from './schema';
@@ -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,6 +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.default = default_1;
33
34
  const core_1 = require("@angular-devkit/core");
34
35
  const schematics_1 = require("@angular-devkit/schematics");
35
36
  const ts = __importStar(require("../third_party/github.com/Microsoft/TypeScript/lib/typescript"));
@@ -139,7 +140,6 @@ function default_1(options) {
139
140
  ]);
140
141
  };
141
142
  }
142
- exports.default = default_1;
143
143
  function addImport(host, filePath, symbolName, moduleName) {
144
144
  const moduleSource = getTsSourceFile(host, filePath);
145
145
  const change = (0, ast_utils_1.insertImport)(moduleSource, filePath, symbolName, moduleName);
package/ssr/index.d.ts CHANGED
@@ -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
  import { Schema as SSROptions } from './schema';
package/ssr/index.js CHANGED
@@ -4,9 +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.default = default_1;
10
11
  const core_1 = require("@angular-devkit/core");
11
12
  const schematics_1 = require("@angular-devkit/schematics");
12
13
  const node_path_1 = require("node:path");
@@ -298,7 +299,6 @@ function default_1(options) {
298
299
  ]);
299
300
  };
300
301
  }
301
- exports.default = default_1;
302
302
  function usingApplicationBuilder(project) {
303
303
  const buildBuilder = project.targets.get('build')?.builder;
304
304
  const isUsingApplicationBuilder = buildBuilder === workspace_models_1.Builders.Application || buildBuilder === workspace_models_1.Builders.BuildApplication;