We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82d5195 commit 5852e5bCopy full SHA for 5852e5b
.github/workflows/ci.yml
@@ -26,7 +26,7 @@ jobs:
26
macos-14, # ARM
27
ubuntu-latest, # x64
28
buildjet-2vcpu-ubuntu-2204-arm, # ARM
29
- #windows-latest, # deactivated for now as there is still a Windows issue
+ windows-latest,
30
]
31
32
runs-on: ${{matrix.os}}
src/RescriptVersions.res
@@ -66,7 +66,14 @@ let promptVersions = async () => {
66
let installVersions = async ({rescriptVersion, rescriptCoreVersion}) => {
67
let packageManager = PackageManagers.getActivePackageManager()
68
let packages = [`rescript@${rescriptVersion}`, `@rescript/core@${rescriptCoreVersion}`]
69
- let command = `${packageManager} add ${packages->Array.join(" ")}`
+
70
+ // #58: Windows: packageManager may be something like
71
+ // "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js".
72
+ //
73
+ // Therefore, packageManager needs to be in quotes, and we need to prepend "node "
74
+ // if packageManager points to a JS file, otherwise the invocation will hang.
75
+ let maybeNode = packageManager->String.endsWith("js") ? "node " : ""
76
+ let command = `${maybeNode}"${packageManager}" add ${packages->Array.join(" ")}`
77
78
let _ = await Node.Promisified.ChildProcess.exec(command)
79
}
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments