diff --git a/src/AppStore/src/Command/CreateCommand.php b/src/AppStore/src/Command/CreateCommand.php index 56113fb..74a2090 100644 --- a/src/AppStore/src/Command/CreateCommand.php +++ b/src/AppStore/src/Command/CreateCommand.php @@ -69,8 +69,10 @@ public function createNamespace(string $path, string $name): string public function createMineJson(string $path, string $name, PluginTypeEnum $pluginType): void { + $pluginPath = Str::replace(Plugin::PLUGIN_PATH . '/', '', $path); + $output = new \stdClass(); - $output->name = $name; + $output->name = $pluginPath ?? $name; $output->version = '1.0.0'; $output->type = $pluginType->value; $output->description = $this->input->getOption('description') ?: 'This is a sample plugin';