@angular-devkit/architect 0.1901.0-next.0 → 0.1901.0-next.1
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.
|
@@ -167,14 +167,29 @@ class WorkspaceNodeModulesArchitectHost {
|
|
|
167
167
|
throw new Error(`Package "${packageName}" has an invalid builder implementation path: "${builderName}" --> "${builder.implementation}"`);
|
|
168
168
|
}
|
|
169
169
|
// Determine builder option schema path (relative within package only)
|
|
170
|
-
|
|
170
|
+
let schemaPath = builder.schema && path.normalize(builder.schema);
|
|
171
171
|
if (!schemaPath) {
|
|
172
172
|
throw new Error('Could not find the schema for builder ' + builderStr);
|
|
173
173
|
}
|
|
174
174
|
if (path.isAbsolute(schemaPath) || schemaPath.startsWith('..')) {
|
|
175
175
|
throw new Error(`Package "${packageName}" has an invalid builder implementation path: "${builderName}" --> "${builder.schema}"`);
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
// The file could be either a package reference or in the local manifest directory.
|
|
178
|
+
// Node resolution is tried first then reading the file from the manifest directory if resolution fails.
|
|
179
|
+
try {
|
|
180
|
+
schemaPath = localRequire.resolve(schemaPath, {
|
|
181
|
+
paths: [buildersManifestDirectory],
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
catch (e) {
|
|
185
|
+
if (e.code === 'MODULE_NOT_FOUND') {
|
|
186
|
+
schemaPath = path.join(buildersManifestDirectory, schemaPath);
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
throw e;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
const schemaText = (0, node_fs_1.readFileSync)(schemaPath, 'utf-8');
|
|
178
193
|
return Promise.resolve({
|
|
179
194
|
name: builderStr,
|
|
180
195
|
builderName,
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/architect",
|
|
3
|
-
"version": "0.1901.0-next.
|
|
3
|
+
"version": "0.1901.0-next.1",
|
|
4
4
|
"description": "Angular Build Facade",
|
|
5
5
|
"experimental": true,
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"typings": "src/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@angular-devkit/core": "19.1.0-next.
|
|
9
|
+
"@angular-devkit/core": "19.1.0-next.1",
|
|
10
10
|
"rxjs": "7.8.1"
|
|
11
11
|
},
|
|
12
12
|
"builders": "./builders/builders.json",
|