Skip to content

Commit

Permalink
fix: should set ETS_FRAMEWORK to real framework package name (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored Feb 3, 2023
1 parent 0ef33c1 commit fb3eb6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ 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
// set ETS_CWD and ETS_FRAMEWORK
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 fb3eb6a

Please sign in to comment.