@brunoluizdesiqueira/bbuilder-cli 1.0.7 → 1.0.8

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.
@@ -100,7 +100,8 @@ async function getDelphiEnvironment(delphiDir) {
100
100
  (0, output_1.fatal)(`Arquivo não encontrado: ${rsvarsPath}`);
101
101
  }
102
102
  try {
103
- const result = await (0, execa_1.default)('cmd.exe', ['/d', '/s', '/c', `call "${rsvarsPath}" >nul && set`], {
103
+ const command = `call "${rsvarsPath}" >nul && set`;
104
+ const result = await (0, execa_1.default)('cmd.exe', ['/d', '/s', '/c', `"${command}"`], {
104
105
  env: process.env,
105
106
  });
106
107
  const resolved = {
@@ -110,8 +111,9 @@ async function getDelphiEnvironment(delphiDir) {
110
111
  delphiEnvCache.set(delphiDir, resolved);
111
112
  return resolved;
112
113
  }
113
- catch {
114
- (0, output_1.fatal)('Falha ao carregar o ambiente do Delphi via rsvars.bat.');
114
+ catch (error) {
115
+ const message = error instanceof Error ? error.message : String(error);
116
+ (0, output_1.fatal)(`Falha ao carregar o ambiente do Delphi via rsvars.bat (${rsvarsPath}). Detalhe: ${message}`);
115
117
  }
116
118
  }
117
119
  async function runCgrc(opts, projectName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brunoluizdesiqueira/bbuilder-cli",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "CLI de build local para projetos Delphi do Bimer",
5
5
  "license": "ISC",
6
6
  "repository": {