@angular-devkit/architect
Advanced tools
Comparing version 0.1701.1 to 0.1702.0-next.0
{ | ||
"name": "@angular-devkit/architect", | ||
"version": "0.1701.1", | ||
"version": "0.1702.0-next.0", | ||
"description": "Angular Build Facade", | ||
@@ -9,3 +9,3 @@ "experimental": true, | ||
"dependencies": { | ||
"@angular-devkit/core": "17.1.1", | ||
"@angular-devkit/core": "17.2.0-next.0", | ||
"rxjs": "7.8.1" | ||
@@ -12,0 +12,0 @@ }, |
@@ -252,5 +252,6 @@ /** | ||
/** | ||
* Return a Target tuple from a string. | ||
* Return a Target tuple from a specifier string. | ||
* Supports abbreviated target specifiers (examples: `::`, `::development`, or `:build:production`). | ||
*/ | ||
export declare function targetFromTargetString(str: string): Target; | ||
export declare function targetFromTargetString(specifier: string, abbreviatedProjectName?: string, abbreviatedTargetName?: string): Target; | ||
/** | ||
@@ -257,0 +258,0 @@ * Schedule a target, and forget about its run. This will return an observable of outputs, that |
@@ -54,12 +54,13 @@ "use strict"; | ||
/** | ||
* Return a Target tuple from a string. | ||
* Return a Target tuple from a specifier string. | ||
* Supports abbreviated target specifiers (examples: `::`, `::development`, or `:build:production`). | ||
*/ | ||
function targetFromTargetString(str) { | ||
const tuple = str.split(/:/, 3); | ||
function targetFromTargetString(specifier, abbreviatedProjectName, abbreviatedTargetName) { | ||
const tuple = specifier.split(':', 3); | ||
if (tuple.length < 2) { | ||
throw new Error('Invalid target string: ' + JSON.stringify(str)); | ||
throw new Error('Invalid target string: ' + JSON.stringify(specifier)); | ||
} | ||
return { | ||
project: tuple[0], | ||
target: tuple[1], | ||
project: tuple[0] || abbreviatedProjectName || '', | ||
target: tuple[1] || abbreviatedTargetName || '', | ||
...(tuple[2] !== undefined && { configuration: tuple[2] }), | ||
@@ -66,0 +67,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
166432
4059
+ Added@angular-devkit/core@17.2.0-next.0(transitive)
+ Addedjsonc-parser@3.2.1(transitive)
- Removed@angular-devkit/core@17.1.1(transitive)
- Removedjsonc-parser@3.2.0(transitive)