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: show every runscript log before run it #290

Merged
merged 3 commits into from
Dec 28, 2018

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Dec 27, 2018

No description provided.

@@ -360,7 +360,7 @@ function* runPostInstallTasks(options) {
const postinstallScript = pkg.scripts.postinstall;
try {
if (installScript) {
options.console.info(
options.console.warn(
Copy link
Member Author

Choose a reason for hiding this comment

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

所有 runScript 都需要打印日志出来

@codecov
Copy link

codecov bot commented Dec 28, 2018

Codecov Report

Merging #290 into master will decrease coverage by 10.09%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #290      +/-   ##
==========================================
- Coverage   92.91%   82.82%   -10.1%     
==========================================
  Files          27       20       -7     
  Lines        1947     1560     -387     
  Branches      328      328              
==========================================
- Hits         1809     1292     -517     
- Misses        138      268     +130
Impacted Files Coverage Δ
lib/local_install.js 82.91% <100%> (-14.95%) ⬇️
lib/preinstall.js 100% <100%> (ø) ⬆️
lib/prepublish.js 100% <100%> (ø) ⬆️
lib/postinstall.js 83.33% <66.66%> (-9.53%) ⬇️
lib/global_install.js 26.82% <0%> (-73.18%) ⬇️
lib/download/npm.js 70.74% <0%> (-16.12%) ⬇️
lib/utils.js 81.6% <0%> (-9.7%) ⬇️
lib/get.js 92% <0%> (-6%) ⬇️
lib/bin.js 83.78% <0%> (-5.41%) ⬇️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 052b3c2...f4534d7. Read the comment docs.

@codecov
Copy link

codecov bot commented Dec 28, 2018

Codecov Report

Merging #290 into master will decrease coverage by 1.57%.
The diff coverage is 86.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #290      +/-   ##
==========================================
- Coverage   92.91%   91.33%   -1.58%     
==========================================
  Files          27       27              
  Lines        1947     1951       +4     
  Branches      328      328              
==========================================
- Hits         1809     1782      -27     
- Misses        138      169      +31
Impacted Files Coverage Δ
lib/preuninstall.js 100% <100%> (ø) ⬆️
lib/postuninstall.js 100% <100%> (ø) ⬆️
lib/local_install.js 87.9% <100%> (-9.97%) ⬇️
lib/preinstall.js 100% <100%> (ø) ⬆️
lib/prepublish.js 100% <100%> (ø) ⬆️
lib/postinstall.js 83.33% <66.66%> (-9.53%) ⬇️
lib/install.js 97.4% <0%> (-0.52%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 052b3c2...f4534d7. Read the comment docs.

@dead-horse dead-horse merged commit 0975790 into master Dec 28, 2018
@dead-horse dead-horse deleted the add-more-tips-on-runscript branch December 28, 2018 07:00
@dead-horse
Copy link
Member

3.19.1

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