-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: should support windows and Node.js 14 #223
Conversation
Codecov ReportBase: 79.61% // Head: 100.00% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #223 +/- ##
============================================
+ Coverage 79.61% 100.00% +20.38%
============================================
Files 25 13 -12
Lines 785 95 -690
Branches 141 19 -122
============================================
- Hits 625 95 -530
+ Misses 139 0 -139
+ Partials 21 0 -21 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
scripts/start-cluster.js
Outdated
@@ -1,6 +1,11 @@ | |||
const debug = require('util').debuglog('egg-bin:lib:start-cluster'); | |||
|
|||
debug('argv: %o', process.argv); | |||
const options = JSON.parse(process.argv[2]); | |||
let optionsJSONString = process.argv[2]; | |||
if (process.platform === 'win32' && optionsJSONString.startsWith('\'')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
太特殊了,我还是改成 fork 来执行。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
拿到后变成啥样子了? 我印象中很多年前也是写 egg-scripts 时,被 win 的字符串转译搞疯了
artus-cli/artus-cli#32 exit code 总是 0 的问题 |
[skip ci] ## [6.1.2](v6.1.1...v6.1.2) (2023-02-17) ### Bug Fixes * should support windows and Node.js 14 ([#223](#223)) ([8f1b709](8f1b709))
🎉 This PR is included in version 6.1.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Checklist
npm test
passesAffected core subsystem(s)
Description of change
close eggjs/egg#5146