@schematics/angular 19.2.0-next.2 → 19.2.0
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.
- package/config/files/karma.conf.js.template +3 -3
- package/config/index.js +7 -4
- package/e2e/index.js +4 -4
- package/environments/index.js +6 -5
- package/package.json +3 -3
- package/service-worker/index.js +2 -1
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +23 -3
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +1548 -636
- package/utility/dependency.js +1 -1
- package/utility/latest-versions.js +5 -5
- package/utility/standalone/app_config.js +2 -2
- package/utility/workspace-models.d.ts +3 -0
- package/utility/workspace-models.js +3 -0
- package/workspace/files/package.json.template +0 -1
package/utility/dependency.js
CHANGED
|
@@ -43,7 +43,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
43
43
|
exports.ExistingBehavior = exports.InstallBehavior = exports.DependencyType = void 0;
|
|
44
44
|
exports.addDependency = addDependency;
|
|
45
45
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
46
|
-
const path = __importStar(require("path"));
|
|
46
|
+
const path = __importStar(require("node:path"));
|
|
47
47
|
const installTasks = new WeakMap();
|
|
48
48
|
/**
|
|
49
49
|
* An enum used to specify the type of a dependency found within a package manifest
|
|
@@ -14,9 +14,9 @@ const dependencies = require('./latest-versions/package.json')['dependencies'];
|
|
|
14
14
|
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
|
-
Angular: '^19.2.0
|
|
18
|
-
NgPackagr: '^19.2.0
|
|
19
|
-
DevkitBuildAngular: '^19.2.0
|
|
20
|
-
AngularBuild: '^19.2.0
|
|
21
|
-
AngularSSR: '^19.2.0
|
|
17
|
+
Angular: '^19.2.0',
|
|
18
|
+
NgPackagr: '^19.2.0',
|
|
19
|
+
DevkitBuildAngular: '^19.2.0',
|
|
20
|
+
AngularBuild: '^19.2.0',
|
|
21
|
+
AngularSSR: '^19.2.0',
|
|
22
22
|
};
|
|
@@ -11,7 +11,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.findAppConfig = findAppConfig;
|
|
14
|
-
const
|
|
14
|
+
const node_path_1 = require("node:path");
|
|
15
15
|
const typescript_1 = __importDefault(require("../../third_party/github.com/Microsoft/TypeScript/lib/typescript"));
|
|
16
16
|
const util_1 = require("./util");
|
|
17
17
|
/**
|
|
@@ -58,7 +58,7 @@ function resolveAppConfigFromIdentifier(identifier, tree, bootstapFilePath) {
|
|
|
58
58
|
// Look for a variable with the imported name in the file. Note that ideally we would use
|
|
59
59
|
// the type checker to resolve this, but we can't because these utilities are set up to
|
|
60
60
|
// operate on individual files, not the entire program.
|
|
61
|
-
const filePath = (0,
|
|
61
|
+
const filePath = (0, node_path_1.join)((0, node_path_1.dirname)(bootstapFilePath), node.moduleSpecifier.text + '.ts');
|
|
62
62
|
const importedSourceFile = (0, util_1.getSourceFile)(tree, filePath);
|
|
63
63
|
const resolvedVariable = findAppConfigFromVariableName(importedSourceFile, (specifier.propertyName || specifier.name).text);
|
|
64
64
|
if (resolvedVariable) {
|
|
@@ -24,11 +24,14 @@ export declare enum Builders {
|
|
|
24
24
|
Prerender = "@angular-devkit/build-angular:prerender",
|
|
25
25
|
BrowserEsbuild = "@angular-devkit/build-angular:browser-esbuild",
|
|
26
26
|
Karma = "@angular-devkit/build-angular:karma",
|
|
27
|
+
BuildKarma = "@angular/build:karma",
|
|
27
28
|
TsLint = "@angular-devkit/build-angular:tslint",
|
|
28
29
|
NgPackagr = "@angular-devkit/build-angular:ng-packagr",
|
|
29
30
|
BuildNgPackagr = "@angular/build:ng-packagr",
|
|
30
31
|
DevServer = "@angular-devkit/build-angular:dev-server",
|
|
32
|
+
BuildDevServer = "@angular/build:dev-server",
|
|
31
33
|
ExtractI18n = "@angular-devkit/build-angular:extract-i18n",
|
|
34
|
+
BuildExtractI18n = "@angular/build:extract-i18n",
|
|
32
35
|
Protractor = "@angular-devkit/build-angular:private-protractor",
|
|
33
36
|
BuildApplication = "@angular/build:application"
|
|
34
37
|
}
|
|
@@ -29,11 +29,14 @@ var Builders;
|
|
|
29
29
|
Builders["Prerender"] = "@angular-devkit/build-angular:prerender";
|
|
30
30
|
Builders["BrowserEsbuild"] = "@angular-devkit/build-angular:browser-esbuild";
|
|
31
31
|
Builders["Karma"] = "@angular-devkit/build-angular:karma";
|
|
32
|
+
Builders["BuildKarma"] = "@angular/build:karma";
|
|
32
33
|
Builders["TsLint"] = "@angular-devkit/build-angular:tslint";
|
|
33
34
|
Builders["NgPackagr"] = "@angular-devkit/build-angular:ng-packagr";
|
|
34
35
|
Builders["BuildNgPackagr"] = "@angular/build:ng-packagr";
|
|
35
36
|
Builders["DevServer"] = "@angular-devkit/build-angular:dev-server";
|
|
37
|
+
Builders["BuildDevServer"] = "@angular/build:dev-server";
|
|
36
38
|
Builders["ExtractI18n"] = "@angular-devkit/build-angular:extract-i18n";
|
|
39
|
+
Builders["BuildExtractI18n"] = "@angular/build:extract-i18n";
|
|
37
40
|
Builders["Protractor"] = "@angular-devkit/build-angular:private-protractor";
|
|
38
41
|
Builders["BuildApplication"] = "@angular/build:application";
|
|
39
42
|
})(Builders || (exports.Builders = Builders = {}));
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
},
|
|
11
11
|
"private": true,
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@angular/animations": "<%= latestVersions.Angular %>",
|
|
14
13
|
"@angular/common": "<%= latestVersions.Angular %>",
|
|
15
14
|
"@angular/compiler": "<%= latestVersions.Angular %>",
|
|
16
15
|
"@angular/core": "<%= latestVersions.Angular %>",
|