Skip to content

Update watcher rules - #6420

Merged
cknitt merged 4 commits into
rescript-lang:masterfrom
DZakh-forks:update-watch-rules
Oct 10, 2023
Merged

cknitt merged 4 commits into
rescript-lang:masterfrom
DZakh-forks:update-watch-rules

Conversation

@DZakh

@DZakh DZakh commented Sep 30, 2023

Copy link
Copy Markdown
Member
  1. Recompile only on relevant file changes. Fixes the problem of recompiling on .ts/.css file changes in mixed codebases.
  2. Remove gentypeconfig retrieval logic overhead, making all scripts a little bit faster.

@DZakh

DZakh commented Sep 30, 2023

Copy link
Copy Markdown
Member Author

Ready for review

Comment thread rescript Resolved
@DZakh
DZakh force-pushed the update-watch-rules branch from af114fc to d6deab5 Compare October 9, 2023 19:23
Comment thread rescript Outdated

let resConfig = "rescript.json";
let resConfigFile = path.join(cwd, resConfig);
if (!fs.existsSync(resConfigFile)) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've moved the piece so it doesn't run for other non-watch commands.

@cknitt
cknitt merged commit 79cea54 into rescript-lang:master Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants