@h3ravel/musket 0.6.16 → 0.6.17

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/dist/index.cjs CHANGED
@@ -636,7 +636,7 @@ var Musket = class Musket {
636
636
  }
637
637
  async loadDiscoveredCommands() {
638
638
  const commands = [...(this.app.registeredCommands ?? []).map((cmd) => new cmd(this.app, this.kernel))];
639
- const paths = Array.isArray(this.config.discoveryPaths) ? this.config.discoveryPaths : [this.config.discoveryPaths];
639
+ const paths = (Array.isArray(this.config.discoveryPaths) ? this.config.discoveryPaths : [this.config.discoveryPaths]).filter((e) => typeof e === "string");
640
640
  /**
641
641
  * CLI Commands auto registration
642
642
  */
package/dist/index.js CHANGED
@@ -612,7 +612,7 @@ var Musket = class Musket {
612
612
  }
613
613
  async loadDiscoveredCommands() {
614
614
  const commands = [...(this.app.registeredCommands ?? []).map((cmd) => new cmd(this.app, this.kernel))];
615
- const paths = Array.isArray(this.config.discoveryPaths) ? this.config.discoveryPaths : [this.config.discoveryPaths];
615
+ const paths = (Array.isArray(this.config.discoveryPaths) ? this.config.discoveryPaths : [this.config.discoveryPaths]).filter((e) => typeof e === "string");
616
616
  /**
617
617
  * CLI Commands auto registration
618
618
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/musket",
3
- "version": "0.6.16",
3
+ "version": "0.6.17",
4
4
  "description": "Musket CLI is a framework-agnostic CLI framework designed to allow you build artisan-like CLI apps and for use in the H3ravel framework.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",