@mintlify/previewing 4.0.644 → 4.0.646
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.
|
@@ -58,7 +58,8 @@ const onUnlinkEvent = async (filename) => {
|
|
|
58
58
|
potentialCategory === 'staticFile' ||
|
|
59
59
|
potentialCategory === 'snippet-v2' ||
|
|
60
60
|
potentialCategory === 'css' ||
|
|
61
|
-
potentialCategory === 'js'
|
|
61
|
+
potentialCategory === 'js' ||
|
|
62
|
+
potentialCategory === 'generatedStaticFile') {
|
|
62
63
|
await fse.remove(targetPath);
|
|
63
64
|
}
|
|
64
65
|
switch (potentialCategory) {
|
|
@@ -88,6 +89,8 @@ const getTargetPath = (potentialCategory, filePath) => {
|
|
|
88
89
|
case 'potentialYamlOpenApiSpec':
|
|
89
90
|
case 'potentialJsonOpenApiSpec':
|
|
90
91
|
return pathUtil.join(NEXT_PROPS_PATH, 'openApiFiles.json');
|
|
92
|
+
case 'generatedStaticFile':
|
|
93
|
+
return pathUtil.join(NEXT_PUBLIC_PATH, filePath);
|
|
91
94
|
case 'snippet':
|
|
92
95
|
case 'staticFile':
|
|
93
96
|
case 'snippet-v2':
|
|
@@ -201,6 +204,7 @@ const onUpdateEvent = async (filename, callback) => {
|
|
|
201
204
|
}
|
|
202
205
|
case 'css':
|
|
203
206
|
case 'js':
|
|
207
|
+
case 'generatedStaticFile':
|
|
204
208
|
case 'staticFile': {
|
|
205
209
|
if (await isFileSizeValid(filePath, 5)) {
|
|
206
210
|
await fse.copy(filePath, targetPath);
|