File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 55 "deparserVersion" : " 13.17.0" ,
66 "typesVersion" : " 13.11.1" ,
77 "pgVersion" : " 13" ,
8- "npmTag" : " v13 "
8+ "npmTag" : " pg13 "
99 },
1010 "14" : {
1111 "deparserVersion" : " 14.0.0" ,
1212 "typesVersion" : " 14.1.1" ,
1313 "pgVersion" : " 14" ,
14- "npmTag" : " v14 "
14+ "npmTag" : " pg14 "
1515 },
1616 "15" : {
1717 "deparserVersion" : " 15.0.0" ,
1818 "typesVersion" : " 15.1.1" ,
1919 "pgVersion" : " 15" ,
20- "npmTag" : " v15 "
20+ "npmTag" : " pg15 "
2121 },
2222 "16" : {
2323 "deparserVersion" : " 16.0.0" ,
2424 "typesVersion" : " 16.1.1" ,
2525 "pgVersion" : " 16" ,
26- "npmTag" : " v16 "
26+ "npmTag" : " pg16 "
2727 }
2828 },
2929 "packageTemplate" : {
Original file line number Diff line number Diff line change 1616 "14" : " 14.1.1" ,
1717 "15" : " 15.1.1" ,
1818 "16" : " 16.1.1"
19+ },
20+ "npmTag" : {
21+ "13" : " pg13" ,
22+ "14" : " pg14" ,
23+ "15" : " pg15" ,
24+ "16" : " pg16"
1925 }
2026}
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ const pgVersions = Object.keys(config['libpg-query']);
2020
2121pgVersions . forEach ( pgVersion => {
2222 const libpgQueryVersion = config [ 'libpg-query' ] [ pgVersion ] ;
23-
2423 const typesVersion = config [ '@pgsql/types' ] [ pgVersion ] ;
24+ const npmTag = config [ 'npmTag' ] [ pgVersion ] ;
2525
2626 // For pgsql-parser, we only have versions 13 and 17
2727 let pgsqlParserVersion = config [ 'pgsql-parser' ] [ pgVersion ] ;
@@ -48,7 +48,7 @@ pgVersions.forEach(pgVersion => {
4848 . replace ( / { { VERSION} } / g, `${ pgVersion } .0.0` )
4949 . replace ( / { { LIBPG_ Q U E R Y _ V E R S I O N } } / g, libpgQueryVersion )
5050 . replace ( / { { PGSQL_ P A R S E R _ V E R S I O N } } / g, pgsqlParserVersion )
51- . replace ( / { { VERSION_ T A G } } / g, `v ${ pgVersion } ` )
51+ . replace ( / { { VERSION_ T A G } } / g, `${ npmTag } ` )
5252 . replace ( / { { TYPES_ V E R S I O N } } / g, typesVersion ) ;
5353
5454 fs . writeFileSync (
You can’t perform that action at this time.
0 commit comments