@lvce-editor/shared-process 0.28.4 → 0.29.0

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.28.4",
3
+ "version": "0.29.0",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -18,12 +18,11 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@lvce-editor/assert": "^1.2.0",
21
- "@lvce-editor/extension-host-helper-process": "0.28.4",
21
+ "@lvce-editor/extension-host-helper-process": "0.29.0",
22
22
  "@lvce-editor/ipc": "^8.2.1",
23
23
  "@lvce-editor/json-rpc": "^1.3.0",
24
24
  "@lvce-editor/jsonc-parser": "^1.2.0",
25
25
  "@lvce-editor/pretty-error": "^1.5.0",
26
- "@lvce-editor/pty-host": "0.28.4",
27
26
  "@lvce-editor/verror": "^1.2.0",
28
27
  "debug": "^4.3.4",
29
28
  "exit-hook": "^4.0.0",
@@ -31,12 +30,14 @@
31
30
  "xdg-basedir": "^5.1.0"
32
31
  },
33
32
  "optionalDependencies": {
33
+ "@lvce-editor/network-process": "^1.1.0",
34
+ "@lvce-editor/preload": "^1.0.0",
35
+ "@lvce-editor/search-process": "^1.1.0",
36
+ "@lvce-editor/pty-host": "^1.1.0",
34
37
  "open": "^10.1.0",
35
38
  "tail": "^2.2.6",
36
39
  "tmp-promise": "^3.0.3",
37
40
  "trash": "^8.1.1",
38
- "@lvce-editor/network-process": "0.28.4",
39
- "@lvce-editor/search-process": "0.28.4",
40
- "@lvce-editor/typescript-compile-process": "0.28.4"
41
+ "@lvce-editor/typescript-compile-process": "0.29.0"
41
42
  }
42
43
  }
@@ -1,3 +1,3 @@
1
1
  import * as Path from '../Path/Path.js';
2
2
  import * as Root from '../Root/Root.js';
3
- export const embedsProcessPath = Path.join(Root.root, 'packages', 'embeds-process', 'dist', 'embedsProcessMain.js');
3
+ export const embedsProcessPath = Path.join(Root.root, 'packages', 'shared-process', 'node_modules', '@lvce-editor', 'embeds-process', 'dist', 'embedsProcessMain.js');
@@ -15,7 +15,7 @@ const handleProcessExit = () => {
15
15
  };
16
16
  export const launchPtyHost = async (method) => {
17
17
  exitHook(handleProcessExit);
18
- const ptyHostPath = await PtyHostPath.getPtyHostPath();
18
+ const ptyHostPath = await PtyHostPath.ptyHostPath;
19
19
  const ptyHost = await IpcParent.create({
20
20
  method,
21
21
  path: ptyHostPath,
@@ -1 +1,2 @@
1
- export { networkProcessPath } from '@lvce-editor/network-process';
1
+ import * as ResolveBin from '../ResolveBin/ResolveBin.js';
2
+ export const networkProcessPath = ResolveBin.resolveBin('@lvce-editor/network-process');
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
41
41
  export const getSetupName = () => {
42
42
  return 'Lvce-Setup';
43
43
  };
44
- export const version = '0.28.4';
45
- export const commit = '00ff408';
46
- export const date = '2024-05-05T09:02:33.000Z';
44
+ export const version = '0.29.0';
45
+ export const commit = '6107188';
46
+ export const date = '2024-05-11T15:44:01.000Z';
47
47
  export const getVersion = () => {
48
48
  return version;
49
49
  };
@@ -1,3 +1,3 @@
1
1
  import { join } from 'node:path';
2
2
  import * as Root from '../Root/Root.js';
3
- export const preloadUrl = join(Root.root, 'packages', 'preload', 'src', 'index.js');
3
+ export const preloadUrl = join(Root.root, 'packages', 'shared-process', 'node_modules', '@lvce-editor', 'preload', 'src', 'index.js');
@@ -1,3 +1,3 @@
1
1
  import * as Path from '../Path/Path.js';
2
2
  import * as Root from '../Root/Root.js';
3
- export const processExplorerPath = Path.join(Root.root, 'packages', 'process-explorer', 'src', 'processExplorerMain.js');
3
+ export const processExplorerPath = Path.join(Root.root, 'packages', 'shared-process', 'node_modules', '@lvce-editor', 'process-explorer', 'dist', 'index.js');
@@ -1,11 +1,2 @@
1
- import * as Root from '../Root/Root.js';
2
- import * as Path from '../Path/Path.js';
3
- export const getPtyHostPath = async () => {
4
- try {
5
- const { ptyHostPath } = await import('@lvce-editor/pty-host');
6
- return ptyHostPath;
7
- }
8
- catch {
9
- return Path.join(Root.root, 'packages', 'pty-host', 'src', 'ptyHostMain.js');
10
- }
11
- };
1
+ import * as ResolveBin from '../ResolveBin/ResolveBin.js';
2
+ export const ptyHostPath = ResolveBin.resolveBin('@lvce-editor/pty-host');
@@ -0,0 +1,11 @@
1
+ import { fileURLToPath } from 'node:url';
2
+ export const resolveBin = (name) => {
3
+ try {
4
+ const uri = import.meta.resolve(name);
5
+ const path = fileURLToPath(uri);
6
+ return path;
7
+ }
8
+ catch {
9
+ return '';
10
+ }
11
+ };
@@ -1 +1,2 @@
1
- export { searchProcessPath } from '@lvce-editor/search-process';
1
+ import * as ResolveBin from '../ResolveBin/ResolveBin.js';
2
+ export const searchProcessPath = ResolveBin.resolveBin('@lvce-editor/search-process');