@mintlify/previewing 4.0.840 → 4.0.842

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.
@@ -107,9 +107,7 @@ const onUnlinkEvent = async (filename, options) => {
107
107
  await fse.emptyDir(NEXT_PUBLIC_PATH);
108
108
  await fse.emptyDir(NEXT_PROPS_PATH);
109
109
  const prebuildResult = await prebuild(CMD_EXEC_PATH, options);
110
- if (prebuildResult) {
111
- await initializeImportCache(CMD_EXEC_PATH, prebuildResult.fileImportsMap);
112
- }
110
+ await initializeImportCache(CMD_EXEC_PATH, prebuildResult?.fileImportsMap);
113
111
  }
114
112
  catch (err) {
115
113
  console.error('Error rebuilding after .mintignore deletion:', err);
@@ -247,9 +245,7 @@ const onUpdateEvent = async (filename, callback, options = {}) => {
247
245
  await fse.emptyDir(NEXT_PUBLIC_PATH);
248
246
  await fse.emptyDir(NEXT_PROPS_PATH);
249
247
  const prebuildResult = await prebuild(CMD_EXEC_PATH, options);
250
- if (prebuildResult) {
251
- await initializeImportCache(CMD_EXEC_PATH, prebuildResult.fileImportsMap);
252
- }
248
+ await initializeImportCache(CMD_EXEC_PATH, prebuildResult?.fileImportsMap);
253
249
  }
254
250
  catch (err) {
255
251
  console.error(err.message);