publish.js 619 B

12345678910111213141516171819202122232425
  1. const ch = require("child_process");
  2. const packages = [
  3. "backend-cli",
  4. "service",
  5. "events",
  6. "pc-components",
  7. "utils",
  8. "krpano",
  9. ];
  10. packages.forEach((name) => {
  11. if (!["backend-cli", "events"].includes(name)) {
  12. console.log(`******** build package: ${name} ************`);
  13. ch.execSync(`pnpm -r --filter=${name} run build `, { stdio: "inherit" });
  14. }
  15. console.log(`======== publish package: ${name} ============`);
  16. try {
  17. ch.execSync(
  18. `pnpm -r --filter=${name} publish --registry http://192.168.20.245:4873/ --no-git-checks`,
  19. { stdio: "inherit" }
  20. );
  21. } catch (err) {}
  22. });