We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 79f8fee + f57805a commit 22e0844Copy full SHA for 22e0844
packages/integration-tests-next/setup.mjs
@@ -17,8 +17,10 @@ const directories = entries
17
18
for (const dir of directories) {
19
try {
20
- const packageJson = await fs.readFile(join(dir, "package.json"), { encoding: "utf-8" });
21
- if (packageJson.length < 50) {
+ const pkgString = await fs.readFile(join(dir, "package.json"), { encoding: "utf-8" });
+ const packageJson = JSON.parse(pkgString);
22
+ // If there are no dependencies, skip installation
23
+ if (!packageJson.dependencies) {
24
continue;
25
}
26
} catch {
0 commit comments