@angular-devkit/architect
Advanced tools
Comparing version 0.1901.0-next.0 to 0.1901.0-next.1
@@ -170,3 +170,3 @@ "use strict"; | ||
// Determine builder option schema path (relative within package only) | ||
const schemaPath = builder.schema && path.normalize(builder.schema); | ||
let schemaPath = builder.schema && path.normalize(builder.schema); | ||
if (!schemaPath) { | ||
@@ -178,3 +178,18 @@ throw new Error('Could not find the schema for builder ' + builderStr); | ||
} | ||
const schemaText = (0, node_fs_1.readFileSync)(path.join(buildersManifestDirectory, schemaPath), 'utf-8'); | ||
// The file could be either a package reference or in the local manifest directory. | ||
// Node resolution is tried first then reading the file from the manifest directory if resolution fails. | ||
try { | ||
schemaPath = localRequire.resolve(schemaPath, { | ||
paths: [buildersManifestDirectory], | ||
}); | ||
} | ||
catch (e) { | ||
if (e.code === 'MODULE_NOT_FOUND') { | ||
schemaPath = path.join(buildersManifestDirectory, schemaPath); | ||
} | ||
else { | ||
throw e; | ||
} | ||
} | ||
const schemaText = (0, node_fs_1.readFileSync)(schemaPath, 'utf-8'); | ||
return Promise.resolve({ | ||
@@ -181,0 +196,0 @@ name: builderStr, |
{ | ||
"name": "@angular-devkit/architect", | ||
"version": "0.1901.0-next.0", | ||
"version": "0.1901.0-next.1", | ||
"description": "Angular Build Facade", | ||
@@ -9,3 +9,3 @@ "experimental": true, | ||
"dependencies": { | ||
"@angular-devkit/core": "19.1.0-next.0", | ||
"@angular-devkit/core": "19.1.0-next.1", | ||
"rxjs": "7.8.1" | ||
@@ -12,0 +12,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
172294
4202
+ Added@angular-devkit/core@19.1.0-next.1(transitive)
- Removed@angular-devkit/core@19.1.0-next.0(transitive)