@lvce-editor/shared-process 0.11.11 → 0.11.12

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/shared-process",
3
- "version": "0.11.11",
3
+ "version": "0.11.12",
4
4
  "description": "Utility package for @lvce-editor/server",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -17,9 +17,9 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@babel/code-frame": "^7.18.6",
20
- "@lvce-editor/extension-host": "0.11.11",
21
- "@lvce-editor/extension-host-helper-process": "0.11.11",
22
- "@lvce-editor/pty-host": "0.11.11",
20
+ "@lvce-editor/extension-host": "0.11.12",
21
+ "@lvce-editor/extension-host-helper-process": "0.11.12",
22
+ "@lvce-editor/pty-host": "0.11.12",
23
23
  "debug": "^4.3.4",
24
24
  "execa": "^6.1.0",
25
25
  "exit-hook": "^3.1.4",
@@ -208,18 +208,24 @@ const applyOverrides = async ({ root, commitHash, pathPrefix }) => {
208
208
  Path.join(root, 'dist', commitHash, 'file-icons')
209
209
  )
210
210
  }
211
- if (pathPrefix) {
212
- await replace(Path.join(root, 'dist', 'index.html'), `favicon.ico`, `${pathPrefix}/favicon.ico`)
213
- }
214
211
  await replace(Path.join(root, 'dist', 'index.html'), `/${commitHash}`, `${pathPrefix}/${commitHash}`)
215
212
  await replace(Path.join(root, 'dist', 'index.html'), `/manifest.json`, `${pathPrefix}/manifest.json`)
216
213
 
217
- await replace(
218
- Path.join(root, 'dist', 'index.html'),
219
- '</title>',
220
- `</title>
214
+ if (pathPrefix) {
215
+ await replace(
216
+ Path.join(root, 'dist', 'index.html'),
217
+ '</title>',
218
+ `</title>
219
+ <link rel="shortcut icon" type="image/x-icon" href="${pathPrefix}/favicon.ico">`
220
+ )
221
+ } else {
222
+ await replace(
223
+ Path.join(root, 'dist', 'index.html'),
224
+ '</title>',
225
+ `</title>
221
226
  <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">`
222
- )
227
+ )
228
+ }
223
229
  await replace(Path.join(root, 'dist', 'manifest.json'), `/${commitHash}`, `${pathPrefix}/${commitHash}`)
224
230
  await replace(Path.join(root, 'dist', commitHash, 'css', 'parts', 'ViewletTitleBarButtons.css'), `/${commitHash}`, `${pathPrefix}/${commitHash}`)
225
231
  }