mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 11:24:00 +00:00
test(launcher): resolve installed dependencies through the module graph
This commit is contained in:
1 parent
a67bc60a29
commit
97d70317bb
1 file changed
+1
-1
@@ -23,7 +23,7 @@ async function launch(overrides = {}, dotenv = '') {
|
|||||||
await fs.mkdir(path.join(root, 'src', 'app'), { recursive: true });
|
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.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.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);
|
await fs.writeFile(path.join(root, '.env'), dotenv);
|
||||||
// Stub only external programs; both production launchers and dotenv parsing run.
|
// Stub only external programs; both production launchers and dotenv parsing run.
|
||||||
for (const command of ['security', 'pkill', 'lsof']) {
|
for (const command of ['security', 'pkill', 'lsof']) {
|
||||||
|
|||||||
Reference in new issue
Block a user