@lvce-editor/shared-process 0.10.2 → 0.10.3

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.10.2",
3
+ "version": "0.10.3",
4
4
  "description": "Utility package for @lvce-editor/server",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -20,8 +20,8 @@
20
20
  "node": ">=16"
21
21
  },
22
22
  "dependencies": {
23
- "@lvce-editor/extension-host": "0.10.2",
24
- "@lvce-editor/pty-host": "0.10.2",
23
+ "@lvce-editor/extension-host": "0.10.3",
24
+ "@lvce-editor/pty-host": "0.10.3",
25
25
  "debug": "^4.3.4",
26
26
  "execa": "^6.1.0",
27
27
  "exit-hook": "^3.1.0",
@@ -588,6 +588,14 @@ const addExtension = async ({ root, commitHash, pathPrefix }) => {
588
588
  * @param {{root:string, pathPrefix:string }} param0
589
589
  */
590
590
  export const exportStatic = async ({ root, pathPrefix }) => {
591
+ if (pathPrefix === 'auto') {
592
+ const extensionJson = await readExtensionManifest(
593
+ Path.join(root, 'extension.json')
594
+ )
595
+ const id = extensionJson.id
596
+ const [author, name] = id.split('.')
597
+ pathPrefix = `/${name}`
598
+ }
591
599
  const dirents = await FileSystem.readDir(
592
600
  Path.join(root, 'node_modules', '@lvce-editor', 'server', 'static')
593
601
  )