publish.js 630 B

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