Skip to content

Commit e22e1a6

Browse files
committed
chore: add some logging
Signed-off-by: Logan McAnsh <[email protected]>
1 parent 3b42852 commit e22e1a6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

__scripts/test.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ const settled = await Promise.allSettled(
4141

4242
const install = await getCommand(detected, "install", ["--silent"]);
4343
const installArgs = install.split(" ").slice(1, -1);
44+
console.log(
45+
`Installing ${example} with ${detected} ${installArgs.join(" ")}`
46+
);
4447
const installResult = await execa(detected, installArgs, options);
4548

4649
if (installResult.exitCode) {
@@ -54,6 +57,7 @@ const settled = await Promise.allSettled(
5457
);
5558

5659
if (hasPrisma) {
60+
console.log("Generating prisma types for", example);
5761
const prismaGenerate = await execa(
5862
"npx",
5963
["prisma", "generate"],
@@ -69,6 +73,7 @@ const settled = await Promise.allSettled(
6973

7074
const build = await getCommand(detected, "run", ["build"]);
7175
const buildArgs = build.split(" ").slice(1);
76+
console.log(`Building ${example} with ${detected} ${buildArgs.join(" ")}`);
7277
const buildResult = await execa(detected, buildArgs, options);
7378

7479
if (buildResult.exitCode) {
@@ -90,6 +95,9 @@ const settled = await Promise.allSettled(
9095

9196
const typecheck = await getCommand(detected, "run", ["typecheck"]);
9297
const typecheckArgs = typecheck.split(" ").slice(1);
98+
console.log(
99+
`Typechecking ${example} with ${detected} ${typecheckArgs.join(" ")}`
100+
);
93101
const typecheckResult = await execa(detected, typecheckArgs, options);
94102

95103
if (typecheckResult.exitCode) {

0 commit comments

Comments
 (0)