@bscotch/trebuchet
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -49,6 +49,2 @@ #!/usr/bin/env node | ||
}) | ||
.addCommand('list-entrypoints', 'List all inferred entrypoints for a project, in the order they would need to be built or extracted.', trebuchetProjectOption, async (_, project) => { | ||
const files = await project.listEntrypoints(); | ||
console.log(files.join('\n')); | ||
}) | ||
.addCommand('list', 'List projects', workspaceListSchema, async (workspace, _, options) => { | ||
@@ -61,2 +57,5 @@ const projects = (await workspace.listProjects())?.filter((project) => !options?.publishable || project.packageJson.isPublishable); | ||
}; | ||
if (options.excludeScopes) { | ||
cleanedUp.name = cleanedUp.name.replace(/^@[^/]+\//, ''); | ||
} | ||
return pick(cleanedUp, options.includeProperties); | ||
@@ -76,2 +75,6 @@ }); | ||
}) | ||
.addCommand('list-entrypoints', 'List all inferred entrypoints for a project, in the order they would need to be built or extracted.', trebuchetProjectOption, async (_, project) => { | ||
const files = await project.listEntrypoints(); | ||
console.log(files.join('\n')); | ||
}) | ||
.addCommand('list-external-deps', 'List all external dependencies.', workspaceExternalDepsSchema, async (workspace) => { | ||
@@ -78,0 +81,0 @@ const dependencies = await workspace.externalDependencyUsage(); |
@@ -80,2 +80,6 @@ import { deepEquals } from '@bscotch/utility'; | ||
const project = projectDepGraph.getNodeData(projectName); | ||
if (!project.packageJson.isPublishable) { | ||
// No need to bump, or do anything else really. | ||
continue; | ||
} | ||
let bump = options?.bump || (await inferProjectBumpFromGitLogs(workspace, project)); | ||
@@ -82,0 +86,0 @@ workspace.trace(`Inferred bump ${projectName}`, bump); |
@@ -32,2 +32,7 @@ import { merge } from '@bscotch/utility'; | ||
}, | ||
excludeScopes: { | ||
type: 'boolean', | ||
description: 'When listing names, scopes are included by default. This can create noise in some contexts, so scopes can be excluded.', | ||
default: false, | ||
}, | ||
}, | ||
@@ -34,0 +39,0 @@ }; |
@@ -101,2 +101,8 @@ import type { PackageJsonData, PackageJsonFindOptions } from '@bscotch/config'; | ||
absolutePaths?: boolean; | ||
/** | ||
* When listing names, scopes are included | ||
* by default. This can create noise in some | ||
* contexts, so scopes can be excluded. | ||
*/ | ||
excludeScopes?: boolean; | ||
} | ||
@@ -103,0 +109,0 @@ export interface WorkspaceVersionOptions { |
{ | ||
"name": "@bscotch/trebuchet", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Tooling for minimizing the cognitive load for monorepo/workspace management, with a focus on automation, minimal configuration, and interoperability with other tools.", | ||
@@ -43,5 +43,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@bscotch/config": "^1.0.1", | ||
"@bscotch/config": "^1.0.2", | ||
"@bscotch/pathy": "^2.1.0", | ||
"@bscotch/project": "^2.0.1", | ||
"@bscotch/project": "^2.0.2", | ||
"@bscotch/utility": "^6.1.1", | ||
@@ -48,0 +48,0 @@ "@bscotch/validation": "^0.2.0", |
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
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
157886
2167
Updated@bscotch/config@^1.0.2
Updated@bscotch/project@^2.0.2