@wp-playground/blueprints 0.1.28 → 0.1.29

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-playground/blueprints",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./index.js",
@@ -20,5 +20,5 @@
20
20
  "publishConfig": {
21
21
  "access": "public"
22
22
  },
23
- "gitHead": "883860eacc7c37377f772a26919e700749020e4c"
23
+ "gitHead": "ad98893a9638c07cd9bdf849632c35db45caae0d"
24
24
  }
@@ -54,6 +54,7 @@ export interface CompiledBlueprint {
54
54
  steps: Array<CompiledStep>;
55
55
  /** The resources used by the compiled steps */
56
56
  resources: Array<{ resource: Resource; step: CompiledStep }>;
57
+ progressTracker: ProgressTracker;
57
58
  }
58
59
 
59
60
  export interface CompileBlueprintOptions {
@@ -107,6 +108,7 @@ export function compileBlueprint(
107
108
  },
108
109
  steps: compiledSteps,
109
110
  resources: getResources(compiledSteps),
111
+ progressTracker: progress,
110
112
  };
111
113
  }
112
114
 
package/src/lib/run.ts CHANGED
@@ -71,7 +71,9 @@ async function runBlueprintStep(step: CompiledStep, playground: UniversalPHP) {
71
71
  break;
72
72
  }
73
73
  case 'login':
74
- step.progress.setCaption(`Logging in as ${args.username}`);
74
+ step.progress.setCaption(
75
+ `Logging in${args.username ? ' as ' + args.username : ''}`
76
+ );
75
77
  await login(playground, args.username, args.password);
76
78
  break;
77
79
  case 'activatePlugin':