Open History to see the last commit
1// Windows WSL dev mode runs the server under Linux from the same node_modules
2// as the Windows client, so Windows installs also need Linux x64 glibc native
3// modules. Other platforms install only their own binaries; setting this
4// everywhere added ~2.2 GB of foreign binaries to every macOS install.
5// Release scripts stage their own installs with explicit architectures.
6module.exports = {
7 hooks: {
8 updateConfig(config) {
9 // oxlint-disable-next-line t3code/no-global-process-runtime -- pnpm loads this file before any Effect runtime exists.
10 if (process.platform !== "win32") return config;
11 return {
12 ...config,
13 supportedArchitectures: {
14 os: ["current", "linux"],
15 cpu: ["current", "x64"],
16 libc: ["current", "glibc"],
17 },
18 };
19 },
20 },
21};