css-module-sync 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/css_sync.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "css-module-sync",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Auto sync css module classes with react components",
5
5
  "author": "Max Matinpalo",
6
6
  "type": "module",
package/src/css_sync.js CHANGED
@@ -263,7 +263,7 @@ async function main() {
263
263
  console.warn(`[RENAME] Multiple orphan .module.css in ${dir}; skipping:\n` +
264
264
  orphans.map(p => `- ${path.basename(p)}`).join("\n"));
265
265
  }
266
- }, 150);
266
+ }, 50); // Decreased timeout to run before sync_file
267
267
  }
268
268
  }
269
269
 
@@ -273,7 +273,7 @@ async function main() {
273
273
  debouncers.delete(full_path);
274
274
  if (is_tsx) sync_file(full_path).catch(() => { });
275
275
  else if (FLAGS.sort) format_css_only(full_path).catch(() => { });
276
- }, 100));
276
+ }, 150)); // Increased timeout to run after rename
277
277
  });
278
278
  }
279
279
  }