Skip to content

Commit

Permalink
BREAKING: use tag form of 0.0.0 instead of v0.0.0 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k authored Oct 15, 2024
1 parent 2f698c1 commit 4cc5e43
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 48 deletions.
3 changes: 1 addition & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"@std/cli": "jsr:@std/cli@^1.0.3",
"@std/fmt": "jsr:@std/fmt@^1.0.0",
"@std/fs": "jsr:@std/fs@^1.0.1",
"@std/path": "jsr:@std/path@^1.0.2",
"@std/yaml": "jsr:@std/yaml@^1.0.3"
"@std/path": "jsr:@std/path@^1.0.2"
}
}
81 changes: 40 additions & 41 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions models.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringify } from "@std/yaml";
import { stringify } from "npm:yaml";
import { green } from "@std/fmt/colors";
import { isGlob } from "@std/path/is-glob";
import { expandGlobSync } from "@std/fs/expand-glob";
Expand Down Expand Up @@ -314,7 +314,7 @@ export class VersionInfo {
}

getTag() {
return `v${this.updateVersion.toString()}`;
return this.updateVersion.toString();
}

getCommitMessage() {
Expand Down
2 changes: 1 addition & 1 deletion models_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Deno.test("VersionInfo.getTag()", () => {
},
});

assertEquals(info.getTag(), "v1.2.3");
assertEquals(info.getTag(), "1.2.3");
});

Deno.test("VersionInfo.getCommitMessage()", () => {
Expand Down
2 changes: 1 addition & 1 deletion read_config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parse } from "@std/yaml/parse";
import { parse } from "npm:yaml";

import { AppError, VersionInfo, type VersionInfoInput } from "./models.ts";

Expand Down
2 changes: 1 addition & 1 deletion read_config_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ Deno.test("readConfig - throws when the config file has syntax error", async ()
});
},
AppError,
"end of the stream or a document separator is expected at line 2, column 6:",
"Implicit keys need to be on a single line at line 1, column 1:\n\nasdfa\n^\n",
);
});

0 comments on commit 4cc5e43

Please sign in to comment.