Skip to content

Commit

Permalink
chore(publish): restrict change detection to src directory
Browse files Browse the repository at this point in the history
since package.json is updated a lot by the cipublish script itself, that basically means every release releases all packages. Changes to non-src directories not yielding releases should be fine. For false-negatives, we can still trigger manually.
  • Loading branch information
TkDodo committed Aug 26, 2022
1 parent e0405fa commit cd89dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async function run() {
? packages
: changedFiles.reduce((changedPackages, file) => {
const pkg = packages.find((p) =>
file.startsWith(path.join('packages', p.packageDir)),
file.startsWith(path.join('packages', p.packageDir, p.srcDir)),
)
if (pkg && !changedPackages.find((d) => d.name === pkg.name)) {
changedPackages.push(pkg)
Expand Down

0 comments on commit cd89dc2

Please sign in to comment.