@lvce-editor/shared-process 0.125.22 → 0.125.23

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.125.22",
3
+ "version": "0.125.23",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -22,8 +22,9 @@ const serializeConfig = (config, indentation) => {
22
22
  export const addCustomPathsToIndexHtml = async (content, runtimeConfig = {}) => {
23
23
  let preferences = {}
24
24
  if (!Platform.isProduction) {
25
- preferences = ApplyCustomWorkerPathCliOverride.applyCustomWorkerPathCliOverride(await Preferences.getUserPreferences())
25
+ preferences = await Preferences.getUserPreferences()
26
26
  }
27
+ preferences = ApplyCustomWorkerPathCliOverride.applyCustomWorkerPathCliOverride({ ...preferences, ...Preferences.getOverrides() })
27
28
  const linkedWorkerPreferences = await LinkedWorkerPreferences.getLinkedWorkerPreferences()
28
29
  const config = { ...GetCustomPathsConfig.getCustomPathsConfig({ ...preferences, ...linkedWorkerPreferences }), ...runtimeConfig }
29
30
  if (Object.keys(config).length === 0) {
@@ -50,10 +51,12 @@ export const addCustomPathsToIndexHtml = async (content, runtimeConfig
50
51
  }
51
52
  : {}),
52
53
  }
53
- newContent = newContent.toString().replace(configElementPattern, (_match, openingTag, _config, closingTag, index) => {
54
- const indentation = getHtmlIndentation(newContent.toString(), index)
55
- return `${openingTag}\n${serializeConfig(mergedConfig, indentation)}\n${indentation}${closingTag}`
56
- })
54
+ newContent = newContent
55
+ .toString()
56
+ .replace(configElementPattern, (_match, openingTag, _config, closingTag, index) => {
57
+ const indentation = getHtmlIndentation(newContent.toString(), index)
58
+ return `${openingTag}\n${serializeConfig(mergedConfig, indentation)}\n${indentation}${closingTag}`
59
+ })
57
60
  } else {
58
61
  newContent = newContent.toString().replace(
59
62
  '</title>',
@@ -3,6 +3,6 @@ import { fileURLToPath } from 'url'
3
3
 
4
4
  export const getBuiltinExtensionsPath = () => {
5
5
  const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'))
6
- const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '2d6096f', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '453fa6a', 'extensions')
7
7
  return builtinExtensionsPath
8
8
  }
@@ -56,11 +56,11 @@ export const getSetupName = () => {
56
56
  return 'Lvce-Setup'
57
57
  }
58
58
 
59
- export const version = '0.125.22'
59
+ export const version = '0.125.23'
60
60
 
61
- export const commit = '2d6096f'
61
+ export const commit = '453fa6a'
62
62
 
63
- export const date = '2026-10-26T10:31:08.000Z'
63
+ export const date = '2026-10-26T11:19:53.000Z'
64
64
 
65
65
  export const getVersion = () => {
66
66
  return version
@@ -45,12 +45,16 @@ export const getDefaultPreferences = async () => {
45
45
  // TODO efficiently load preferences -> first load cached preferences
46
46
  // -> on idle check preferences
47
47
 
48
- const getOverrides = () => {
48
+ export const getOverrides = () => {
49
49
  const argvSliced = Process.argv.slice(2)
50
50
  const overrides = {}
51
51
  for (const argv of argvSliced) {
52
52
  if (argv.startsWith('--theme=')) {
53
53
  overrides['workbench.colorTheme'] = argv.slice('--theme='.length)
54
+ } else if (argv.startsWith('--process-explorer=')) {
55
+ overrides['develop.processExplorerPath'] = argv.slice('--process-explorer='.length)
56
+ } else if (argv.startsWith('--process-explorer-worker=')) {
57
+ overrides['develop.processExplorerWorkerPath'] = argv.slice('--process-explorer-worker='.length)
54
58
  }
55
59
  }
56
60
  return overrides
@@ -2,5 +2,5 @@ import { join } from 'node:path'
2
2
  import * as Root from '../Root/Root.js'
3
3
 
4
4
  export const getPreloadUrl = () => {
5
- return join(Root.root, 'static', '2d6096f', 'packages', 'preload', 'dist', 'index.js')
5
+ return join(Root.root, 'static', '453fa6a', 'packages', 'preload', 'dist', 'index.js')
6
6
  }