@lvce-editor/shared-process 0.0.18 → 0.0.19
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.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"verror": "^1.10.1",
|
|
33
33
|
"ws": "^8.8.0",
|
|
34
34
|
"xdg-basedir": "^5.1.0",
|
|
35
|
-
"@lvce-editor/pty-host": "0.0.
|
|
36
|
-
"@lvce-editor/extension-host": "0.0.
|
|
35
|
+
"@lvce-editor/pty-host": "0.0.19",
|
|
36
|
+
"@lvce-editor/extension-host": "0.0.19"
|
|
37
37
|
},
|
|
38
38
|
"optionalDependencies": {
|
|
39
39
|
"electron-clipboard-ex": "^1.3.3",
|
|
@@ -8,13 +8,17 @@ import * as ReadJson from '../JsonFile/JsonFile.js'
|
|
|
8
8
|
import * as Path from '../Path/Path.js'
|
|
9
9
|
import * as Platform from '../Platform/Platform.js'
|
|
10
10
|
import * as Queue from '../Queue/Queue.js'
|
|
11
|
+
import path from 'node:path'
|
|
11
12
|
|
|
12
13
|
export const state = {
|
|
13
14
|
async getExtensions() {
|
|
15
|
+
// TODO only read from env once
|
|
16
|
+
const builtinExtensions = await getBuiltinExtensions()
|
|
14
17
|
if (process.env.ONLY_EXTENSION) {
|
|
15
|
-
|
|
18
|
+
const absolutePath = path.resolve(process.env.ONLY_EXTENSION)
|
|
19
|
+
const onlyExtension = await getExtensionManifests([absolutePath])
|
|
20
|
+
return [...builtinExtensions, ...onlyExtension]
|
|
16
21
|
}
|
|
17
|
-
const builtinExtensions = await getBuiltinExtensions()
|
|
18
22
|
const installedExtensions = await getInstalledExtensions()
|
|
19
23
|
return [...builtinExtensions, ...installedExtensions]
|
|
20
24
|
},
|