Skip to content

Commit

Permalink
Merge pull request #11785 from thesujai/devserver-with-kds
Browse files Browse the repository at this point in the history
Watch core for changes if KDS option is provided, in devserver-with-kds
  • Loading branch information
rtibbles committed Feb 24, 2024
2 parents 2c34515 + fc3a453 commit 11f8ead
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/kolibri-tools/lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ program
}
if (options.watchonly.length) {
const unwatchedBundles = [];
// Watch core for changes if KDS option is provided; all KDS components are linked to core.
if (options.requireKdsPath && !options.watchonly.includes('core')) {
options.watchonly.push('core');
}
const findModuleName = bundleDatum => {
return !options.watchonly.some(m => bundleDatum.module_path.includes(m));
};
Expand Down

0 comments on commit 11f8ead

Please sign in to comment.