@ms-cloudpack/config
Advanced tools
Comparing version 0.29.2 to 0.30.0
@@ -87,7 +87,14 @@ import { readJson } from '@ms-cloudpack/json-utilities'; | ||
/* eslint-disable etc/no-deprecated */ | ||
const { devServer, packageSettings = [] } = config; | ||
if (devServer?.routes) { | ||
config.routes = devServer.routes; | ||
delete devServer.routes; | ||
const { devServer, server, packageSettings = [] } = config; | ||
if (devServer) { | ||
if (server) { | ||
throw new Error('Cannot have both "devServer" and "server" in the config file. Use "server" only.'); | ||
} | ||
config.server = devServer; | ||
delete config.devServer; | ||
} | ||
if (server?.routes) { | ||
config.routes = server.routes; | ||
delete server.routes; | ||
} | ||
for (const setting of packageSettings) { | ||
@@ -94,0 +101,0 @@ if (setting.bundlerType) { |
@@ -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.47.7" | ||
"packageVersion": "7.47.9" | ||
} | ||
] | ||
} |
{ | ||
"name": "@ms-cloudpack/config", | ||
"version": "0.29.2", | ||
"version": "0.30.0", | ||
"description": "Configuration handling for cloudpack.", | ||
@@ -17,7 +17,7 @@ "license": "MIT", | ||
"dependencies": { | ||
"@ms-cloudpack/common-types": "^0.20.0", | ||
"@ms-cloudpack/common-types": "^0.21.0", | ||
"@ms-cloudpack/json-utilities": "^0.1.7", | ||
"@ms-cloudpack/package-utilities": "^10.1.2", | ||
"@ms-cloudpack/package-utilities": "^10.1.3", | ||
"@ms-cloudpack/path-string-parsing": "^1.2.4", | ||
"@ms-cloudpack/path-utilities": "^2.7.45", | ||
"@ms-cloudpack/path-utilities": "^2.7.46", | ||
"semver": "^7.6.0" | ||
@@ -24,0 +24,0 @@ }, |
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
132419
1108
+ Added@ms-cloudpack/common-types@0.21.1(transitive)
- Removed@ms-cloudpack/common-types@0.20.0(transitive)