Skip to content

Commit ea6b8bc

Browse files
committed
fix: patch up version mismatch
1 parent ac637e0 commit ea6b8bc

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎src/themes/leaf3/composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"require": {
3-
"leafs/leaf": "5.0-alpha"
3+
"leafs/leaf": "^5.0"
44
}
55
}

‎tests/commands.test.php‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,11 @@
9292

9393
expect(substr_count($banner, trim($version)))->toBe(1);
9494
});
95+
96+
test('the lite theme requires stable leaf', function () {
97+
$theme = json_decode(file_get_contents(dirname(__DIR__) . '/src/themes/leaf3/composer.json'), true);
98+
99+
// the lite preset copies this file into new projects — an exact or
100+
// pre-release pin here breaks `leaf create --lite` for everyone
101+
expect($theme['require']['leafs/leaf'])->toStartWith('^');
102+
});

0 commit comments

Comments
 (0)