@mikarinneoracle/oci-cdk-code-only-preview 0.0.38 → 0.0.39
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/bin/write-log-config.js +3 -0
- package/package.json +1 -1
package/bin/write-log-config.js
CHANGED
|
@@ -33,6 +33,9 @@ try {
|
|
|
33
33
|
cwd: packageRoot,
|
|
34
34
|
encoding: 'utf8',
|
|
35
35
|
shell: false,
|
|
36
|
+
// CDKTF executes in the installed package directory, but the local
|
|
37
|
+
// backend state belongs to the caller's project directory.
|
|
38
|
+
env: { ...process.env, OCI_PROJECT_DIR: projectRoot },
|
|
36
39
|
});
|
|
37
40
|
if (result.status !== 0 || !fs.existsSync(outputFile)) {
|
|
38
41
|
throw new Error((result.stderr || result.stdout || '').trim() || 'cdktf output did not produce an output file.');
|