Skip to content

Commit 913093f

Browse files
Make version number check more lenient
1 parent b97979f commit 913093f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gradientedge/merge-jsonc",
3-
"version": "0.1.0",
3+
"version": "0.0.0-development",
44
"description": "JSON/JSONC/JSON5 deep-merger CLI for Node 22+",
55
"license": "MIT",
66
"author": "Gradient Edge",

test/cli.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ describe("CLI integration tests", () => {
104104
const result = await runCli(["--version"]);
105105

106106
expect(result.code).toBe(0);
107-
expect(result.stdout.trim()).toMatch(/^\d+\.\d+\.\d+$/);
107+
// Accept versions like '1.2.3', '1.2.3-alpha.1', or '1.2.3+build.123'
108+
expect(result.stdout.trim()).toMatch(/^[A-Za-z0-9.+-]+(?:\.[A-Za-z0-9.+-]+)+$/);
108109
});
109110

110111
test("should merge files successfully", async () => {

0 commit comments

Comments
 (0)