@lvce-editor/shared-process 0.0.19 → 0.0.20
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.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"debug": "^4.3.4",
|
|
18
18
|
"execa": "^6.1.0",
|
|
19
19
|
"exit-hook": "^3.0.0",
|
|
20
|
-
"fs-extra": "^10.1.0",
|
|
21
20
|
"got": "^12.1.0",
|
|
22
21
|
"is-object": "^1.0.2",
|
|
23
22
|
"json-parse-even-better-errors": "^2.3.1",
|
|
@@ -32,8 +31,8 @@
|
|
|
32
31
|
"verror": "^1.10.1",
|
|
33
32
|
"ws": "^8.8.0",
|
|
34
33
|
"xdg-basedir": "^5.1.0",
|
|
35
|
-
"@lvce-editor/pty-host": "0.0.
|
|
36
|
-
"@lvce-editor/extension-host": "0.0.
|
|
34
|
+
"@lvce-editor/pty-host": "0.0.20",
|
|
35
|
+
"@lvce-editor/extension-host": "0.0.20"
|
|
37
36
|
},
|
|
38
37
|
"optionalDependencies": {
|
|
39
38
|
"electron-clipboard-ex": "^1.3.3",
|
|
@@ -42,15 +41,12 @@
|
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
44
43
|
"@types/debug": "^4.1.7",
|
|
45
|
-
"@types/fs-extra": "^9.0.13",
|
|
46
|
-
"@types/is-ci": "^3.0.0",
|
|
47
44
|
"@types/is-object": "^1.0.2",
|
|
48
45
|
"@types/tail": "^2.2.1",
|
|
49
46
|
"@types/tar-fs": "^2.0.1",
|
|
50
47
|
"@types/verror": "^1.10.5",
|
|
51
48
|
"@types/ws": "^8.5.3",
|
|
52
|
-
"get-port": "^6.1.2"
|
|
53
|
-
"is-ci": "^3.0.1"
|
|
49
|
+
"get-port": "^6.1.2"
|
|
54
50
|
},
|
|
55
51
|
"xo": {
|
|
56
52
|
"rules": {
|
|
@@ -231,7 +231,7 @@ export const invoke = async (command, ...args) => {
|
|
|
231
231
|
await loadCommand(command)
|
|
232
232
|
if (!(command in commands)) {
|
|
233
233
|
console.warn(`[shared process] Unknown command "${command}"`)
|
|
234
|
-
|
|
234
|
+
throw new Error(`Command ${command} not found`)
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
if (typeof commands[command] !== 'function') {
|
|
@@ -12,9 +12,8 @@ export const state = {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export const copy = async (source, target) => {
|
|
15
|
-
const { copy } = await import('fs-extra')
|
|
16
15
|
try {
|
|
17
|
-
await
|
|
16
|
+
await fs.cp(source, target, { recursive: true })
|
|
18
17
|
} catch (error) {
|
|
19
18
|
throw new Error.OperationalError({
|
|
20
19
|
cause: error,
|