@514labs/moose-lib 0.6.267-ci-7-g09e4deda → 0.6.267-ci-8-gef986654

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.
@@ -606,9 +606,9 @@ var Cluster = class {
606
606
  */
607
607
  bootWorkers = async (numWorkers) => {
608
608
  console.info(`Setting ${numWorkers} workers...`);
609
- const staggerDelay = process.env.NODE_ENV === "production" ? 2e3 : 0;
609
+ const staggerDelay = 2e3;
610
610
  for (let i = 0; i < numWorkers; i++) {
611
- if (i > 0 && staggerDelay > 0) {
611
+ if (i > 0) {
612
612
  await new Promise((resolve2) => setTimeout(resolve2, staggerDelay));
613
613
  console.info(
614
614
  `Starting worker ${i + 1}/${numWorkers} (staggered ${staggerDelay}ms)`
@@ -1732,23 +1732,9 @@ var loadIndex = async () => {
1732
1732
  console.log(
1733
1733
  `${workerInfo} loadIndex: registry cleared in ${Date.now() - clearStart}ms`
1734
1734
  );
1735
- if (import_process.default.env.NODE_ENV !== "production") {
1736
- console.log(`${workerInfo} loadIndex: clearing require cache...`);
1737
- const cacheStart = Date.now();
1738
- const appDir = `${import_process.default.cwd()}/${getSourceDir()}`;
1739
- Object.keys(require.cache).forEach((key) => {
1740
- if (key.startsWith(appDir)) {
1741
- delete require.cache[key];
1742
- }
1743
- });
1744
- console.log(
1745
- `${workerInfo} loadIndex: require cache cleared in ${Date.now() - cacheStart}ms`
1746
- );
1747
- } else {
1748
- console.log(
1749
- `${workerInfo} loadIndex: skipping cache clear in production mode`
1750
- );
1751
- }
1735
+ console.log(
1736
+ `${workerInfo} loadIndex: skipping require cache clear (preserving compiled modules)`
1737
+ );
1752
1738
  console.log(`${workerInfo} loadIndex: requiring index.ts...`);
1753
1739
  const requireStart = Date.now();
1754
1740
  require(`${import_process.default.cwd()}/${getSourceDir()}/index.ts`);