@schematics/angular 17.0.5 → 17.1.0-next.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/app-shell/index.js +1 -1
- package/application/files/common-files/src/app/app.component.html.template +1 -1
- package/application/files/module-files/src/app/app.component.ts.template +1 -1
- package/application/files/standalone-files/src/app/app.component.ts.template +3 -4
- package/package.json +3 -3
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +4589 -243
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +20787 -6447
- package/utility/latest-versions/package.json +1 -1
- package/utility/latest-versions.js +3 -3
package/app-shell/index.js
CHANGED
|
@@ -118,7 +118,7 @@ function getBootstrapComponentPath(host, mainPath) {
|
|
|
118
118
|
// end helper functions.
|
|
119
119
|
function validateProject(mainPath) {
|
|
120
120
|
return (host) => {
|
|
121
|
-
const routerOutletCheckRegex = /<router-outlet.*?>([\s\S]*?)
|
|
121
|
+
const routerOutletCheckRegex = /<router-outlet.*?>([\s\S]*?)(?:<\/router-outlet>)?/;
|
|
122
122
|
const componentPath = getBootstrapComponentPath(host, mainPath);
|
|
123
123
|
const tmpl = getComponentTemplateInfo(host, componentPath);
|
|
124
124
|
const template = getComponentTemplate(host, componentPath, tmpl);
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { Component } from '@angular/core'
|
|
2
|
-
import { CommonModule } from '@angular/common';<% if(routing) { %>
|
|
1
|
+
import { Component } from '@angular/core';<% if(routing) { %>
|
|
3
2
|
import { RouterOutlet } from '@angular/router';<% } %>
|
|
4
3
|
|
|
5
4
|
@Component({
|
|
6
5
|
selector: '<%= selector %>',
|
|
7
6
|
standalone: true,
|
|
8
|
-
imports: [
|
|
7
|
+
imports: [<% if(routing) { %>RouterOutlet<% } %>],<% if(inlineTemplate) { %>
|
|
9
8
|
template: `
|
|
10
9
|
<h1>Welcome to {{title}}!</h1>
|
|
11
10
|
|
|
12
11
|
<% if (routing) {
|
|
13
|
-
%><router-outlet
|
|
12
|
+
%><router-outlet /><%
|
|
14
13
|
} %>
|
|
15
14
|
`,<% } else { %>
|
|
16
15
|
templateUrl: './app.component.html',<% } if(inlineStyle) { %>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematics/angular",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.1.0-next.0",
|
|
4
4
|
"description": "Schematics specific to Angular",
|
|
5
5
|
"homepage": "https://github.com/angular/angular-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"schematics": "./collection.json",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@angular-devkit/core": "17.0.
|
|
27
|
-
"@angular-devkit/schematics": "17.0.
|
|
26
|
+
"@angular-devkit/core": "17.1.0-next.0",
|
|
27
|
+
"@angular-devkit/schematics": "17.1.0-next.0",
|
|
28
28
|
"jsonc-parser": "3.2.0"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|