Skip to content

Commit

Permalink
feat: add optional test step
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jun 25, 2022
1 parent 6ea8243 commit 6caa0ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/js/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ export const build = (pkg, packages) => ctx(async ($) => {
$.cwd = pkg.absPath
await $`npm run build`
console.log(`built '${pkg.name}'`)

if (pkg.manifest.scripts?.test && pkg.manifest?.release?.test) {
await $`npm run test`
console.log(`tested '${pkg.name}'`)
}
}
}

Expand Down

0 comments on commit 6caa0ab

Please sign in to comment.