@mintlify/previewing 4.0.1047 → 4.0.1048
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.
|
@@ -116,7 +116,8 @@ const onUnlinkEvent = async (filename, triggerRefresh, options) => {
|
|
|
116
116
|
potentialCategory === 'snippet-v2' ||
|
|
117
117
|
potentialCategory === 'css' ||
|
|
118
118
|
potentialCategory === 'js' ||
|
|
119
|
-
potentialCategory === 'generatedStaticFile'
|
|
119
|
+
potentialCategory === 'generatedStaticFile' ||
|
|
120
|
+
potentialCategory === 'skillFile') {
|
|
120
121
|
await fse.remove(targetPath);
|
|
121
122
|
}
|
|
122
123
|
switch (potentialCategory) {
|
|
@@ -171,6 +172,8 @@ const getTargetPath = (potentialCategory, filePath) => {
|
|
|
171
172
|
case 'css':
|
|
172
173
|
case 'js':
|
|
173
174
|
return pathUtil.join(NEXT_PUBLIC_PATH, filePath);
|
|
175
|
+
case 'skillFile':
|
|
176
|
+
return pathUtil.join(NEXT_PUBLIC_PATH, filePath);
|
|
174
177
|
default:
|
|
175
178
|
throw new Error('Invalid category');
|
|
176
179
|
}
|
|
@@ -353,6 +356,7 @@ const onUpdateEvent = async (filename, triggerRefresh, options = {}) => {
|
|
|
353
356
|
}
|
|
354
357
|
break;
|
|
355
358
|
}
|
|
359
|
+
case 'skillFile':
|
|
356
360
|
case 'css':
|
|
357
361
|
case 'js':
|
|
358
362
|
case 'generatedStaticFile':
|