Skip to content
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

Merged
merged 16 commits into from
Feb 17, 2023
Merged

fix: should support windows and Node.js 14 #223

merged 16 commits into from
Feb 17, 2023

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Feb 16, 2023

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

close eggjs/egg#5146

@codecov
Copy link

codecov bot commented Feb 16, 2023

Codecov Report

Base: 79.61% // Head: 100.00% // Increases project coverage by +20.38% 🎉

Coverage data is based on head (9a3c1df) compared to base (7fedc6d).
Patch has no changes to coverable lines.

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     
Impacted Files Coverage Δ
src/bin/cli.ts
src/cmd/base.ts
src/cmd/cov.ts
src/cmd/dev.ts
src/cmd/test.ts
src/config/plugin.ts
src/index.ts
src/cmd/debug.ts
src/config/framework.ts
src/middleware/inspect.ts
... and 2 more

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -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('\'')) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

太特殊了,我还是改成 fork 来执行。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

拿到后变成啥样子了? 我印象中很多年前也是写 egg-scripts 时,被 win 的字符串转译搞疯了

@fengmk2
Copy link
Member Author

fengmk2 commented Feb 16, 2023

artus-cli/artus-cli#32 exit code 总是 0 的问题

@fengmk2 fengmk2 merged commit 8f1b709 into master Feb 17, 2023
@fengmk2 fengmk2 deleted the windows-node-14 branch February 17, 2023 00:56
fengmk2 pushed a commit that referenced this pull request Feb 17, 2023
[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))
@github-actions
Copy link

🎉 This PR is included in version 6.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

按照官网快速入门教程步骤手动创建项目启动报错
2 participants