Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrykingxyz committed Sep 21, 2023
1 parent a2cfe22 commit 030ee86
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/scenarios/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import path from "path";
import { readFile, unlink, writeFile } from "fs/promises";
import { fileURLToPath } from "url";
import { runCommand } from "../utils.js";
import { spawnSync } from "child_process";
import {
getDirSizes,
calcStatistics,
Expand Down Expand Up @@ -41,6 +42,15 @@ async function runRspack(ctx) {
}
};
let remainingLine = "";

console.log(123);
spawnSync(
process.env.RSPACK_CLI_BIN ||
path.resolve(rootDir, ".rspack/packages/rspack-cli/bin/rspack"),
ctx.rspackArgs,
{ stdio: [process.stdin, process.stdout, process.stderr] }
);
console.log(321);
await runCommand(
process.env.RSPACK_CLI_BIN ||
path.resolve(rootDir, ".rspack/packages/rspack-cli/bin/rspack"),
Expand Down

0 comments on commit 030ee86

Please sign in to comment.