@magmonium/cli 0.7.13 → 0.7.14
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.
|
@@ -78,9 +78,16 @@ function assetsWcCommand(program) {
|
|
|
78
78
|
? `🔨 Compiling assets for ${options.app} + libs/one...\n`
|
|
79
79
|
: '🔨 Compiling all assets...\n'
|
|
80
80
|
);
|
|
81
|
+
// This compile is the outer pipeline's own work, not a nested re-entry:
|
|
82
|
+
// hand the child an env without the marker set above, or its guard
|
|
83
|
+
// skips and `public/assets` is never produced. The child sets the marker
|
|
84
|
+
// again itself, so nx builds nested under it are still refused.
|
|
85
|
+
const compileEnv = { ...process.env };
|
|
86
|
+
delete compileEnv.MAG_ASSETS_PIPELINE;
|
|
81
87
|
try {
|
|
82
88
|
execSync(`node "${cliScript}" assets --config "${compileConfigPath}"`, {
|
|
83
89
|
stdio: 'inherit',
|
|
90
|
+
env: compileEnv,
|
|
84
91
|
});
|
|
85
92
|
} catch {
|
|
86
93
|
if (tempConfigPath && fs.existsSync(tempConfigPath)) fs.unlinkSync(tempConfigPath);
|