@schematics/angular 18.0.3 → 18.1.0-next.1

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 (48) hide show
  1. package/app-shell/index.js +1 -1
  2. package/application/index.js +1 -1
  3. package/class/index.js +1 -1
  4. package/component/index.js +1 -1
  5. package/config/index.js +1 -1
  6. package/directive/index.js +1 -1
  7. package/e2e/index.js +1 -1
  8. package/enum/index.js +1 -1
  9. package/environments/index.js +1 -1
  10. package/guard/index.js +1 -1
  11. package/interceptor/index.js +1 -1
  12. package/interface/index.js +1 -1
  13. package/library/index.js +1 -1
  14. package/migrations/use-application-builder/css-import-lexer.js +1 -2
  15. package/migrations/use-application-builder/migration.js +1 -1
  16. package/module/index.js +1 -1
  17. package/ng-new/index.js +1 -1
  18. package/package.json +3 -3
  19. package/pipe/index.js +1 -1
  20. package/resolver/index.js +1 -1
  21. package/server/index.js +1 -1
  22. package/service/index.js +1 -1
  23. package/service-worker/index.js +1 -1
  24. package/ssr/index.js +1 -1
  25. package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +860 -1340
  26. package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +183192 -179327
  27. package/utility/add-declaration-to-ng-module.js +1 -2
  28. package/utility/ast-utils.js +17 -18
  29. package/utility/change.js +2 -2
  30. package/utility/dependencies.js +4 -4
  31. package/utility/dependency.js +2 -2
  32. package/utility/eol.js +1 -2
  33. package/utility/find-module.js +4 -4
  34. package/utility/generate-from-files.js +1 -2
  35. package/utility/latest-versions/package.json +1 -1
  36. package/utility/latest-versions.js +2 -2
  37. package/utility/ng-ast-utils.js +3 -4
  38. package/utility/parse-name.js +1 -2
  39. package/utility/paths.js +1 -2
  40. package/utility/project-targets.js +1 -2
  41. package/utility/standalone/app_config.js +1 -2
  42. package/utility/standalone/rules.js +2 -3
  43. package/utility/standalone/util.js +6 -7
  44. package/utility/validation.js +3 -3
  45. package/utility/workspace.js +8 -8
  46. package/web-worker/index.js +1 -1
  47. package/workspace/files/tsconfig.json.template +0 -1
  48. package/workspace/index.js +1 -1
@@ -10,6 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  return (mod && mod.__esModule) ? mod : { "default": mod };
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.default = default_1;
13
14
  const schematics_1 = require("@angular-devkit/schematics");
14
15
  const posix_1 = require("node:path/posix");
15
16
  const typescript_1 = __importDefault(require("../third_party/github.com/Microsoft/TypeScript/lib/typescript"));
@@ -293,4 +294,3 @@ function default_1(options) {
293
294
  ]);
294
295
  };
295
296
  }
296
- exports.default = default_1;
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/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 tasks_1 = require("@angular-devkit/schematics/tasks");
@@ -84,7 +85,6 @@ function default_1(options) {
84
85
  ]);
85
86
  };
86
87
  }
87
- exports.default = default_1;
88
88
  function addDependenciesToPackageJson(options) {
89
89
  return (host, context) => {
90
90
  [
package/class/index.js CHANGED
@@ -7,9 +7,9 @@
7
7
  * found in the LICENSE file at https://angular.io/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
  options.type = options.type ? `.${options.type}` : '';
13
14
  return (0, generate_from_files_1.generateFromFiles)(options);
14
15
  }
15
- exports.default = default_1;
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.default = default_1;
10
11
  const schematics_1 = require("@angular-devkit/schematics");
11
12
  const add_declaration_to_ng_module_1 = require("../utility/add-declaration-to-ng-module");
12
13
  const find_module_1 = require("../utility/find-module");
@@ -72,4 +73,3 @@ function default_1(options) {
72
73
  ]);
73
74
  };
74
75
  }
75
- exports.default = default_1;
package/config/index.js CHANGED
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.default = default_1;
10
11
  const schematics_1 = require("@angular-devkit/schematics");
11
12
  const utility_1 = require("@schematics/angular/utility");
12
13
  const path_1 = require("path");
@@ -22,7 +23,6 @@ function default_1(options) {
22
23
  throw new schematics_1.SchematicsException(`"${options.type}" is an unknown configuration file type.`);
23
24
  }
24
25
  }
25
- exports.default = default_1;
26
26
  function addBrowserslistConfig(options) {
27
27
  return async (host) => {
28
28
  const workspace = await (0, utility_1.readWorkspace)(host);
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.default = default_1;
10
11
  const schematics_1 = require("@angular-devkit/schematics");
11
12
  const add_declaration_to_ng_module_1 = require("../utility/add-declaration-to-ng-module");
12
13
  const find_module_1 = require("../utility/find-module");
@@ -57,4 +58,3 @@ function default_1(options) {
57
58
  ]);
58
59
  };
59
60
  }
60
- exports.default = default_1;
package/e2e/index.js CHANGED
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.default = default_1;
10
11
  const schematics_1 = require("@angular-devkit/schematics");
11
12
  const utility_1 = require("@schematics/angular/utility");
12
13
  const path_1 = require("path");
