@jahed/terraform
Version:
A wrapper which downloads and runs Terraform locally via npm.
14 lines (13 loc) • 478 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getArchitecture = void 0;
const promises_1 = require("@jahed/promises");
const getArchitecture = () => {
return (0, promises_1.resolveNullable)({
arm: "arm",
arm64: "arm64",
x32: "386",
x64: "amd64",
}[process.arch], (0, promises_1.reason)(`"${process.arch}" architecture is not supported by terraform.`));
};
exports.getArchitecture = getArchitecture;