From b8f1c914c9094c1f6e464fbee659f7a843f0b859 Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Mon, 6 Feb 2023 21:50:57 +0800 Subject: [PATCH] fix: not set ETS_FRAMEWORK (#215) fix: Revert "fix: should set ETS_FRAMEWORK to real framework package name (#214)" This reverts commit fb3eb6aa8b0b3cd02eda28e0abce0e688bfdb4b4. --- bin/postinstall.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/postinstall.js b/bin/postinstall.js index d48dfc19..3c9690b4 100755 --- a/bin/postinstall.js +++ b/bin/postinstall.js @@ -26,9 +26,8 @@ if (npmRunRoot) { if (pkg.egg.isFramework) return; // ignore when the current app don't has a framework dependencies if (!pkg.dependencies || !pkg.dependencies[frameworkPackageName]) return; - // set ETS_CWD and ETS_FRAMEWORK + // set ETS_CWD process.env.ETS_CWD = npmRunRoot; - process.env.ETS_FRAMEWORK = frameworkPackageName; console.log('[egg-bin:postinstall] run %s on %s', etsBinFile, npmRunRoot); runscript(`node ${etsBinFile}`); }