mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-22 02:07:55 +00:00
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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user