@lvce-editor/shared-process 0.8.2 → 0.8.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.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -20,16 +20,13 @@
|
|
|
20
20
|
"node": ">=16"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@lvce-editor/extension-host": "0.8.
|
|
24
|
-
"@lvce-editor/pty-host": "0.8.
|
|
25
|
-
"chokidar": "^3.5.3",
|
|
23
|
+
"@lvce-editor/extension-host": "0.8.3",
|
|
24
|
+
"@lvce-editor/pty-host": "0.8.3",
|
|
26
25
|
"debug": "^4.3.4",
|
|
27
26
|
"execa": "^6.1.0",
|
|
28
27
|
"exit-hook": "^3.1.0",
|
|
29
28
|
"got": "^12.5.1",
|
|
30
29
|
"is-object": "^1.0.2",
|
|
31
|
-
"json-parse-even-better-errors": "^2.3.1",
|
|
32
|
-
"jsonc-parser": "^3.2.0",
|
|
33
30
|
"lines-and-columns": "^2.0.3",
|
|
34
31
|
"open": "^8.4.0",
|
|
35
32
|
"p-queue": "^7.3.0",
|
package/src/parts/Cli/Cli.js
CHANGED
|
@@ -217,20 +217,21 @@ export const rename = async (oldPath, newPath) => {
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
220
|
+
// TODO have a separate process for file watching
|
|
221
|
+
// export const watch = async (path, options) => {
|
|
222
|
+
// // let state = 'loading'
|
|
223
|
+
// const chokidar = await import('chokidar')
|
|
224
|
+
// const watcher = chokidar.watch(`${path}`, {
|
|
225
|
+
// ignoreInitial: true,
|
|
226
|
+
// })
|
|
226
227
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
// if (options.onAll) {
|
|
229
|
+
// watcher.on('all', options.onAll)
|
|
230
|
+
// }
|
|
231
|
+
// return watcher
|
|
231
232
|
|
|
232
|
-
|
|
233
|
-
}
|
|
233
|
+
// // const { default: chokidar } = await import('chokidar')
|
|
234
|
+
// }
|
|
234
235
|
|
|
235
236
|
export const getPathSeparator = () => {
|
|
236
237
|
return Platform.getPathSeparator()
|