UNPKG

@storm-software/workspace-tools

Version:

Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.

45 lines (42 loc) 1.94 kB
import { ProjectGraphProjectNode, Tree } from '@nx/devkit'; import JsVersionActions from '@nx/js/src/release/version-actions.js'; import { S as StormWorkspaceConfig } from '../../types-B0erLKyc.js'; import { ReleaseGroupWithName } from 'nx/src/command-line/release/config/filter-release-groups'; import { FinalConfigForProject } from 'nx/src/command-line/release/utils/release-graph'; import { NxReleaseVersionConfiguration } from 'nx/src/config/nx-json'; import 'zod'; import 'zod/mini'; /** * Custom JavaScript/TypeScript version actions for packages inside a Storm workspace. */ declare class StormJsVersionActions extends JsVersionActions { /** * The Storm workspace configuration object, which is loaded from the `storm-workspace.json` file. * * @remarks * This member variable is populated during the {@link init} method. */ protected workspaceConfig: StormWorkspaceConfig | null; constructor(releaseGroup: ReleaseGroupWithName, projectGraphNode: ProjectGraphProjectNode, finalConfigForProject: FinalConfigForProject); /** * Asynchronous initialization of the version actions and resolution of manifest paths. * * @remarks * This does NOT validate that manifest files exist - that happens later in validate(). * * @params tree - The file system tree to read from. */ init(tree: Tree): Promise<void>; /** * Reads the current version of a package from the registry. * * @param tree - The file system tree to read from. * @param currentVersionResolverMetadata - Metadata for resolving the current version. * @returns The current version and log text. */ readCurrentVersionFromRegistry(tree: Tree, currentVersionResolverMetadata: NxReleaseVersionConfiguration["currentVersionResolverMetadata"]): Promise<{ currentVersion: string; logText: string; }>; } export { StormJsVersionActions as default };