@angular-devkit/schematics 14.0.0-next.8 → 14.0.0-next.9
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/schematics",
|
|
3
|
-
"version": "14.0.0-next.
|
|
3
|
+
"version": "14.0.0-next.9",
|
|
4
4
|
"description": "Angular Schematics - Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"schematics"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@angular-devkit/core": "14.0.0-next.
|
|
21
|
+
"@angular-devkit/core": "14.0.0-next.9",
|
|
22
22
|
"jsonc-parser": "3.0.0",
|
|
23
23
|
"magic-string": "0.26.1",
|
|
24
24
|
"ora": "5.4.1",
|
package/tools/description.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export declare class SchematicNameCollisionException extends BaseException {
|
|
|
46
46
|
*/
|
|
47
47
|
export declare abstract class FileSystemEngineHostBase implements FileSystemEngineHost {
|
|
48
48
|
protected abstract _resolveCollectionPath(name: string, requester?: string): string;
|
|
49
|
-
protected abstract _resolveReferenceString(name: string, parentPath: string): {
|
|
49
|
+
protected abstract _resolveReferenceString(name: string, parentPath: string, collectionDescription: FileSystemCollectionDesc): {
|
|
50
50
|
ref: RuleFactory<{}>;
|
|
51
51
|
path: string;
|
|
52
52
|
} | null;
|
|
@@ -178,7 +178,7 @@ class FileSystemEngineHostBase {
|
|
|
178
178
|
if (!partialDesc.factory) {
|
|
179
179
|
throw new SchematicMissingFactoryException(name);
|
|
180
180
|
}
|
|
181
|
-
const resolvedRef = this._resolveReferenceString(partialDesc.factory, collectionPath);
|
|
181
|
+
const resolvedRef = this._resolveReferenceString(partialDesc.factory, collectionPath, collection);
|
|
182
182
|
if (!resolvedRef) {
|
|
183
183
|
throw new FactoryCannotBeResolvedException(name);
|
|
184
184
|
}
|
|
@@ -20,7 +20,7 @@ export declare class NodeModulesEngineHost extends FileSystemEngineHostBase {
|
|
|
20
20
|
constructor(paths?: string[] | undefined);
|
|
21
21
|
private resolve;
|
|
22
22
|
protected _resolveCollectionPath(name: string, requester?: string): string;
|
|
23
|
-
protected _resolveReferenceString(refString: string, parentPath: string): {
|
|
23
|
+
protected _resolveReferenceString(refString: string, parentPath: string, collectionDescription?: FileSystemCollectionDesc): {
|
|
24
24
|
ref: RuleFactory<{}>;
|
|
25
25
|
path: string;
|
|
26
26
|
} | null;
|
|
@@ -81,7 +81,7 @@ class NodeModulesEngineHost extends file_system_engine_host_base_1.FileSystemEng
|
|
|
81
81
|
(0, file_system_utility_1.readJsonFile)(collectionPath);
|
|
82
82
|
return collectionPath;
|
|
83
83
|
}
|
|
84
|
-
_resolveReferenceString(refString, parentPath) {
|
|
84
|
+
_resolveReferenceString(refString, parentPath, collectionDescription) {
|
|
85
85
|
const ref = new export_ref_1.ExportStringRef(refString, parentPath);
|
|
86
86
|
if (!ref.ref) {
|
|
87
87
|
return null;
|