Skip to content

Commit

Permalink
fix: should set ETS_CWD to INIT_CWD on postinstall (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored Jan 5, 2023
1 parent 5b6abdd commit a57c1d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ if (npmRunRoot) {
if (fs.existsSync(pkgFile)) {
const pkg = require(pkgFile);
if (pkg.egg && pkg.egg.typescript) {
// set ETS_CWD
process.env.ETS_CWD = npmRunRoot;
require('egg-ts-helper/dist/bin');
}
}
Expand Down

0 comments on commit a57c1d4

Please sign in to comment.