@goldstack/utils-package
Advanced tools
Comparing version 0.1.24 to 0.1.25
@@ -1,5 +0,5 @@ | ||
import { Package } from './generated/packageSchema'; | ||
export { Package, Configuration } from './generated/packageSchema'; | ||
import { Package } from './types/packageSchema'; | ||
export { Package, Configuration } from './types/packageSchema'; | ||
export declare const getPackageConfigSchema: () => object; | ||
export declare const readPackageConfig: (path?: string) => Package; | ||
//# sourceMappingURL=utilsPackage.d.ts.map |
@@ -8,11 +8,11 @@ "use strict"; | ||
var utils_config_1 = require("@goldstack/utils-config"); | ||
var packageSchema_json_1 = __importDefault(require("./schemas/packageSchema.json")); | ||
var configSchema_json_1 = __importDefault(require("./schemas/configSchema.json")); | ||
var utils_sh_1 = require("@goldstack/utils-sh"); | ||
var path_1 = __importDefault(require("path")); | ||
exports.getPackageConfigSchema = function () { | ||
return packageSchema_json_1.default; | ||
return configSchema_json_1.default; | ||
}; | ||
exports.readPackageConfig = function (path) { | ||
if (path === void 0) { path = 'goldstack.json'; } | ||
var config = utils_config_1.parseConfig(utils_sh_1.read(path), packageSchema_json_1.default, { | ||
var config = utils_config_1.parseConfig(utils_sh_1.read(path), configSchema_json_1.default, { | ||
errorMessage: 'Cannot load configuration for static website deployment from ' + | ||
@@ -19,0 +19,0 @@ path_1.default.resolve(path), |
{ | ||
"name": "@goldstack/utils-package", | ||
"version": "0.1.24", | ||
"version": "0.1.25", | ||
"description": "Utilities to work with Goldstack package configurations.", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"coverage": "jest --collect-coverage --passWithNoTests --config=./jest.config.js", | ||
"generate:ts": "rm -rf ./src/generated && utils-json-to-ts --declareExternallyReferenced", | ||
"generate:schema": "ts-json-schema-generator --tsconfig tsconfig.generate.json --path './src/types/**/*' --type 'Package' -o src/schemas/configSchema.json", | ||
"prepublishOnly": "yarn run build", | ||
@@ -24,16 +24,17 @@ "publish": "utils-git changed --exec \"yarn npm publish $@\"", | ||
"dependencies": { | ||
"@goldstack/utils-config": "0.1.25", | ||
"@goldstack/utils-sh": "0.1.25" | ||
"@goldstack/infra": "0.1.26", | ||
"@goldstack/utils-config": "0.1.26", | ||
"@goldstack/utils-sh": "0.1.26" | ||
}, | ||
"devDependencies": { | ||
"@goldstack/utils-git": "0.1.20", | ||
"@goldstack/utils-json-to-ts": "0.1.24", | ||
"@types/jest": "^25.2.3", | ||
"@types/node": "^14.0.6", | ||
"jest": "^26.0.1", | ||
"json-schema-to-typescript": "^9.1.0", | ||
"json-schema-to-typescript": "^9.1.1", | ||
"renamer": "^0.7.0", | ||
"ts-jest": "^26.1.0", | ||
"ts-json-schema-generator": "^0.70.2", | ||
"typescript": "^3.9.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8280
163
3
1
+ Added@goldstack/infra@0.1.26
+ Added@goldstack/infra@0.1.26(transitive)
+ Added@goldstack/utils-config@0.1.26(transitive)
+ Added@goldstack/utils-log@0.1.32(transitive)
+ Added@goldstack/utils-sh@0.1.26(transitive)
- Removed@goldstack/utils-config@0.1.25(transitive)
- Removed@goldstack/utils-log@0.1.31(transitive)
- Removed@goldstack/utils-sh@0.1.25(transitive)
Updated@goldstack/utils-sh@0.1.26