MCPcopy Index your code
hub / github.com/zenstackhq/zenstack / getOutputPath

Function getOutputPath

packages/cli/src/actions/action-utils.ts:175–185  ·  view source on GitHub ↗
(options: { output?: string }, schemaFile: string)

Source from the content-addressed store, hash-verified

173}
174
175export function getOutputPath(options: { output?: string }, schemaFile: string) {
176 if (options.output) {
177 return options.output;
178 }
179 const pkgJsonConfig = getPkgJsonConfig(process.cwd());
180 if (pkgJsonConfig.output) {
181 return pkgJsonConfig.output;
182 } else {
183 return path.dirname(schemaFile);
184 }
185}
186export async function getZenStackPackages(
187 searchPath: string,
188): Promise<Array<{ pkg: string; version: string | undefined }>> {

Callers 2

pureGenerateFunction · 0.90
runFunction · 0.90

Calls 1

getPkgJsonConfigFunction · 0.85

Tested by

no test coverage detected