Skip to content

Commit ee2b3b9

Browse files
Rel1cxCopilot
andauthored
Update scripts/update-version.ts
Co-authored-by: Copilot <[email protected]> Signed-off-by: REL1CX <[email protected]>
1 parent c965ad7 commit ee2b3b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/update-version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function update(path: string) {
2121
const packageJsonText = yield* fs.readFileString(path, "utf8");
2222
const packageJson = JSON.parse(packageJsonText);
2323
if (!isMatching({ version: P.string }, packageJson)) {
24-
yield* Effect.fail(new Error(`Invalid package.json at ${path}: missing version field`));
24+
yield* Effect.fail(new Error(`Invalid package.json at ${path}: invalid or missing version field`));
2525
}
2626
const newVersion = yield* version;
2727
const oldVersion = match(packageJson)

0 commit comments

Comments
 (0)