@bscotch/trebuchet
Advanced tools
Comparing version 2.6.0 to 2.7.0
import { Project } from '@bscotch/project'; | ||
import type { Workspace } from './workspace.js'; | ||
import { WorkspacePublishOptions } from './workspace.types.js'; | ||
import { WorkspacePublishOptions, WorkspaceVersionOptions } from './workspace.types.js'; | ||
/** | ||
@@ -33,4 +33,4 @@ * Determine bump level for all changed | ||
*/ | ||
export declare function versionProjects(workspace: Workspace, options: WorkspacePublishOptions): Promise<Project[]>; | ||
export declare function versionProjects(workspace: Workspace, options: WorkspaceVersionOptions): Promise<Project[]>; | ||
export declare function inferProjectBumpFromGitLogs(workspace: Workspace, project: Project): Promise<import("./gitLog.types.js").GitLogBump | undefined>; | ||
//# sourceMappingURL=workspace.publish.d.ts.map |
@@ -36,3 +36,3 @@ import { deepEquals } from '@bscotch/utility'; | ||
} | ||
const bumpedProjects = (await listBumpedProjects(this)).filter((p) => p.packageJson.isPublishable); | ||
const bumpedProjects = await listBumpedProjects(this); | ||
if (!bumpedProjects.length) { | ||
@@ -78,3 +78,5 @@ console.warn('No bumped projects found.'); | ||
} | ||
await project.packageJson.publish({ dryRun: options.noPush }); | ||
if (project.packageJson.isPublishable) { | ||
await project.packageJson.publish({ dryRun: options.noPush }); | ||
} | ||
if (!options.noPush) { | ||
@@ -81,0 +83,0 @@ await this.repo.push(); |
@@ -109,2 +109,3 @@ import type { PackageJsonData, PackageJsonFindOptions } from '@bscotch/config'; | ||
export interface WorkspaceVersionOptions { | ||
noPull?: boolean; | ||
/** | ||
@@ -129,3 +130,2 @@ * The bump type is inferred from the git logs, but | ||
export interface WorkspacePublishOptions extends WorkspaceVersionOptions { | ||
noPull?: boolean; | ||
/** | ||
@@ -132,0 +132,0 @@ * If true, then no tag will be added to the resulting |
{ | ||
"name": "@bscotch/trebuchet", | ||
"version": "2.6.0", | ||
"version": "2.7.0", | ||
"description": "Tooling for minimizing the cognitive load for monorepo/workspace management, with a focus on automation, minimal configuration, and interoperability with other tools.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
174358
2371