@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.
- package/app-shell/index.d.ts +1 -1
- package/app-shell/index.js +2 -2
- package/application/files/common-files/tsconfig.app.json.template +2 -1
- package/application/files/common-files/tsconfig.spec.json.template +2 -1
- package/application/index.d.ts +1 -1
- package/application/index.js +2 -2
- package/class/index.d.ts +1 -1
- package/class/index.js +2 -2
- package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template +1 -1
- package/component/index.d.ts +1 -1
- package/component/index.js +2 -2
- package/config/index.d.ts +1 -1
- package/config/index.js +2 -2
- package/directive/index.d.ts +1 -1
- package/directive/index.js +2 -2
- package/e2e/files/tsconfig.json.template +2 -1
- package/e2e/index.d.ts +1 -1
- package/e2e/index.js +2 -2
- package/enum/index.d.ts +1 -1
- package/enum/index.js +2 -2
- package/environments/index.d.ts +1 -1
- package/environments/index.js +2 -2
- package/guard/index.d.ts +1 -1
- package/guard/index.js +2 -2
- package/interceptor/index.d.ts +1 -1
- package/interceptor/index.js +2 -2
- package/interface/index.d.ts +1 -1
- package/interface/index.js +2 -2
- package/library/files/tsconfig.lib.json.template +2 -1
- package/library/files/tsconfig.lib.prod.json.template +2 -1
- package/library/files/tsconfig.spec.json.template +2 -1
- package/library/index.d.ts +1 -1
- package/library/index.js +2 -2
- package/migrations/use-application-builder/css-import-lexer.d.ts +1 -1
- package/migrations/use-application-builder/css-import-lexer.js +2 -3
- package/migrations/use-application-builder/migration.d.ts +1 -1
- package/migrations/use-application-builder/migration.js +2 -2
- package/module/index.d.ts +1 -1
- package/module/index.js +2 -2
- package/ng-new/index.d.ts +1 -1
- package/ng-new/index.js +2 -2
- package/ng-new/schema.d.ts +1 -1
- package/ng-new/schema.json +1 -1
- package/package.json +12 -3
- package/pipe/index.d.ts +1 -1
- package/pipe/index.js +2 -2
- package/resolver/index.d.ts +1 -1
- package/resolver/index.js +2 -2
- package/server/files/root/tsconfig.server.json.template +2 -1
- package/server/index.d.ts +1 -1
- package/server/index.js +2 -2
- package/service/index.d.ts +1 -1
- package/service/index.js +2 -2
- package/service-worker/index.d.ts +1 -1
- package/service-worker/index.js +2 -2
- package/ssr/index.d.ts +1 -1
- package/ssr/index.js +2 -2
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +1008 -1413
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +183622 -179407
- package/utility/add-declaration-to-ng-module.d.ts +1 -1
- package/utility/add-declaration-to-ng-module.js +2 -3
- package/utility/ast-utils.d.ts +1 -1
- package/utility/ast-utils.js +18 -19
- package/utility/change.d.ts +1 -1
- package/utility/change.js +3 -3
- package/utility/dependencies.d.ts +1 -1
- package/utility/dependencies.js +5 -5
- package/utility/dependency.d.ts +1 -1
- package/utility/dependency.js +3 -3
- package/utility/eol.d.ts +1 -1
- package/utility/eol.js +2 -3
- package/utility/find-module.d.ts +1 -1
- package/utility/find-module.js +5 -5
- package/utility/generate-from-files.d.ts +1 -1
- package/utility/generate-from-files.js +2 -3
- package/utility/index.d.ts +1 -1
- package/utility/index.js +1 -1
- package/utility/json-file.d.ts +1 -1
- package/utility/json-file.js +1 -1
- package/utility/latest-versions.d.ts +1 -1
- package/utility/latest-versions.js +3 -3
- package/utility/ng-ast-utils.d.ts +1 -1
- package/utility/ng-ast-utils.js +4 -5
- package/utility/parse-name.d.ts +1 -1
- package/utility/parse-name.js +2 -3
- package/utility/paths.d.ts +1 -1
- package/utility/paths.js +2 -3
- package/utility/project-targets.d.ts +1 -1
- package/utility/project-targets.js +2 -3
- package/utility/standalone/app_config.d.ts +1 -1
- package/utility/standalone/app_config.js +2 -3
- package/utility/standalone/code_block.d.ts +1 -1
- package/utility/standalone/code_block.js +1 -1
- package/utility/standalone/index.d.ts +1 -1
- package/utility/standalone/index.js +1 -1
- package/utility/standalone/rules.d.ts +1 -1
- package/utility/standalone/rules.js +3 -4
- package/utility/standalone/util.d.ts +1 -1
- package/utility/standalone/util.js +7 -8
- package/utility/validation.d.ts +1 -1
- package/utility/validation.js +4 -4
- package/utility/workspace-models.d.ts +1 -1
- package/utility/workspace-models.js +1 -1
- package/utility/workspace.d.ts +1 -1
- package/utility/workspace.js +9 -9
- package/web-worker/files/worker-tsconfig/tsconfig.worker.json.template +1 -1
- package/web-worker/index.d.ts +1 -1
- package/web-worker/index.js +2 -2
- package/workspace/files/tsconfig.json.template +2 -2
- package/workspace/index.d.ts +1 -1
- package/workspace/index.js +2 -2
- package/workspace/schema.d.ts +1 -1
- package/workspace/schema.json +1 -1
package/resolver/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.
|
|
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.
|
|
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
|
|
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.
|
|
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.
|
|
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;
|
package/service/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.
|
|
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.
|
|
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.
|
|
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';
|
package/service-worker/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.
|
|
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.
|
|
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.
|
|
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;
|