mirror of
https://github.com/software-mansion/argent.git
synced 2026-09-14 19:27:14 +08:00
1d6faa5047
The previous heredoc-into-temp-file approach broke `require('./...')`
because Node resolves relative paths against the temp file's location
(under `C:\Users\runneradmin\AppData\Local\Temp\`), not against the
runner's working directory — so the require for
`./packages/native-devtools-ios/dist/index.js` always errored with
MODULE_NOT_FOUND on Windows CI even though the resolver itself was
correctly fail-closed.
Switch to a dedicated `scripts/assert-windows-fails-closed.cjs` that
resolves paths via `path.resolve(__dirname, ..., ...)` so the require
target is unambiguous regardless of cwd. Also short-circuits with a
"skipped" message on non-Windows so the same script is safe to invoke
from a future cross-platform CI matrix.