@mikarinneoracle/oci-cdk-code-only-preview 0.0.17 → 0.0.18
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/ocdk.js +9 -12
- package/package.json +1 -1
package/bin/ocdk.js
CHANGED
|
@@ -122,18 +122,15 @@ if (command === 'tail:execution-log') {
|
|
|
122
122
|
const projectDir = process.cwd();
|
|
123
123
|
const projectScript = path.join(projectDir, 'tail-function-logs.js');
|
|
124
124
|
if (fs.existsSync(projectScript)) {
|
|
125
|
-
//
|
|
126
|
-
//
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
});
|
|
135
|
-
if (configureLogs.status !== 0) process.exit(configureLogs.status ?? 1);
|
|
136
|
-
}
|
|
125
|
+
// Refresh on every run. Older generated scripts can have empty defaults
|
|
126
|
+
// instead of placeholders, so inspecting their content is not reliable.
|
|
127
|
+
const configureLogs = spawnSync('node', [path.join(root, 'bin', 'write-log-config.js')], {
|
|
128
|
+
stdio: 'inherit',
|
|
129
|
+
cwd: projectDir,
|
|
130
|
+
shell: false,
|
|
131
|
+
env: process.env,
|
|
132
|
+
});
|
|
133
|
+
if (configureLogs.status !== 0) process.exit(configureLogs.status ?? 1);
|
|
137
134
|
const result = spawnSync('node', [projectScript, ...args.slice(1)], {
|
|
138
135
|
stdio: 'inherit',
|
|
139
136
|
cwd: projectDir,
|