powerlines 0.42.0 → 0.42.2

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.
@@ -72,7 +72,7 @@ import { setParseImpl } from "unplugin";
72
72
 
73
73
  //#region package.json
74
74
  var name = "powerlines";
75
- var version = "0.42.0";
75
+ var version = "0.42.2";
76
76
 
77
77
  //#endregion
78
78
  //#region src/_internal/helpers/generate-types.ts
@@ -3236,9 +3236,10 @@ var PowerlinesAPI = class PowerlinesAPI {
3236
3236
  *
3237
3237
  * @param inlineConfig - The inline configuration for the typegen command
3238
3238
  */
3239
- async typegen(inlineConfig = { command: "prepare" }) {
3239
+ async typegen(inlineConfig = { command: "typegen" }) {
3240
3240
  this.context.info(" 🏗️ Generating typescript declarations for the Powerlines project");
3241
3241
  this.context.debug(" Aggregating configuration options for the Powerlines project");
3242
+ inlineConfig.command ??= "typegen";
3242
3243
  await this.context.withInlineConfig(inlineConfig);
3243
3244
  await this.#executeEnvironments(async (context) => {
3244
3245
  context.debug(`Initializing the processing options for the Powerlines project.`);
@@ -3286,6 +3287,7 @@ var PowerlinesAPI = class PowerlinesAPI {
3286
3287
  async prepare(inlineConfig = { command: "prepare" }) {
3287
3288
  this.context.info(" 🏗️ Preparing the Powerlines project");
3288
3289
  this.context.debug(" Aggregating configuration options for the Powerlines project");
3290
+ inlineConfig.command ??= "prepare";
3289
3291
  await this.context.withInlineConfig(inlineConfig);
3290
3292
  await this.#executeEnvironments(async (context) => {
3291
3293
  context.debug(`Initializing the processing options for the Powerlines project.`);
@@ -3345,6 +3347,7 @@ var PowerlinesAPI = class PowerlinesAPI {
3345
3347
  */
3346
3348
  async new(inlineConfig) {
3347
3349
  this.context.info(" 🆕 Creating a new Powerlines project");
3350
+ inlineConfig.command ??= "new";
3348
3351
  await this.prepare(inlineConfig);
3349
3352
  await this.#executeEnvironments(async (context) => {
3350
3353
  context.debug("Initializing the processing options for the Powerlines project.");
@@ -3395,6 +3398,7 @@ var PowerlinesAPI = class PowerlinesAPI {
3395
3398
  */
3396
3399
  async clean(inlineConfig = { command: "clean" }) {
3397
3400
  this.context.info(" 🧹 Cleaning the previous Powerlines artifacts");
3401
+ inlineConfig.command ??= "clean";
3398
3402
  await this.prepare(inlineConfig);
3399
3403
  await this.#executeEnvironments(async (context) => {
3400
3404
  context.debug("Cleaning the project's dist and artifacts directories.");
@@ -3415,6 +3419,7 @@ var PowerlinesAPI = class PowerlinesAPI {
3415
3419
  */
3416
3420
  async lint(inlineConfig = { command: "lint" }) {
3417
3421
  this.context.info(" 📝 Linting the Powerlines project");
3422
+ inlineConfig.command ??= "lint";
3418
3423
  await this.prepare(inlineConfig);
3419
3424
  await this.#executeEnvironments(async (context) => {
3420
3425
  await this.callHook("lint", {
@@ -3438,6 +3443,7 @@ var PowerlinesAPI = class PowerlinesAPI {
3438
3443
  await this.context.generateChecksum();
3439
3444
  if (this.context.meta.checksum !== this.context.persistedMeta?.checksum || this.context.config.skipCache) {
3440
3445
  this.context.info("The project has been modified since the last time `prepare` was ran. Re-preparing the project.");
3446
+ inlineConfig.command ??= "build";
3441
3447
  await this.prepare(inlineConfig);
3442
3448
  }
3443
3449
  if (this.context.config.singleBuild) await this.#handleBuild(await this.#context.toEnvironment());
@@ -3454,9 +3460,11 @@ var PowerlinesAPI = class PowerlinesAPI {
3454
3460
  */
3455
3461
  async docs(inlineConfig = { command: "docs" }) {
3456
3462
  this.context.info(" 📓 Generating documentation for the Powerlines project");
3463
+ inlineConfig.command ??= "docs";
3457
3464
  await this.prepare(inlineConfig);
3458
3465
  await this.#executeEnvironments(async (context) => {
3459
3466
  context.debug("Writing documentation for the Powerlines project artifacts.");
3467
+ inlineConfig.command ??= "docs";
3460
3468
  await this.prepare(inlineConfig);
3461
3469
  await this.#executeEnvironments(async (context) => {
3462
3470
  await this.callHook("docs", { environment: context });
@@ -3474,6 +3482,7 @@ var PowerlinesAPI = class PowerlinesAPI {
3474
3482
  */
3475
3483
  async deploy(inlineConfig = { command: "deploy" }) {
3476
3484
  this.context.info(" 🚀 Deploying the Powerlines project");
3485
+ inlineConfig.command ??= "deploy";
3477
3486
  await this.prepare(inlineConfig);
3478
3487
  await this.#executeEnvironments(async (context) => {
3479
3488
  await this.callHook("deploy", { environment: context });
@@ -3769,4 +3778,4 @@ ${formatTypes(types)}
3769
3778
 
3770
3779
  //#endregion
3771
3780
  export { createUnpluginFactory as a, FileMetadata as c, FileSystem as d, _capnpFileId as f, createPluginContext as i, FileMetadata_KeyValuePair as l, version as m, PowerlinesAPIContext as n, PowerlinesContext as o, name as p, PowerlinesEnvironmentContext as r, FileId as s, PowerlinesAPI as t, FileStorage as u };
3772
- //# sourceMappingURL=api-Cq6oqcq8.mjs.map
3781
+ //# sourceMappingURL=api-CDr8k5H4.mjs.map