File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 39
39
},
40
40
"engines" : {
41
41
"node" : " >=18"
42
+ },
43
+ "beachball" : {
44
+ "shouldPublish" : false
42
45
}
43
46
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @react-native-mac/virtualized-lists" ,
3
3
"version" : " 0.73.3" ,
4
- "description" : " Virtualized lists for React Native." ,
4
+ "description" : " Virtualized lists for React Native macOS ." ,
5
5
"license" : " MIT" ,
6
6
"repository" : {
7
7
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -16,6 +16,23 @@ const {
16
16
getCurrentCommit,
17
17
isTaggedLatest,
18
18
} = require ( './scm-utils' ) ;
19
+ const path = require ( 'path' ) ; // [macOS]
20
+ const fs = require ( 'fs' ) ; // [macOS]
21
+
22
+ // [macOS] Function to get our version from package.json instead of the CircleCI build tag.
23
+ function getPkgJsonVersion ( ) {
24
+ const RN_PACKAGE_DIRECTORY = path . resolve (
25
+ __dirname ,
26
+ '..' ,
27
+ 'packages' ,
28
+ 'react-native' ,
29
+ ) ;
30
+ const pkgJsonPath = path . resolve ( RN_PACKAGE_DIRECTORY , 'package.json' ) ;
31
+ const pkgJson = JSON . parse ( fs . readFileSync ( pkgJsonPath , 'utf8' ) ) ;
32
+ const pkgJsonVersion = pkgJson . version ;
33
+ return pkgJsonVersion ;
34
+ }
35
+ // macOS]
19
36
20
37
// Get `next` version from npm and +1 on the minor for `main` version
21
38
function getMainVersion ( ) {
@@ -48,7 +65,7 @@ function getNpmInfo(buildType) {
48
65
}
49
66
50
67
const { version, major, minor, prerelease} = parseVersion (
51
- process . env . CIRCLE_TAG ,
68
+ getPkgJsonVersion ( ) , // [macOS] We can't use the CircleCI build tag, so we use the version argument instead.
52
69
buildType ,
53
70
) ;
54
71
You can’t perform that action at this time.
0 commit comments