@modern-js/app-tools 2.58.1-alpha.4 → 2.58.1-alpha.6

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.
@@ -211,13 +211,13 @@ const traceFiles = async ({ entryFiles, serverRootDir, base = "/", cacheOptions,
211
211
  if (analysisCache || fileCache || symlinkCache) {
212
212
  await import_utils.fs.ensureDir(cacheDir);
213
213
  if (cache.analysisCache && analysisCache) {
214
- await writeCache(analysisCacheFile, cache.analysisCache);
214
+ writeCache(analysisCacheFile, cache.analysisCache);
215
215
  }
216
216
  if (cache.fileCache && fileCache) {
217
- await writeCache(fileCacheFile, cache.fileCache);
217
+ writeCache(fileCacheFile, cache.fileCache);
218
218
  }
219
219
  if (cache.symlinkCache && symlinkCache) {
220
- await writeCache(symlinkCacheFile, cache.symlinkCache);
220
+ writeCache(symlinkCacheFile, cache.symlinkCache);
221
221
  }
222
222
  }
223
223
  return res;
@@ -580,7 +580,7 @@ var traceFiles = function() {
580
580
  if (!(analysisCache || fileCache || symlinkCache))
581
581
  return [
582
582
  3,
583
- 11
583
+ 6
584
584
  ];
585
585
  return [
586
586
  4,
@@ -588,45 +588,17 @@ var traceFiles = function() {
588
588
  ];
589
589
  case 5:
590
590
  _state.sent();
591
- if (!(cache.analysisCache && analysisCache))
592
- return [
593
- 3,
594
- 7
595
- ];
596
- return [
597
- 4,
598
- writeCache(analysisCacheFile, cache.analysisCache)
599
- ];
591
+ if (cache.analysisCache && analysisCache) {
592
+ writeCache(analysisCacheFile, cache.analysisCache);
593
+ }
594
+ if (cache.fileCache && fileCache) {
595
+ writeCache(fileCacheFile, cache.fileCache);
596
+ }
597
+ if (cache.symlinkCache && symlinkCache) {
598
+ writeCache(symlinkCacheFile, cache.symlinkCache);
599
+ }
600
+ _state.label = 6;
600
601
  case 6:
601
- _state.sent();
602
- _state.label = 7;
603
- case 7:
604
- if (!(cache.fileCache && fileCache))
605
- return [
606
- 3,
607
- 9
608
- ];
609
- return [
610
- 4,
611
- writeCache(fileCacheFile, cache.fileCache)
612
- ];
613
- case 8:
614
- _state.sent();
615
- _state.label = 9;
616
- case 9:
617
- if (!(cache.symlinkCache && symlinkCache))
618
- return [
619
- 3,
620
- 11
621
- ];
622
- return [
623
- 4,
624
- writeCache(symlinkCacheFile, cache.symlinkCache)
625
- ];
626
- case 10:
627
- _state.sent();
628
- _state.label = 11;
629
- case 11:
630
602
  return [
631
603
  2,
632
604
  res
@@ -170,13 +170,13 @@ const traceFiles = async ({ entryFiles, serverRootDir, base = "/", cacheOptions,
170
170
  if (analysisCache || fileCache || symlinkCache) {
171
171
  await fse.ensureDir(cacheDir);
172
172
  if (cache.analysisCache && analysisCache) {
173
- await writeCache(analysisCacheFile, cache.analysisCache);
173
+ writeCache(analysisCacheFile, cache.analysisCache);
174
174
  }
175
175
  if (cache.fileCache && fileCache) {
176
- await writeCache(fileCacheFile, cache.fileCache);
176
+ writeCache(fileCacheFile, cache.fileCache);
177
177
  }
178
178
  if (cache.symlinkCache && symlinkCache) {
179
- await writeCache(symlinkCacheFile, cache.symlinkCache);
179
+ writeCache(symlinkCacheFile, cache.symlinkCache);
180
180
  }
181
181
  }
182
182
  return res;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.58.1-alpha.4",
18
+ "version": "2.58.1-alpha.6",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -89,20 +89,20 @@
89
89
  "mlly": "^1.6.1",
90
90
  "pkg-types": "^1.1.0",
91
91
  "std-env": "^3.7.0",
92
- "@modern-js/node-bundle-require": "2.58.0",
93
92
  "@modern-js/core": "2.58.0",
94
- "@modern-js/plugin-lint": "2.58.0",
93
+ "@modern-js/node-bundle-require": "2.58.0",
95
94
  "@modern-js/plugin": "2.58.0",
96
- "@modern-js/prod-server": "2.58.0",
97
95
  "@modern-js/plugin-i18n": "2.58.0",
98
- "@modern-js/rsbuild-plugin-esbuild": "2.58.0",
99
- "@modern-js/server": "2.58.0",
96
+ "@modern-js/plugin-lint": "2.58.0",
100
97
  "@modern-js/server-core": "2.58.0",
98
+ "@modern-js/plugin-data-loader": "2.58.0",
99
+ "@modern-js/uni-builder": "2.58.0",
101
100
  "@modern-js/types": "2.58.0",
102
- "@modern-js/server-utils": "2.58.0",
101
+ "@modern-js/server": "2.58.0",
103
102
  "@modern-js/utils": "2.58.0",
104
- "@modern-js/uni-builder": "2.58.0",
105
- "@modern-js/plugin-data-loader": "2.58.0"
103
+ "@modern-js/prod-server": "2.58.0",
104
+ "@modern-js/rsbuild-plugin-esbuild": "2.58.0",
105
+ "@modern-js/server-utils": "2.58.0"
106
106
  },
107
107
  "devDependencies": {
108
108
  "@rsbuild/plugin-swc": "1.0.1-beta.10",