pcf-scripts
Version:
This package contains a module for building PowerApps Component Framework (PCF) controls. See project homepage how to install.
19 lines (17 loc) • 689 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBuildConfig = void 0;
const node_fs_1 = require("node:fs");
const node_path_1 = require("node:path");
const constants_1 = require("./constants");
const fs_extra_1 = require("fs-extra");
const getBuildConfig = () => {
const buildConfigPath = (0, node_path_1.resolve)(".", constants_1.CONFIGURATION_FILE_NAME);
if (!(0, fs_extra_1.existsSync)(buildConfigPath)) {
return undefined;
}
const fileConfig = (0, node_fs_1.readFileSync)(buildConfigPath);
return JSON.parse(fileConfig.toString());
};
exports.getBuildConfig = getBuildConfig;
//# sourceMappingURL=buildConfig.js.map