test(launcher): resolve installed dependencies through the module graph

This commit is contained in:
Sameh Khamis committed 2026-09-13 22:42:27 -07:00
1 parent a67bc60a29
commit 97d70317bb
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ async function launch(overrides = {}, dotenv = '') {
await fs.mkdir(path.join(root, 'src', 'app'), { recursive: true });
await fs.copyFile(new URL('./app/data.js', import.meta.url), path.join(root, 'src', 'app', 'data.js'));
await fs.mkdir(path.join(root, 'node_modules'));
await fs.symlink(fileURLToPath(new URL('../node_modules/vite', import.meta.url)), path.join(root, 'node_modules', 'vite'), 'dir');
await fs.symlink(fileURLToPath(new URL('.', import.meta.resolve('vite/package.json'))), path.join(root, 'node_modules', 'vite'), 'dir');
await fs.writeFile(path.join(root, '.env'), dotenv);
// Stub only external programs; both production launchers and dotenv parsing run.
for (const command of ['security', 'pkill', 'lsof']) {