refactor: propagate env

This commit is contained in:
cha0s 2024-02-10 00:18:01 -06:00
parent 855999b3a1
commit 1e4c9fc85c

View File

@ -25,7 +25,7 @@ exports.build = async ({cwd, packageManager = exports.inferPackageManager()}) =>
break; break;
default: default:
} }
return args && processCode(spawnWith(args, {cwd})); return args && processCode(spawnWith(args, {cwd, env: {FLECKS_CORE_ROOT: cwd}}));
}; };
exports.add = async ({dev, packageManager = exports.inferPackageManager(), packages}) => { exports.add = async ({dev, packageManager = exports.inferPackageManager(), packages}) => {