File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,11 @@ async function main() {
29
29
async function getMissingVersions ( ) {
30
30
const allVersions = await getAllVersions ( ) ;
31
31
const existingVersions = await getExistingVersions ( ) ;
32
- return allVersions . filter ( ( v ) => ! existingVersions . includes ( v ) ) . sort ( ) ;
32
+ const ignoredVersions = await getIgnoredVersions ( ) ;
33
+ const excludedVersions = new Set ( [ ...existingVersions , ...ignoredVersions ] ) ;
34
+ return allVersions
35
+ . filter ( ( v ) => ! excludedVersions . has ( v ) )
36
+ . sort ( ) ;
33
37
}
34
38
35
39
async function getAllVersions ( ) {
@@ -43,6 +47,15 @@ async function getNodePackageVersions(packageName) {
43
47
return output . versions ;
44
48
}
45
49
50
+ async function getIgnoredVersions ( ) {
51
+ const ignoreFile = path . join ( REPO_DIR , "ignored-versions.txt" ) ;
52
+ const ignores = await fs . readFile ( ignoreFile , "utf8" ) ;
53
+ return ignores
54
+ . split ( "\n" )
55
+ . map ( ( line ) => line . trim ( ) )
56
+ . filter ( ( line ) => line && ! line . startsWith ( "#" ) ) ;
57
+ }
58
+
46
59
async function getExistingVersions ( ) {
47
60
const existingTags = await git ( "tag" , "--list" ) ;
48
61
return existingTags
Original file line number Diff line number Diff line change
1
+ # This file contains @biomejs/biome versions that should not be mirrored.
2
+ # This is an escape hatch to work around broken upstream releases.
3
+
4
+ # Lines beginning with a hash sign (like this one) are ignored.
5
+ # Empty lines are ignored.
6
+
7
+ # Versions SHOULD NOT use `v` prefix, they are NPM package versions (semver).
8
+
9
+ # https://github.com/biomejs/biome/issues/6435
10
+ 2.0.1
11
+ 2.0.2
12
+ 2.0.3
You can’t perform that action at this time.
0 commit comments