microsoft/typespec

Public

mirrored from https://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
a3d6acfa67b8e3331d87abb345014b84db395042

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

eng/scripts/pack-all.js

16lines · modecode

1// @ts-check
2/**
3 * Script to pack all workspace packages
4 */
5
6import { findWorkspacePackagesNoCheck } from "@pnpm/find-workspace-packages";
7import { runOrExit } from "../../packages/internal-build-utils/dist/src/common.js";
8import { repoRoot } from "./helpers.js";
9
10const projects = await findWorkspacePackagesNoCheck(repoRoot);
11
12for (const project of projects) {
13 runOrExit("pnpm", ["pack", `--pack-destination`, `${repoRoot}/temp/artifacts`], {
14 cwd: project.dir,
15 });
16}
17