File tree Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -91,44 +91,6 @@ export let findBinary = (
91
91
return null ;
92
92
}
93
93
} ;
94
-
95
- let findPlatformPath = ( projectRootPath : p . DocumentUri | null ) => {
96
- if ( config . extensionConfiguration . platformPath != null ) {
97
- return config . extensionConfiguration . platformPath ;
98
- }
99
-
100
- let rescriptDir = lookup . findFilePathFromProjectRoot (
101
- projectRootPath ,
102
- path . join ( "node_modules" , "rescript" )
103
- ) ;
104
- if ( rescriptDir == null ) {
105
- return null ;
106
- }
107
-
108
- let platformPath = path . join ( rescriptDir , c . platformDir ) ;
109
-
110
- // Binaries have been split into optional platform-specific dependencies
111
- // since v12.0.0-alpha.13
112
- if ( ! fs . existsSync ( platformPath ) ) {
113
- platformPath = path . join (
114
- rescriptDir ,
115
- ".." ,
116
- `@rescript/${ process . platform } -${ process . arch } /bin`
117
- )
118
- }
119
-
120
- // Workaround for darwinarm64 which has no folder yet in ReScript <= 9.1.4
121
- if (
122
- process . platform == "darwin" &&
123
- process . arch == "arm64" &&
124
- ! fs . existsSync ( platformPath )
125
- ) {
126
- platformPath = path . join ( rescriptDir , process . platform ) ;
127
- }
128
-
129
- return platformPath ;
130
- } ;
131
-
132
94
// If ReScript < 12.0.0-alpha.13, then we want `{project_root}/node_modules/rescript/{c.platformDir}/{binary}`.
133
95
// Otherwise, we want to dynamically import `{project_root}/node_modules/rescript` and from `binPaths` get the relevant binary.
134
96
// We won't know which version is in the project root until we read and parse `{project_root}/node_modules/rescript/package.json`
You can’t perform that action at this time.
0 commit comments