@angular-devkit/architect 0.800.2 → 0.800.6

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.
@@ -67,8 +67,9 @@ class WorkspaceNodeModulesArchitectHost {
67
67
  if (targetSpec === undefined) {
68
68
  return null;
69
69
  }
70
- if (target.configuration && !targetSpec['configurations']) {
71
- throw new Error('Configuration not set in the workspace.');
70
+ if (target.configuration
71
+ && !(targetSpec['configurations'] && targetSpec['configurations'][target.configuration])) {
72
+ throw new Error(`Configuration '${target.configuration}' is not set in the workspace.`);
72
73
  }
73
74
  return {
74
75
  ...targetSpec['options'],
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@angular-devkit/architect",
3
- "version": "0.800.2",
3
+ "version": "0.800.6",
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": "8.0.2",
9
+ "@angular-devkit/core": "8.0.6",
10
10
  "rxjs": "6.4.0"
11
11
  },
12
12
  "builders": "./builders/builders.json",
package/src/architect.js CHANGED
@@ -239,7 +239,8 @@ class Architect {
239
239
  return this._scheduler.has(name);
240
240
  }
241
241
  scheduleBuilder(name, options, scheduleOptions = {}) {
242
- if (!/^[^:]+:[^:]+$/.test(name)) {
242
+ // The below will match 'project:target:configuration'
243
+ if (!/^[^:]+:[^:]+(:[^:]+)?$/.test(name)) {
243
244
  throw new Error('Invalid builder name: ' + JSON.stringify(name));
244
245
  }
245
246
  return schedule_by_name_1.scheduleByName(name, options, {