Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nestjs/nest-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 10.4.3
Choose a base ref
...
head repository: nestjs/nest-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3cb703f9ce032363f2660bf1d7352c187196be1d
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 9, 2024

  1. Copy the full SHA
    3cb703f View commit details
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/compiler/assets-manager.ts
5 changes: 3 additions & 2 deletions lib/compiler/assets-manager.ts
Original file line number Diff line number Diff line change
@@ -131,12 +131,13 @@ export class AssetsManager {
const { action, item, path, sourceRoot, watchAssetsMode } = option;
const isWatchEnabled = watchAssetsMode || item.watchAssets;

const assetCheckKey = path + (item.outDir ?? '');
// Allow to do action for the first time before check watchMode
if (!isWatchEnabled && this.watchAssetsKeyValue[path]) {
if (!isWatchEnabled && this.watchAssetsKeyValue[assetCheckKey]) {
return;
}
// Set path value to true for watching the first time
this.watchAssetsKeyValue[path] = true;
this.watchAssetsKeyValue[assetCheckKey] = true;
// Set action to true to avoid watches getting cutoff
this.actionInProgress = true;