Skip to content

Commit

Permalink
perf: apply npmRestore to updated pkgs only
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Feb 9, 2024
1 parent 88d01fd commit daa4080
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/js/processor/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const run = async ({cwd = process.cwd(), env, flags = {}} = {}) => within

if (!pkg.releaseType) {
report.setStatus('skipped', name)
pkg.skipped = true
return
}
if (flags.build !== false) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/js/steps/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import {npmRestore} from '../api/npm.js'

export const clean = async (cwd, packages) => {
await unsetUserConfig(cwd)
await Promise.all(Object.values(packages).map(npmRestore))
await Promise.all(Object.values(packages).filter(pkg => !pkg.skipped).map(npmRestore))
}

0 comments on commit daa4080

Please sign in to comment.