@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.
- package/dist/build/compiler.js +5 -3
- package/package.json +1 -1
package/dist/build/compiler.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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) {
|