From 8ee1860f1293402d0ae9d500bce46bd27d81cb20 Mon Sep 17 00:00:00 2001 From: PG Herveou Date: Thu, 13 Nov 2025 10:16:34 +0100 Subject: [PATCH] js: rm default process.env.RESOLC_BIN (#411) Ran into this today, my env was set and pointing to an old version so it's a breaking change, but I think we are better off not hardcoding the env here, the user can do whatever they want when they invoke compile --- js/resolc/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/resolc/src/index.ts b/js/resolc/src/index.ts index cb65701..9843e4f 100644 --- a/js/resolc/src/index.ts +++ b/js/resolc/src/index.ts @@ -101,7 +101,7 @@ export async function compile( enabled: true, runs: 200, }, - bin = process.env.RESOLC_BIN, + bin, } = option const input = JSON.stringify({ @@ -128,7 +128,7 @@ export async function compile( * resolve the package root * use resolve-pkg to find the package root, and fallback to using require.resolve if the package defines an exports field * see https://github.com/sindresorhus/resolve-pkg/issues/9 - **/ + */ function resolvePkgRoot(basePackage: string) { const packageRoot = resolvePkg(basePackage) if (packageRoot) {