Skip to content

Commit 3862ff3

Browse files
committed
chore(check-workspace): list published crates
1 parent 02f7f07 commit 3862ff3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/check-workspace.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// This [Deno] program checks the conformance of this workspace's Cargo
22
// metadata to the coding guidelines.
33
//
4+
// This script also lists crates to be published.
5+
//
46
// [Deno]: https://deno.land/
57
//
68
// Usage: deno run --allow-read scripts/check-workspace.ts
@@ -36,7 +38,7 @@ await log.setup({
3638

3739
loggers: {
3840
default: {
39-
level: "DEBUG",
41+
level: "INFO",
4042
handlers: ["console"],
4143
},
4244
},
@@ -90,6 +92,11 @@ async function validateWorkspace(workspacePath: string): Promise<void> {
9092
hasError = true;
9193
}
9294

95+
// Log published crates
96+
if (publish) {
97+
logger.info(`${crateRelPath}: version ${pkg.version}`);
98+
}
99+
93100
// Published crates must have versioned dependencies
94101
for (const [name, dep] of Object.entries(dependencies)) {
95102
const depEx = typeof dep === "string" ? {version: dep} : dep;

0 commit comments

Comments
 (0)