@ms-cloudpack/config
Advanced tools
Comparing version 0.23.1 to 0.23.2
@@ -16,3 +16,3 @@ export const configTemplate = { | ||
excludedDependencies: [], | ||
bundlerType: undefined, | ||
bundler: undefined, | ||
bundlerOptions: undefined, | ||
@@ -19,0 +19,0 @@ }, |
import type { CloudpackConfig, PackageDefinitionTransform } from '@ms-cloudpack/common-types'; | ||
/** | ||
* Creates a transform to be registered with a PackageDefinitions registry for using package settings to apply | ||
* package.json transforms. | ||
* Creates a transform to be registered with a PackageDefinitions registry for updating package.json | ||
* based on package settings from the config. | ||
*/ | ||
export declare function createPackageSettingsTransform(config: CloudpackConfig): PackageDefinitionTransform; | ||
//# sourceMappingURL=createPackageSettingsTransform.d.ts.map |
@@ -5,4 +5,4 @@ import { getPackageSettings } from './getPackageSettings.js'; | ||
/** | ||
* Creates a transform to be registered with a PackageDefinitions registry for using package settings to apply | ||
* package.json transforms. | ||
* Creates a transform to be registered with a PackageDefinitions registry for updating package.json | ||
* based on package settings from the config. | ||
*/ | ||
@@ -9,0 +9,0 @@ export function createPackageSettingsTransform(config) { |
@@ -7,6 +7,2 @@ import type { AppConfig } from '@ms-cloudpack/common-types'; | ||
export declare function readAppConfig(appPath: string): Promise<AppConfig>; | ||
/** | ||
* An internal function for processing a config object after reading the json values. | ||
*/ | ||
export declare function processDeprecatedValues(config: AppConfig): AppConfig; | ||
//# sourceMappingURL=readAppConfig.d.ts.map |
@@ -40,17 +40,20 @@ import { readJson } from '@ms-cloudpack/json-utilities'; | ||
/** | ||
* An internal function for processing a config object after reading the json values. | ||
* Delete deprecated values and convert them to the new format. (This mutates the `config` object.) | ||
*/ | ||
export function processDeprecatedValues(config) { | ||
const { devServer } = config; | ||
if (devServer) { | ||
// eslint-disable-next-line etc/no-deprecated | ||
const { routes } = devServer; | ||
if (routes) { | ||
config.routes = routes; | ||
// eslint-disable-next-line etc/no-deprecated | ||
delete config.devServer?.routes; | ||
function processDeprecatedValues(config) { | ||
/* eslint-disable etc/no-deprecated */ | ||
const { devServer, packageSettings = [] } = config; | ||
if (devServer?.routes) { | ||
config.routes = devServer.routes; | ||
delete devServer.routes; | ||
} | ||
for (const setting of packageSettings) { | ||
if (setting.bundlerType) { | ||
setting.bundler = setting.bundlerType; | ||
delete setting.bundlerType; | ||
} | ||
} | ||
return config; | ||
/* eslint-enable etc/no-deprecated */ | ||
} | ||
//# sourceMappingURL=readAppConfig.js.map |
{ | ||
"name": "@ms-cloudpack/config", | ||
"version": "0.23.1", | ||
"version": "0.23.2", | ||
"description": "Configuration handling for cloudpack.", | ||
@@ -17,5 +17,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"@ms-cloudpack/common-types": "^0.11.0", | ||
"@ms-cloudpack/common-types": "^0.12.0", | ||
"@ms-cloudpack/json-utilities": "^0.1.4", | ||
"@ms-cloudpack/package-utilities": "^7.8.2", | ||
"@ms-cloudpack/package-utilities": "^7.8.3", | ||
"import-meta-resolve": "^4.0.0", | ||
@@ -22,0 +22,0 @@ "semver": "^7.6.0" |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89680
740
+ Added@ms-cloudpack/common-types@0.12.00.19.4(transitive)
+ Added@ms-cloudpack/package-overrides@0.9.27(transitive)
+ Added@ms-cloudpack/path-utilities@2.7.41(transitive)
+ Added@types/node@22.5.4(transitive)
+ Added@types/qs@6.9.15(transitive)
- Removed@ms-cloudpack/common-types@0.11.00.19.7(transitive)
- Removed@ms-cloudpack/package-overrides@0.9.30(transitive)
- Removed@ms-cloudpack/path-utilities@2.7.44(transitive)
- Removed@types/node@22.5.5(transitive)
- Removed@types/qs@6.9.16(transitive)