Skip to content

Commit

Permalink
fix env dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Sep 4, 2024
1 parent 2f664b2 commit a3ceec4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions tooling/build-env/src/internal/verdaccio/verdaccio-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { logger } from '@nx/devkit';
import { objectToCliArgs } from '../utils/terminal-command';
import { executeProcess } from '../utils/execute-process';
import { uniquePort } from '../utils/utils';
import {getEnvironmentsRoot} from "@org/build-env";

export function logInfo(msg: string) {
info(msg, 'Verdaccio: ');
Expand Down Expand Up @@ -87,12 +88,12 @@ export type StarVerdaccioOptions = VerdaccioExecuterOptions &

export async function startVerdaccioServer({
targetName = 'start-verdaccio',
port = String(uniquePort()),
storage = join('tmp', targetName, 'storage'),
location = 'none',
clear = true,
verbose = true,
projectName,
projectName,
port = String(uniquePort()),
storage = join(getEnvironmentsRoot(projectName), targetName, 'storage'),
location = 'none',
clear = true,
verbose = true,
...opt
}: StarVerdaccioOptions): Promise<RegistryResult> {
let startDetected = false;
Expand Down
2 changes: 1 addition & 1 deletion tooling/build-env/src/utils/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { DEFAULT_ENVIRONMENTS_OUTPUT_DIR } from '../internal/constants';
export function getEnvironmentsRoot(
environmentsDir: string = DEFAULT_ENVIRONMENTS_OUTPUT_DIR
) {
return join('tmp', environmentsDir);
return environmentsDir;
}

/**
Expand Down

0 comments on commit a3ceec4

Please sign in to comment.