Open History to see the last commit
1// Windows installs need Linux x64 glibc binaries because WSL shares node_modules.
2// Keep other platforms native; release scripts set their own architectures.
3module.exports = {
4 hooks: {
5 // `typescript` is @tsc-rs/typescript (the catalog entry). Its npm version (0.8.x) is outside
6 // vite-plus-core's typescript peer range, so pnpm gave the vite-plus that @effect/vitest
7 // imports apps/marketing's typescript@6.0.3 instead, and tests loaded a second vitest.
8 readPackage(pkg) {
9 if (pkg.name === "@voidzero-dev/vite-plus-core" && pkg.peerDependencies?.typescript) {
10 pkg.peerDependencies.typescript = "*";
11 }
12 return pkg;
13 },
14 updateConfig(config) {
15 // oxlint-disable-next-line t3code/no-global-process-runtime -- pnpm loads this file before any Effect runtime exists.
16 if (process.platform !== "win32") return config;
17 return {
18 ...config,
19 supportedArchitectures: {
20 os: ["current", "linux"],
21 cpu: ["current", "x64"],
22 libc: ["current", "glibc"],
23 },
24 };
25 },
26 },
27};