@lvce-editor/shared-process 0.84.2 → 0.84.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.84.2",
3
+ "version": "0.84.3",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@lvce-editor/assert": "1.5.1",
21
21
  "@lvce-editor/auth-process": "1.6.0",
22
- "@lvce-editor/extension-host-helper-process": "0.84.2",
22
+ "@lvce-editor/extension-host-helper-process": "0.84.3",
23
23
  "@lvce-editor/ipc": "16.0.0",
24
24
  "@lvce-editor/json-rpc": "8.0.0",
25
25
  "@lvce-editor/jsonc-parser": "1.5.0",
@@ -2,6 +2,6 @@ import { join } from 'path';
2
2
  import { fileURLToPath } from 'url';
3
3
  export const getBuiltinExtensionsPath = () => {
4
4
  const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'));
5
- const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '751db1a', 'extensions');
5
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '5165d68', 'extensions');
6
6
  return builtinExtensionsPath;
7
7
  };
@@ -383,7 +383,7 @@ const isTestFile = (file) => {
383
383
  return file.endsWith('.js') || file.endsWith('.ts');
384
384
  };
385
385
  const getTestFiles = (testFilesRaw) => {
386
- return testFilesRaw.map(getName).filter(isTestFile);
386
+ return testFilesRaw.filter(isTestFile).map(getName);
387
387
  };
388
388
  const transpileFile = (typescript, content) => {
389
389
  const result = typescript.transpileModule(content, {
@@ -458,13 +458,17 @@ const addTestFiles = async ({ testPath, commitHash, root, pathPrefix }) => {
458
458
  await transpileFiles(distDirentsPath);
459
459
  const testFilesRaw = await FileSystem.readDir(`${testRoot}/src`);
460
460
  const testFiles = getTestFiles(testFilesRaw);
461
- await FileSystem.mkdir(`${root}/dist/${commitHash}/tests`);
462
- await FileSystem.mkdir(`${root}/dist/tests`);
461
+ const hashTestsPath = `${root}/dist/${commitHash}/tests`;
462
+ const rootTestsPath = `${root}/dist/tests`;
463
+ await FileSystem.mkdir(hashTestsPath);
464
+ await FileSystem.mkdir(rootTestsPath);
463
465
  for (const testFile of testFiles) {
464
- await FileSystem.copyFile(`${root}/dist/index.html`, `${root}/dist/tests/${testFile}.html`);
466
+ await FileSystem.copyFile(`${root}/dist/index.html`, `${hashTestsPath}/${testFile}.html`);
467
+ await FileSystem.copyFile(`${root}/dist/index.html`, `${rootTestsPath}/${testFile}.html`);
465
468
  }
466
469
  const testOverviewHtml = generateTestOverviewHtml(testFiles);
467
- await FileSystem.writeFile(`${root}/dist/tests/index.html`, testOverviewHtml);
470
+ await FileSystem.writeFile(`${hashTestsPath}/index.html`, testOverviewHtml);
471
+ await FileSystem.writeFile(`${rootTestsPath}/index.html`, testOverviewHtml);
468
472
  };
469
473
  const resolveServerStaticPath = (root) => {
470
474
  const guessOne = Path.join(root, 'node_modules', '@lvce-editor', 'server', 'static');
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
41
41
  export const getSetupName = () => {
42
42
  return 'Lvce-Setup';
43
43
  };
44
- export const version = '0.84.2';
45
- export const commit = '751db1a';
46
- export const date = '2026-06-19T13:38:58.000Z';
44
+ export const version = '0.84.3';
45
+ export const commit = '5165d68';
46
+ export const date = '2026-06-20T08:39:27.000Z';
47
47
  export const getVersion = () => {
48
48
  return version;
49
49
  };
@@ -1,5 +1,5 @@
1
1
  import { join } from 'node:path';
2
2
  import * as Root from '../Root/Root.js';
3
3
  export const getPreloadUrl = () => {
4
- return join(Root.root, 'static', '751db1a', 'packages', 'preload', 'dist', 'index.js');
4
+ return join(Root.root, 'static', '5165d68', 'packages', 'preload', 'dist', 'index.js');
5
5
  };