@schematics/angular 20.0.0-next.7 → 20.0.0-next.8

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.
@@ -9,6 +9,9 @@
9
9
  "inlineSources": true,
10
10
  "types": []
11
11
  },
12
+ "include": [
13
+ "src/**/*.ts"
14
+ ],
12
15
  "exclude": [
13
16
  "**/*.spec.ts"
14
17
  ]
@@ -9,7 +9,6 @@
9
9
  ]
10
10
  },
11
11
  "include": [
12
- "**/*.spec.ts",
13
- "**/*.d.ts"
12
+ "src/**/*.ts"
14
13
  ]
15
14
  }
package/library/index.js CHANGED
@@ -28,6 +28,18 @@ function updateTsConfig(packageName, ...paths) {
28
28
  file.modify(jsonPath, Array.isArray(value) ? [...value, ...paths] : paths);
29
29
  };
30
30
  }
31
+ function addTsProjectReference(...paths) {
32
+ return (host) => {
33
+ if (!host.exists('tsconfig.json')) {
34
+ return host;
35
+ }
36
+ const newReferences = paths.map((path) => ({ path }));
37
+ const file = new json_file_1.JSONFile(host, 'tsconfig.json');
38
+ const jsonPath = ['references'];
39
+ const value = file.get(jsonPath);
40
+ file.modify(jsonPath, Array.isArray(value) ? [...value, ...newReferences] : newReferences);
41
+ };
42
+ }
31
43
  function addDependenciesToPackageJson() {
32
44
  return (host) => {
33
45
  [
@@ -132,6 +144,9 @@ function default_1(options) {
132
144
  addLibToWorkspaceFile(options, libDir, packageName),
133
145
  options.skipPackageJson ? (0, schematics_1.noop)() : addDependenciesToPackageJson(),
134
146
  options.skipTsConfig ? (0, schematics_1.noop)() : updateTsConfig(packageName, './' + distRoot),
147
+ options.skipTsConfig
148
+ ? (0, schematics_1.noop)()
149
+ : addTsProjectReference('./' + (0, posix_1.join)(libDir, 'tsconfig.lib.json'), './' + (0, posix_1.join)(libDir, 'tsconfig.spec.json')),
135
150
  options.standalone
136
151
  ? (0, schematics_1.noop)()
137
152
  : (0, schematics_1.schematic)('module', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "20.0.0-next.7",
3
+ "version": "20.0.0-next.8",
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.7",
26
- "@angular-devkit/schematics": "20.0.0-next.7",
25
+ "@angular-devkit/core": "20.0.0-next.8",
26
+ "@angular-devkit/schematics": "20.0.0-next.8",
27
27
  "jsonc-parser": "3.3.1"
28
28
  },
29
29
  "repository": {
@@ -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.7',
20
- AngularBuild: '^20.0.0-next.7',
21
- AngularSSR: '^20.0.0-next.7',
19
+ DevkitBuildAngular: '^20.0.0-next.8',
20
+ AngularBuild: '^20.0.0-next.8',
21
+ AngularSSR: '^20.0.0-next.8',
22
22
  };