Files
8bitworkshop/gen/tools/toolroot.js
T

13 lines
535 B
JavaScript

"use strict";
// toolroot - where the CLI finds toolchains, presets and BIOS images: a
// directory laid out like the repo (src/worker/..., presets/, res/).
Object.defineProperty(exports, "__esModule", { value: true });
exports.toolRoot = toolRoot;
/**
* $EIGHTBITWORKSHOP_ROOT when set (the VS Code extension's launcher points it
* at the extension's toolchains), else the current directory (a checkout).
*/
function toolRoot() {
return process.env.EIGHTBITWORKSHOP_ROOT || process.cwd();
}
//# sourceMappingURL=toolroot.js.map