@goldstack/utils-config
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -9,3 +9,3 @@ "use strict"; | ||
const utils_sh_1 = require("@goldstack/utils-sh"); | ||
exports.validateConfig = (config, schema, options) => { | ||
const validateConfig = (config, schema, options) => { | ||
const ajv = new ajv_1.default(); | ||
@@ -34,13 +34,17 @@ if (options === null || options === void 0 ? void 0 : options.additionalSchemas) { | ||
}; | ||
exports.parseConfig = (data, schema, options) => { | ||
exports.validateConfig = validateConfig; | ||
const parseConfig = (data, schema, options) => { | ||
const config = JSON.parse(data); | ||
return exports.validateConfig(config, schema, options); | ||
}; | ||
exports.getPackageConfigPaths = (workspacePath) => { | ||
exports.parseConfig = parseConfig; | ||
const getPackageConfigPaths = (workspacePath) => { | ||
const res = utils_sh_1.sh.ls('-A', workspacePath + 'packages/*/goldstack.json'); | ||
return Array.from(res.values()); | ||
}; | ||
exports.getAwsConfigPath = (workspacePath) => { | ||
exports.getPackageConfigPaths = getPackageConfigPaths; | ||
const getAwsConfigPath = (workspacePath) => { | ||
return workspacePath + 'config/infra/aws/config.json'; | ||
}; | ||
exports.getAwsConfigPath = getAwsConfigPath; | ||
//# sourceMappingURL=utilsConfig.js.map |
{ | ||
"name": "@goldstack/utils-config", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "Utilities to work with JSON configuration files.", | ||
@@ -39,4 +39,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@goldstack/utils-log": "0.2.2", | ||
"@goldstack/utils-sh": "0.4.5", | ||
"@goldstack/utils-log": "0.2.3", | ||
"@goldstack/utils-sh": "0.4.6", | ||
"ajv": "^6.12.2", | ||
@@ -46,9 +46,9 @@ "handlebars": "^4.7.6" | ||
"devDependencies": { | ||
"@goldstack/utils-git": "0.1.23", | ||
"@types/jest": "^25.2.3", | ||
"@goldstack/utils-git": "0.1.24", | ||
"@types/jest": "^26.0.21", | ||
"@types/node": "^14.0.6", | ||
"jest": "^26.0.1", | ||
"ts-jest": "^26.1.0", | ||
"typescript": "^3.9.5" | ||
"jest": "^26.6.3", | ||
"ts-jest": "^26.5.4", | ||
"typescript": "^4.1.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
7244
66
+ Added@goldstack/utils-log@0.2.3(transitive)
+ Added@goldstack/utils-sh@0.4.6(transitive)
- Removed@goldstack/utils-log@0.2.2(transitive)
- Removed@goldstack/utils-sh@0.4.5(transitive)
Updated@goldstack/utils-log@0.2.3
Updated@goldstack/utils-sh@0.4.6