@@ -74,4 +75,3 @@ function default_1(options) {
74
75
  ]);
75
76
  });
76
77
  }
77
- exports.default = default_1;
package/enum/index.js CHANGED
@@ -7,9 +7,9 @@
7
7
  * found in the LICENSE file at https://angular.io/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
  options.type = options.type ? `.${options.type}` : '';
13
14
  return (0, generate_from_files_1.generateFromFiles)(options);
14
15
  }
15
- exports.default = default_1;
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.default = default_1;
10
11
  const schematics_1 = require("@angular-devkit/schematics");
11
12
  const utility_1 = require("@schematics/angular/utility");
12
13
  const path_1 = require("path");
@@ -38,7 +39,6 @@ function default_1(options) {
38
39
  ]);
39
40
  });
40
41
  }
41
- exports.default = default_1;
42
42
  function createIfMissing(path) {
43
43
  return (tree, context) => {
44
44
  if (tree.exists(path)) {
package/guard/index.js CHANGED
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.default = default_1;
10
11
  const schematics_1 = require("@angular-devkit/schematics");
11
12
  const generate_from_files_1 = require("../utility/generate-from-files");
12
13
  const schema_1 = require("./schema");
@@ -44,4 +45,3 @@ function default_1(options) {
44
45
  });
45
46
  }
46
47
  }
47
- exports.default = default_1;
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/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
@@ -19,4 +20,3 @@ function default_1(options) {
19
20
  ? (0, generate_from_files_1.generateFromFiles)({ ...options, templateFilesDirectory: './functional-files' }, extraTemplateValues)
20
21
  : (0, generate_from_files_1.generateFromFiles)({ ...options, templateFilesDirectory: './class-files' }, extraTemplateValues);
21
22
  }
22
- exports.default = default_1;
@@ -7,9 +7,9 @@
7
7
  * found in the LICENSE file at https://angular.io/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
  options.type = options.type ? `.${options.type}` : '';
13
14
  return (0, generate_from_files_1.generateFromFiles)(options);
14
15
  }
15
- exports.default = default_1;
package/library/index.js CHANGED
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.default = default_1;
10
11
  const schematics_1 = require("@angular-devkit/schematics");
11
12
  const tasks_1 = require("@angular-devkit/schematics/tasks");
12
13
  const posix_1 = require("node:path/posix");
@@ -168,4 +169,3 @@ function default_1(options) {
168
169
  ]);
169
170
  };
170
171
  }
171
- exports.default = default_1;
@@ -7,7 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.findImports = void 0;
10
+ exports.findImports = findImports;
11
11
  /**
12
12
  * Determines if a unicode code point is a CSS whitespace character.
13
13
  * @param code The unicode code point to test.
@@ -40,7 +40,6 @@ function* findImports(contents, sass) {
40
40
  }
41
41
  }
42
42
  }
43
- exports.findImports = findImports;
44
43
  /**
45
44
  * Scans a CSS or Sass file and locates all valid function/directive values as defined by the
46
45
  * syntax specification.
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.default = default_1;
10
11
  const schematics_1 = require("@angular-devkit/schematics");
11
12
  const posix_1 = require("node:path/posix");
12
13
  const dependencies_1 = require("../../utility/dependencies");
@@ -361,4 +362,3 @@ function default_1() {
361
362
  }),
362
363
  ]);
363
364
  }
364
- exports.default = default_1;
package/module/index.js CHANGED
@@ -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 schematics_1 = require("@angular-devkit/schematics");
34
35
  const posix_1 = require("node:path/posix");
35
36
  const ts = __importStar(require("../third_party/github.com/Microsoft/TypeScript/lib/typescript"));
@@ -149,4 +150,3 @@ function default_1(options) {
149
150
  ]);
150
151
  };
151
152
  }
152
- exports.default = default_1;
package/ng-new/index.js CHANGED
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.default = default_1;
10
11
  const schematics_1 = require("@angular-devkit/schematics");
11
12
  const tasks_1 = require("@angular-devkit/schematics/tasks");
12
13
  function default_1(options) {
@@ -61,4 +62,3 @@ function default_1(options) {
61
62
  },
62
63
  ]);
63
64
  }
64
- exports.default = default_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "18.0.3",
3
+ "version": "18.1.0-next.1",
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": "18.0.3",
26
- "@angular-devkit/schematics": "18.0.3",
25
+ "@angular-devkit/core": "18.1.0-next.1",
26
+ "@angular-devkit/schematics": "18.1.0-next.1",
27
27
  "jsonc-parser": "3.2.1"
28
28
  },
29
29
  "repository": {
package/pipe/index.js CHANGED
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.default = default_1;
10
11
  const schematics_1 = require("@angular-devkit/schematics");
11
12
  const add_declaration_to_ng_module_1 = require("../utility/add-declaration-to-ng-module");
12
13
  const find_module_1 = require("../utility/find-module");
@@ -39,4 +40,3 @@ function default_1(options) {
39
40
  ]);
40
41
  };
41
42
  }
42
- exports.default = default_1;
package/resolver/index.js CHANGED
@@ -7,10 +7,10 @@
7
7
  * found in the LICENSE file at https://angular.io/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;
package/server/index.js CHANGED
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/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;
package/service/index.js CHANGED
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/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;
@@ -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.js CHANGED
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/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;