@lvce-editor/shared-process 0.11.10 → 0.11.11
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/index.js
CHANGED
|
@@ -5,12 +5,11 @@ const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
|
5
5
|
|
|
6
6
|
export const sharedProcessPath = join(__dirname, 'src', 'sharedProcessMain.js')
|
|
7
7
|
|
|
8
|
-
export const exportStatic = async ({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
8
|
+
export const exportStatic = async ({ extensionPath = process.cwd(), testPath = '', root = '' } = {}) => {
|
|
9
|
+
if (!root) {
|
|
10
|
+
throw new Error(`root argument is required`)
|
|
11
|
+
}
|
|
12
12
|
const fn = await import('./src/parts/ExportStatic/ExportStatic.js')
|
|
13
|
-
const root = process.cwd()
|
|
14
13
|
if (extensionPath !== root) {
|
|
15
14
|
extensionPath = join(root, extensionPath)
|
|
16
15
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.11",
|
|
4
4
|
"description": "Utility package for @lvce-editor/server",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@babel/code-frame": "^7.18.6",
|
|
20
|
-
"@lvce-editor/extension-host": "0.11.
|
|
21
|
-
"@lvce-editor/extension-host-helper-process": "0.11.
|
|
22
|
-
"@lvce-editor/pty-host": "0.11.
|
|
20
|
+
"@lvce-editor/extension-host": "0.11.11",
|
|
21
|
+
"@lvce-editor/extension-host-helper-process": "0.11.11",
|
|
22
|
+
"@lvce-editor/pty-host": "0.11.11",
|
|
23
23
|
"debug": "^4.3.4",
|
|
24
24
|
"execa": "^6.1.0",
|
|
25
25
|
"exit-hook": "^3.1.4",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"tmp-promise": "^3.0.3",
|
|
35
35
|
"trash": "^8.1.0",
|
|
36
36
|
"verror": "^1.10.1",
|
|
37
|
-
"ws": "^8.
|
|
37
|
+
"ws": "^8.12.0",
|
|
38
38
|
"xdg-basedir": "^5.1.0"
|
|
39
39
|
},
|
|
40
40
|
"optionalDependencies": {
|
|
@@ -18,7 +18,7 @@ const getThemeName = (dirent) => {
|
|
|
18
18
|
const replace = async (path, occurrence, replacement) => {
|
|
19
19
|
const oldContent = await FileSystem.readFile(path)
|
|
20
20
|
if (!oldContent.includes(occurrence)) {
|
|
21
|
-
throw new Error(`failed to replace occurrence ${occurrence}: Not found`)
|
|
21
|
+
throw new Error(`failed to replace occurrence ${occurrence} in ${path}: Not found`)
|
|
22
22
|
}
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
const newContent = oldContent.replaceAll(occurrence, replacement)
|