Skip to content

Commit 7d1469d

Browse files
committed
chore: release 0.0.2
1 parent 8a6135a commit 7d1469d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["vbare-gen", "vbare-compiler", "vbare", "examples/basic"]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "0.0.1"
6+
version = "0.0.2"
77
edition = "2021"
88
authors = ["Rivet Gaming, Inc. <[email protected]>"]
99
license = "MIT"

scripts/release.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,17 +125,19 @@ async function updateCargoToml(filePath: string, version: string): Promise<void>
125125
const hadFinalNewline = raw.endsWith('\n') || raw.endsWith('\r\n');
126126

127127
let inPackageSection = false;
128+
let inWorkspacePackageSection = false;
128129
let updated = false;
129130

130131
const updatedLines = lines.map(line => {
131132
const trimmed = line.trim();
132133

133134
if (trimmed.startsWith('[') && trimmed.endsWith(']')) {
134135
inPackageSection = trimmed === '[package]';
136+
inWorkspacePackageSection = trimmed === '[workspace.package]';
135137
return line;
136138
}
137139

138-
if (inPackageSection) {
140+
if (inPackageSection || inWorkspacePackageSection) {
139141
const match = line.match(/^(\s*version\s*=\s*")([^\"]*)(".*)$/);
140142
if (match) {
141143
updated = true;
@@ -154,7 +156,7 @@ async function updateCargoToml(filePath: string, version: string): Promise<void>
154156
});
155157

156158
if (!updated) {
157-
console.warn(`Skipping ${relative(filePath)} (no [package] version field found)`);
159+
console.warn(`Skipping ${relative(filePath)} (no version field found)`);
158160
return;
159161
}
160162

0 commit comments

Comments
 (0)