@gilbert_oliveira/commit-wizard 2.9.4 → 2.9.5

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.
@@ -134,4 +134,4 @@ EXAMPLES:
134
134
  commit-wizard --auto # Modo totalmente autom\xE1tico
135
135
 
136
136
  Para mais informa\xE7\xF5es, visite: https://github.com/user/commit-wizard
137
- `)}function Oe(){console.log("commit-wizard v2.9.4")}async function ot(){try{let e=Ge(process.argv.slice(2));e.help&&(Ie(),process.exit(0)),e.version&&(Oe(),process.exit(0)),e.auto&&(e.silent=!0,e.yes=!0),e.silent||et("\u{1F9D9}\u200D\u2642\uFE0F Commit Wizard"),await ne(e),e.silent||tt("At\xE9 logo! \u2728")}catch(e){it.error(`Erro: ${e instanceof Error?e.message:"Erro desconhecido"}`),process.exit(1)}}import.meta.url===`file://${process.argv[1]}`&&ot();
137
+ `)}function Oe(){console.log("commit-wizard v2.9.4")}async function ot(){try{let e=Ge(process.argv.slice(2));e.help&&(Ie(),process.exit(0)),e.version&&(Oe(),process.exit(0)),e.auto&&(e.silent=!0,e.yes=!0),e.silent||et("\u{1F9D9}\u200D\u2642\uFE0F Commit Wizard"),await ne(e),e.silent||tt("At\xE9 logo! \u2728")}catch(e){it.error(`Erro: ${e instanceof Error?e.message:"Erro desconhecido"}`),process.exit(1)}}ot();
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "Commit Wizard",
4
4
  "publisher": "gilbert-oliveira",
5
5
  "description": "CLI inteligente para gerar mensagens de commit usando OpenAI",
6
- "version": "2.9.4",
6
+ "version": "2.9.5",
7
7
  "categories": [
8
8
  "Other",
9
9
  "SCM Providers"
@@ -46,7 +46,5 @@ async function run() {
46
46
  }
47
47
  }
48
48
 
49
- // Verificar se o arquivo está sendo executado diretamente
50
- if (import.meta.url === `file://${process.argv[1]}`) {
51
- run();
52
- }
49
+ // Executar sempre que o script for chamado
50
+ run();