Skip to content

Commit

Permalink
Build: Fix sandbox generation in linked mode
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Feb 5, 2025
1 parent 9b1de99 commit 1dcaa0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/tasks/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { pathExists, remove } from 'fs-extra';
import { join } from 'path';
import { promisify } from 'util';

import { JsPackageManagerFactory } from '../../code/core/src/common';
import { now, saveBench } from '../bench/utils';
import type { Task, TaskKey } from '../task';

Expand Down Expand Up @@ -148,6 +147,8 @@ export const sandbox: Task = {

await setImportMap(details.sandboxDir);

const { JsPackageManagerFactory } = await import('../../code/core/src/common');

const packageManager = JsPackageManagerFactory.getPackageManager({}, details.sandboxDir);

await packageManager.installDependencies();
Expand Down

0 comments on commit 1dcaa0f

Please sign in to comment.