@ms-cloudpack/config
Advanced tools
Comparing version 0.20.11 to 0.20.12
@@ -1,2 +0,2 @@ | ||
import type { CloudpackConfig, PackageDefinitionsCache } from '@ms-cloudpack/common-types'; | ||
import type { CloudpackConfig, PackageDefinitionsCache, PackageSettings } from '@ms-cloudpack/common-types'; | ||
/** | ||
@@ -13,3 +13,3 @@ * Ensures the generated package setting for the package provided exists. | ||
packages: PackageDefinitionsCache; | ||
}): Promise<import("@ms-cloudpack/common-types").PackageSettings>; | ||
}): Promise<PackageSettings>; | ||
//# sourceMappingURL=ensureGeneratedSettingsForPackage.d.ts.map |
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.43.2" | ||
"packageVersion": "7.47.0" | ||
} | ||
] | ||
} |
import { writeJson } from '@ms-cloudpack/json-utilities'; | ||
import { compareSettings } from './compareSettings.js'; | ||
import { getConfigPath } from './getConfigPath.js'; | ||
import { compareOverrides } from './compareOverrides.js'; | ||
import { generatedAppConfigSchemaUrl } from './schemaUrls.js'; | ||
import { sortGeneratedConfig } from './sortGeneratedConfig.js'; | ||
/** | ||
@@ -11,14 +10,8 @@ * Writes generated config. This is used for `init` to provide package overrides needed. | ||
const { generatedConfigPath } = getConfigPath(appPath); | ||
// Ensure package overrides are sorted based on package name and version requirement. | ||
// eslint-disable-next-line etc/no-deprecated | ||
const { packageOverrides, packageSettings, ...rest } = config; | ||
const sortedSettings = packageSettings?.sort(compareSettings); | ||
const sortedOverrides = packageOverrides?.sort(compareOverrides); | ||
sortGeneratedConfig(config); | ||
return writeJson(generatedConfigPath, { | ||
$schema: generatedAppConfigSchemaUrl, | ||
...rest, | ||
packageSettings: sortedSettings, | ||
packageOverrides: sortedOverrides, | ||
...config, | ||
}); | ||
} | ||
//# sourceMappingURL=writeGeneratedConfig.js.map |
{ | ||
"name": "@ms-cloudpack/config", | ||
"version": "0.20.11", | ||
"version": "0.20.12", | ||
"description": "Configuration handling for cloudpack.", | ||
@@ -17,5 +17,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"@ms-cloudpack/common-types": "^0.6.0", | ||
"@ms-cloudpack/common-types": "^0.6.1", | ||
"@ms-cloudpack/json-utilities": "^0.1.4", | ||
"@ms-cloudpack/package-utilities": "^7.4.9", | ||
"@ms-cloudpack/package-utilities": "^7.4.10", | ||
"import-meta-resolve": "^4.0.0", | ||
@@ -22,0 +22,0 @@ "merge": "^2.1.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
85964
95
695