@lvce-editor/shared-process 0.6.0 → 0.6.1
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.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "",
|
|
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.6.
|
|
24
|
-
"@lvce-editor/pty-host": "0.6.
|
|
23
|
+
"@lvce-editor/extension-host": "0.6.1",
|
|
24
|
+
"@lvce-editor/pty-host": "0.6.1",
|
|
25
25
|
"chokidar": "^3.5.3",
|
|
26
26
|
"debug": "^4.3.4",
|
|
27
27
|
"execa": "^6.1.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { extensionHostPath } from '@lvce-editor/extension-host'
|
|
2
2
|
import { homedir, tmpdir } from 'node:os'
|
|
3
|
-
import { sep } from 'node:path'
|
|
3
|
+
import { resolve, sep } from 'node:path'
|
|
4
4
|
import { pathToFileURL } from 'node:url'
|
|
5
5
|
import { xdgCache, xdgConfig, xdgData, xdgState } from 'xdg-basedir'
|
|
6
6
|
import * as Path from '../Path/Path.js'
|
|
@@ -94,7 +94,6 @@ export const getRecentlyOpenedPath = () => {
|
|
|
94
94
|
export const getDefaultSettingsPath = () => {
|
|
95
95
|
return Path.join(Root.root, 'config', 'defaultSettings.json')
|
|
96
96
|
}
|
|
97
|
-
|
|
98
97
|
export const setEnvironmentVariables = (variables) => {
|
|
99
98
|
for (const [key, value] of Object.entries(variables)) {
|
|
100
99
|
process.env[key] = value
|
|
@@ -122,7 +121,11 @@ export const getTmpDir = () => {
|
|
|
122
121
|
}
|
|
123
122
|
|
|
124
123
|
export const getOnlyExtensionPath = () => {
|
|
125
|
-
|
|
124
|
+
const onlyExtensionPath = process.env.ONLY_EXTENSION
|
|
125
|
+
if (onlyExtensionPath) {
|
|
126
|
+
return resolve(onlyExtensionPath)
|
|
127
|
+
}
|
|
128
|
+
return ''
|
|
126
129
|
}
|
|
127
130
|
|
|
128
131
|
export const getAppDir = () => {
|
|
@@ -41,7 +41,6 @@ const getOverrides = () => {
|
|
|
41
41
|
const argvSliced = process.argv.slice(2)
|
|
42
42
|
const overrides = {}
|
|
43
43
|
for (const argv of argvSliced) {
|
|
44
|
-
console.log({ argv })
|
|
45
44
|
if (argv.startsWith('--theme=')) {
|
|
46
45
|
overrides['workbench.colorTheme'] = argv.slice('--theme='.length)
|
|
47
46
|
}
|