Skip to content

Commit 580a117

Browse files
Merge pull request #74 from FrontEndDev-org/create-pull-request/patch
Changes by create-pull-request action
2 parents 33c8a67 + bb9a3a1 commit 580a117

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

dist/index.cjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27483,7 +27483,7 @@ const registries$1 = {
2748327483
function publishPackage(pkgPath, options) {
2748427484
const cwd = require$$0$9.resolve(pkgPath, "..");
2748527485
const exec = (command22) => {
27486-
core.info(command22);
27486+
core.info(`> ${command22}`);
2748727487
cp.execSync(command22, {
2748827488
cwd,
2748927489
stdio: "inherit",
@@ -27553,8 +27553,10 @@ async function publishPackages(options) {
2755327553
);
2755427554
const pkgPaths = ["package.json", ...childPkgPaths];
2755527555
core.info(`pkgPaths: ${JSON.stringify(pkgPaths)}`);
27556+
const length = pkgPaths.length;
27557+
let order = 1;
2755627558
for (const pkgPath of pkgPaths) {
27557-
core.info(`read package ${pkgPath}`);
27559+
core.info(`[${order++}/${length}] read package ${pkgPath}`);
2755827560
const pkgFile = require$$0$9.join(cwd, pkgPath);
2755927561
const origin = fs$9.readFileSync(pkgFile, "utf-8");
2756027562
const pkg2 = JSON.parse(origin);
@@ -27604,6 +27606,9 @@ async function main() {
2760427606
const input = inputs[key];
2760527607
options[key] = input === void 0 ? defaultVal : input;
2760627608
}
27609+
if (core.isDebug()) {
27610+
core.debug(`Options: ${JSON.stringify(options, null, 2)}`);
27611+
}
2760727612
await publishPackages(options);
2760827613
}
2760927614
main().then(() => {

0 commit comments

Comments
 (0)