Skip to content

Commit

Permalink
fix: not set ETS_FRAMEWORK (#215)
Browse files Browse the repository at this point in the history
fix: Revert "fix: should set ETS_FRAMEWORK to real framework package name (#214)"

This reverts commit fb3eb6a.
  • Loading branch information
fengmk2 authored Feb 6, 2023
1 parent d0be908 commit b8f1c91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
Expand Down

0 comments on commit b8f1c91

Please sign in to comment.