Skip to content

Commit

Permalink
build: build dist
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudcome authored and github-actions[bot] committed Jan 16, 2025
1 parent 33c8a67 commit bb9a3a1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27483,7 +27483,7 @@ const registries$1 = {
function publishPackage(pkgPath, options) {
const cwd = require$$0$9.resolve(pkgPath, "..");
const exec = (command22) => {
core.info(command22);
core.info(`> ${command22}`);
cp.execSync(command22, {
cwd,
stdio: "inherit",
Expand Down Expand Up @@ -27553,8 +27553,10 @@ async function publishPackages(options) {
);
const pkgPaths = ["package.json", ...childPkgPaths];
core.info(`pkgPaths: ${JSON.stringify(pkgPaths)}`);
const length = pkgPaths.length;
let order = 1;
for (const pkgPath of pkgPaths) {
core.info(`read package ${pkgPath}`);
core.info(`[${order++}/${length}] read package ${pkgPath}`);
const pkgFile = require$$0$9.join(cwd, pkgPath);
const origin = fs$9.readFileSync(pkgFile, "utf-8");
const pkg2 = JSON.parse(origin);
Expand Down Expand Up @@ -27604,6 +27606,9 @@ async function main() {
const input = inputs[key];
options[key] = input === void 0 ? defaultVal : input;
}
if (core.isDebug()) {
core.debug(`Options: ${JSON.stringify(options, null, 2)}`);
}
await publishPackages(options);
}
main().then(() => {
Expand Down

0 comments on commit bb9a3a1

Please sign in to comment.