rescript-relay 0.0.0-windows-9ba3fe9e → 0.0.0-windows-ed1ca177

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rescript-relay",
3
- "version": "0.0.0-windows-9ba3fe9e",
3
+ "version": "0.0.0-windows-ed1ca177",
4
4
  "main": "src/RescriptRelay.res",
5
5
  "license": "MIT",
6
6
  "author": "Gabriel Nordeborn",
package/postinstall.js CHANGED
@@ -105,6 +105,15 @@ function copyPlatformBinaries(platform) {
105
105
  );
106
106
  fs.chmodSync(path.join(__dirname, "ppx"), 0777);
107
107
 
108
+ // Windows seems to need an .exe file as well.
109
+ if (platform === "windows-latest") {
110
+ fs.copyFileSync(
111
+ path.join(__dirname, "ppx-" + platform),
112
+ path.join(__dirname, "ppx.exe")
113
+ );
114
+ fs.chmodSync(path.join(__dirname, "ppx.exe"), 0777);
115
+ }
116
+
108
117
  /**
109
118
  * Copy the Relay compiler
110
119
  */
Binary file
Binary file