microsoft/typespec

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
5757fd16e446fba1d9bed436b6fafd4c4fa6056e

Branches

Tags

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

Clone

HTTPS

Download ZIP

eng/common/scripts/helpers.js

13lines · modecode

1// @ts-check
2import { findWorkspacePackagesNoCheck } from "@pnpm/find-workspace-packages";
3import { dirname, resolve } from "path";
4import { fileURLToPath } from "url";
5
6export const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), "../../..");
7export const prettier = resolve(repoRoot, "packages/compiler/node_modules/.bin/prettier");
8export const tsc = resolve(repoRoot, "packages/compiler/node_modules/.bin/tsc");
9
10/** @returns {Promise<import("@pnpm/find-workspace-packages").Project[]>*/
11export function listPackages() {
12 return findWorkspacePackagesNoCheck(repoRoot);
13}
14