Просмотр исходного кода

feat: resolution mode link to runtime

imccyu 2 недель назад
Родитель
Сommit
9ddef327a4
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      apps/cli/src/profile-boot.ts
  2. 1 1
      apps/desktop-host/src/index.ts

+ 1 - 1
apps/cli/src/profile-boot.ts

@@ -259,7 +259,7 @@ export async function runProfile(options: RunProfileOptions): Promise<{ ctx: Con
   )
 
   const packaged = (process as NodeJS.Process & { pkg?: unknown }).pkg !== undefined
-  const resolutionMode = packaged ? 'runtime' : options.resolutionMode ?? 'link'
+  const resolutionMode = packaged ? 'runtime' : options.resolutionMode ?? 'runtime'
   const app: { current?: Context } = {}
   let disposal: Promise<void> | undefined
   const dispose = (): Promise<void> => disposal ??= (async () => {

+ 1 - 1
apps/desktop-host/src/index.ts

@@ -18,7 +18,7 @@ async function main(): Promise<void> {
   const application = runProfile({
     environment: loadLayeredEnv('dsh'),
     profile: 'desktop',
-    resolutionMode: process.argv[5] === 'runtime' ? 'runtime' : 'link',
+    resolutionMode: 'runtime',
     resolvedProfile: { profile, installAnchor },
     patchFiles: [],
     args: ['--no-open', '--port', '19387'],