Skip to content

Commit 22e0844

Browse files
committed
Merge remote-tracking branch 'upstream/main' into timfish/test/vite-integration-tests
2 parents 79f8fee + f57805a commit 22e0844

File tree

2 files changed

+453
-163
lines changed

2 files changed

+453
-163
lines changed

packages/integration-tests-next/setup.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ const directories = entries
1717

1818
for (const dir of directories) {
1919
try {
20-
const packageJson = await fs.readFile(join(dir, "package.json"), { encoding: "utf-8" });
21-
if (packageJson.length < 50) {
20+
const pkgString = await fs.readFile(join(dir, "package.json"), { encoding: "utf-8" });
21+
const packageJson = JSON.parse(pkgString);
22+
// If there are no dependencies, skip installation
23+
if (!packageJson.dependencies) {
2224
continue;
2325
}
2426
} catch {

0 commit comments

Comments
 (0)