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

chore: fix minor issues in build scripts #7458

Merged
merged 3 commits into from Jun 4, 2020
Merged

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented Jun 3, 2020

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

This fixes a couple of minor issues (see GitHub comments).

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly. (PR: #)
  • I have added tests to cover my changes (if not applicable, please state why)
  • All new and existing tests are passing.

@codecov-commenter
Copy link

codecov-commenter commented Jun 3, 2020

Codecov Report

Merging #7458 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev    #7458   +/-   ##
=======================================
  Coverage   70.32%   70.32%           
=======================================
  Files          88       88           
  Lines        3704     3704           
  Branches     1010     1010           
=======================================
  Hits         2605     2605           
  Misses        892      892           
  Partials      207      207           
Flag Coverage Δ
#unittests 70.32% <ø> (ø)

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 be726e4...0e190e9. Read the comment docs.

Comment on lines -242 to -246
// Encountered an unrecoverable error
case 'FATAL':
this.formatError(event.error)
return this.logger.fatal(event.error)

Copy link
Member Author

Choose a reason for hiding this comment

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

There is no longer a FATAL event.

rollup/rollup#3336

@@ -27,7 +29,7 @@ async function main () {
// Step 1: Apply suffixes
for (const pkg of workspacePackages) {
if (pkg.options.suffix && pkg.options.suffix.length) {
await pkg.suffixAndVersion()
pkg.suffixAndVersion()
Copy link
Member Author

Choose a reason for hiding this comment

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

This is not an async method.

exec (command, args, silent = false) {
const r = spawn.sync(command, args.split(' '), { cwd: this.options.rootDir }, { env: process.env })
const r = spawn.sync(command, args.split(' '), { cwd: this.options.rootDir, env: process.env })
Copy link
Member Author

Choose a reason for hiding this comment

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

cross-spawn doesn't take a third parameter

@pi0
Copy link
Member

pi0 commented Jun 3, 2020

Thanks @danielroe for improvements ☺️

But i think having tsdocs for internal build scripts is unnecessary complexity until we migrate repo to typescript for nuxt3

@danielroe danielroe changed the title chore: add jsdoc types for scripts chore: fix minor issues in build scripts Jun 3, 2020
@danielroe danielroe marked this pull request as ready for review June 3, 2020 23:24
@pi0 pi0 merged commit 893cfe7 into nuxt:dev Jun 4, 2020
@danielroe danielroe deleted the incremental-tsdoc branch June 4, 2020 08:27
@pi0 pi0 mentioned this pull request Jun 10, 2020
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants