Skip to content

Commit

Permalink
fix: respect --no-prefixed flags
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jun 10, 2023
1 parent 03e2da7 commit 57c42a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/js/processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ export const run = async ({cwd = process.cwd(), env, flags = {}} = {}) => within
report.setStatus('skipped', name)
return
}
if (!flags.noBuild) {
if (flags.build !== false) {
report.setStatus('building', name)
await build(pkg, _runCmd)
}
if (!flags.dryRun && !flags.noPublish) {
if (!flags.dryRun && flags.publish !== false) {
report.setStatus('publishing', name)
await publish(pkg, _runCmd)
}
Expand Down Expand Up @@ -125,7 +125,7 @@ const build = memoizeBy(async (pkg, run = runCmd, flags = {}, self = build) => w

await Promise.all([
traverseDeps({pkg, packages: pkg.context.packages, cb: async({pkg}) => self(pkg, run, flags, self)}),
pkg.changes.length === 0 && pkg.config.npmFetch && !flags.noNpmFetch
pkg.changes.length === 0 && pkg.config.npmFetch && flags.npmFetch !== false
? fetchPkg(pkg)
: Promise.resolve()
])
Expand Down

0 comments on commit 57c42a9

Please sign in to comment.