Function inWorkspace

  • allows using any of the ember-apply utilities under the provided workspace. The utilities utilize the process.cwd() to determine which project to run in, so this function changes the current working directory to the workspace directory so that the ember-apply utilities can be used in the passed workspace.

    When the callback is finished, the current working directory is restored to the original working directory.

    This can be useful for selecting specific workspaces to perform operations on, and ignoring other workspaces.

    Parameters

    Returns Promise<void>

    Example

    import { project } from 'ember-apply';

    for (let workspace of await project.getWorkspaces()) {
    await project.inWorkspace(workspace, async () => {
    // perform actions within this workspace
    });
    }

Generated using TypeDoc