@wp-playground/blueprints 0.5.2 → 0.5.4

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/index.d.ts CHANGED
@@ -1460,6 +1460,20 @@ export interface DefineWpConfigConstsStep {
1460
1460
  step: "defineWpConfigConsts";
1461
1461
  /** The constants to define */
1462
1462
  consts: Record<string, unknown>;
1463
+ /**
1464
+ * The method of defining the constants. Possible values are:
1465
+ *
1466
+ * - rewrite-wp-config: Default. Rewrites the wp-config.php file to
1467
+ * explicitly call define() with the requested
1468
+ * name and value. This method alters the file
1469
+ * on the disk, but it doesn't conflict with
1470
+ * existing define() calls in wp-config.php.
1471
+ * - define-before-run: Defines the constant before running the requested
1472
+ * script. It doesn't alter any files on the disk, but
1473
+ * constants defined this way may conflict with existing
1474
+ * define() calls in wp-config.php.
1475
+ */
1476
+ method?: "rewrite-wp-config" | "define-before-run";
1463
1477
  /**
1464
1478
  * @deprecated This option is noop and will be removed in a future version.
1465
1479
  * This option is only kept in here to avoid breaking Blueprint schema validation
@@ -1468,7 +1482,7 @@ export interface DefineWpConfigConstsStep {
1468
1482
  virtualize?: boolean;
1469
1483
  }
1470
1484
  /**
1471
- * Defines constants to be used in wp-config.php file.
1485
+ * Defines constants in a wp-config.php file.
1472
1486
  *
1473
1487
  * This step can be called multiple times, and the constants will be merged.
1474
1488
  *