powerlines 0.42.0 → 0.42.1

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.
@@ -76,7 +76,7 @@ let unplugin = require("unplugin");
76
76
 
77
77
  //#region package.json
78
78
  var name = "powerlines";
79
- var version = "0.42.0";
79
+ var version = "0.42.1";
80
80
 
81
81
  //#endregion
82
82
  //#region src/_internal/helpers/generate-types.ts
@@ -3239,9 +3239,10 @@ var PowerlinesAPI = class PowerlinesAPI {
3239
3239
  *
3240
3240
  * @param inlineConfig - The inline configuration for the typegen command
3241
3241
  */
3242
- async typegen(inlineConfig = { command: "prepare" }) {
3242
+ async typegen(inlineConfig = { command: "typegen" }) {
3243
3243
  this.context.info(" 🏗️ Generating typescript declarations for the Powerlines project");
3244
3244
  this.context.debug(" Aggregating configuration options for the Powerlines project");
3245
+ inlineConfig.command ??= "typegen";
3245
3246
  await this.context.withInlineConfig(inlineConfig);
3246
3247
  await this.#executeEnvironments(async (context) => {
3247
3248
  context.debug(`Initializing the processing options for the Powerlines project.`);
@@ -3289,6 +3290,7 @@ var PowerlinesAPI = class PowerlinesAPI {
3289
3290
  async prepare(inlineConfig = { command: "prepare" }) {
3290
3291
  this.context.info(" 🏗️ Preparing the Powerlines project");
3291
3292
  this.context.debug(" Aggregating configuration options for the Powerlines project");
3293
+ inlineConfig.command ??= "prepare";
3292
3294
  await this.context.withInlineConfig(inlineConfig);
3293
3295
  await this.#executeEnvironments(async (context) => {
3294
3296
  context.debug(`Initializing the processing options for the Powerlines project.`);
@@ -3348,6 +3350,7 @@ var PowerlinesAPI = class PowerlinesAPI {
3348
3350
  */
3349
3351
  async new(inlineConfig) {
3350
3352
  this.context.info(" 🆕 Creating a new Powerlines project");
3353
+ inlineConfig.command ??= "new";
3351
3354
  await this.prepare(inlineConfig);
3352
3355
  await this.#executeEnvironments(async (context) => {
3353
3356
  context.debug("Initializing the processing options for the Powerlines project.");
@@ -3398,6 +3401,7 @@ var PowerlinesAPI = class PowerlinesAPI {
3398
3401
  */
3399
3402
  async clean(inlineConfig = { command: "clean" }) {
3400
3403
  this.context.info(" 🧹 Cleaning the previous Powerlines artifacts");
3404
+ inlineConfig.command ??= "clean";
3401
3405
  await this.prepare(inlineConfig);
3402
3406
  await this.#executeEnvironments(async (context) => {
3403
3407
  context.debug("Cleaning the project's dist and artifacts directories.");
@@ -3418,6 +3422,7 @@ var PowerlinesAPI = class PowerlinesAPI {
3418
3422
  */
3419
3423
  async lint(inlineConfig = { command: "lint" }) {
3420
3424
  this.context.info(" 📝 Linting the Powerlines project");
3425
+ inlineConfig.command ??= "lint";
3421
3426
  await this.prepare(inlineConfig);
3422
3427
  await this.#executeEnvironments(async (context) => {
3423
3428
  await this.callHook("lint", {
@@ -3441,6 +3446,7 @@ var PowerlinesAPI = class PowerlinesAPI {
3441
3446
  await this.context.generateChecksum();
3442
3447
  if (this.context.meta.checksum !== this.context.persistedMeta?.checksum || this.context.config.skipCache) {
3443
3448
  this.context.info("The project has been modified since the last time `prepare` was ran. Re-preparing the project.");
3449
+ inlineConfig.command ??= "build";
3444
3450
  await this.prepare(inlineConfig);
3445
3451
  }
3446
3452
  if (this.context.config.singleBuild) await this.#handleBuild(await this.#context.toEnvironment());
@@ -3457,9 +3463,11 @@ var PowerlinesAPI = class PowerlinesAPI {
3457
3463
  */
3458
3464
  async docs(inlineConfig = { command: "docs" }) {
3459
3465
  this.context.info(" 📓 Generating documentation for the Powerlines project");
3466
+ inlineConfig.command ??= "docs";
3460
3467
  await this.prepare(inlineConfig);
3461
3468
  await this.#executeEnvironments(async (context) => {
3462
3469
  context.debug("Writing documentation for the Powerlines project artifacts.");
3470
+ inlineConfig.command ??= "docs";
3463
3471
  await this.prepare(inlineConfig);
3464
3472
  await this.#executeEnvironments(async (context) => {
3465
3473
  await this.callHook("docs", { environment: context });
@@ -3477,6 +3485,7 @@ var PowerlinesAPI = class PowerlinesAPI {
3477
3485
  */
3478
3486
  async deploy(inlineConfig = { command: "deploy" }) {
3479
3487
  this.context.info(" 🚀 Deploying the Powerlines project");
3488
+ inlineConfig.command ??= "deploy";
3480
3489
  await this.prepare(inlineConfig);
3481
3490
  await this.#executeEnvironments(async (context) => {
3482
3491
  await this.callHook("deploy", { environment: context });
@@ -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.1";
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-fW_vtcef.mjs.map