@angular-devkit/architect
Advanced tools
Comparing version 0.1901.0-next.1 to 0.1901.0-next.2
@@ -170,23 +170,16 @@ "use strict"; | ||
// Determine builder option schema path (relative within package only) | ||
let schemaPath = builder.schema && path.normalize(builder.schema); | ||
let schemaPath = builder.schema; | ||
if (!schemaPath) { | ||
throw new Error('Could not find the schema for builder ' + builderStr); | ||
} | ||
if (path.isAbsolute(schemaPath) || schemaPath.startsWith('..')) { | ||
throw new Error(`Package "${packageName}" has an invalid builder implementation path: "${builderName}" --> "${builder.schema}"`); | ||
if (path.isAbsolute(schemaPath) || path.normalize(schemaPath).startsWith('..')) { | ||
throw new Error(`Package "${packageName}" has an invalid builder schema path: "${builderName}" --> "${builder.schema}"`); | ||
} | ||
// 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], | ||
}); | ||
if (schemaPath.startsWith('.')) { | ||
schemaPath = path.join(buildersManifestDirectory, schemaPath); | ||
} | ||
catch (e) { | ||
if (e.code === 'MODULE_NOT_FOUND') { | ||
schemaPath = path.join(buildersManifestDirectory, schemaPath); | ||
} | ||
else { | ||
throw e; | ||
} | ||
else { | ||
const manifestRequire = (0, node_module_1.createRequire)(buildersManifestDirectory + '/'); | ||
schemaPath = manifestRequire.resolve(schemaPath); | ||
} | ||
@@ -193,0 +186,0 @@ const schemaText = (0, node_fs_1.readFileSync)(schemaPath, 'utf-8'); |
{ | ||
"name": "@angular-devkit/architect", | ||
"version": "0.1901.0-next.1", | ||
"version": "0.1901.0-next.2", | ||
"description": "Angular Build Facade", | ||
@@ -9,3 +9,3 @@ "experimental": true, | ||
"dependencies": { | ||
"@angular-devkit/core": "19.1.0-next.1", | ||
"@angular-devkit/core": "19.1.0-next.2", | ||
"rxjs": "7.8.1" | ||
@@ -21,3 +21,2 @@ }, | ||
], | ||
"packageManager": "yarn@4.5.0", | ||
"repository": { | ||
@@ -45,3 +44,6 @@ "type": "git", | ||
} | ||
}, | ||
"pnpm": { | ||
"onlyBuiltDependencies": [] | ||
} | ||
} |
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
173429
78
4233
+ Added@angular-devkit/core@19.1.0-next.2(transitive)
- Removed@angular-devkit/core@19.1.0-next.1(transitive)