@backstage/config-loader
Advanced tools
Comparing version 0.6.2 to 0.6.3
# @backstage/config-loader | ||
## 0.6.3 | ||
### Patch Changes | ||
- 2cf98d279: Resolve the path to app-config.yaml from the current working directory. This will allow use of `yarn link` or running the CLI in other directories and improve the experience for local backstage development. | ||
- 438a512eb: Fixed configuration schema parsing when using TypeScript `4.3`. | ||
## 0.6.2 | ||
@@ -4,0 +11,0 @@ |
@@ -365,3 +365,3 @@ 'use strict'; | ||
} | ||
await Promise.all(packageNames.map((name) => processItem({name}))); | ||
await Promise.all(packageNames.map((name) => processItem({name, parentPath: currentDir}))); | ||
const tsSchemas = compileTsSchemas(tsSchemaPaths); | ||
@@ -393,2 +393,14 @@ return schemas.concat(tsSchemas); | ||
}, [path$1.split(path.sep).join("/")]); | ||
value = JSON.parse(JSON.stringify(value), (key, prop) => { | ||
var _a; | ||
if (key === "visibility" && Array.isArray(prop)) { | ||
const text = (_a = prop[0]) == null ? void 0 : _a.text; | ||
if (!text) { | ||
const propStr = JSON.stringify(prop); | ||
throw new Error(`Failed conversion of visibility schema, got ${propStr}`); | ||
} | ||
return text; | ||
} | ||
return prop; | ||
}); | ||
} catch (error) { | ||
@@ -395,0 +407,0 @@ if (error.message !== "type Config not found") { |
@@ -354,3 +354,3 @@ import yaml from 'yaml'; | ||
} | ||
await Promise.all(packageNames.map((name) => processItem({name}))); | ||
await Promise.all(packageNames.map((name) => processItem({name, parentPath: currentDir}))); | ||
const tsSchemas = compileTsSchemas(tsSchemaPaths); | ||
@@ -382,2 +382,14 @@ return schemas.concat(tsSchemas); | ||
}, [path.split(sep).join("/")]); | ||
value = JSON.parse(JSON.stringify(value), (key, prop) => { | ||
var _a; | ||
if (key === "visibility" && Array.isArray(prop)) { | ||
const text = (_a = prop[0]) == null ? void 0 : _a.text; | ||
if (!text) { | ||
const propStr = JSON.stringify(prop); | ||
throw new Error(`Failed conversion of visibility schema, got ${propStr}`); | ||
} | ||
return text; | ||
} | ||
return prop; | ||
}); | ||
} catch (error) { | ||
@@ -384,0 +396,0 @@ if (error.message !== "type Config not found") { |
{ | ||
"name": "@backstage/config-loader", | ||
"description": "Config loading functionality used by Backstage backend, and CLI", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"private": false, | ||
@@ -55,4 +55,4 @@ "publishConfig": { | ||
], | ||
"gitHead": "750ca1cce7f29d63e1ceaf8e269f8ec6ceb58f9c", | ||
"gitHead": "cc1de02d8944e304df7a6a23c8671030f9156ab8", | ||
"module": "dist/index.esm.js" | ||
} |
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
150186
1142