We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71af1bb commit 2d0cb83Copy full SHA for 2d0cb83
x/examples/website-wrapper-app/wrapper_app_project/.scripts/config.mjs
@@ -25,14 +25,15 @@ export const DEFAULT_CONFIG = {
25
export async function getYAMLFileConfig(filepath) {
26
try {
27
const data = await fs.readFile(filepath, 'utf8')
28
+
29
+ if (data) {
30
+ return YAML.parse(data)
31
+ }
32
} catch (e) {
33
if ('ENOENT' == e.code) {
34
return {}
35
}
36
- if (data) {
- return YAML.parse(data)
- }
37
38
39
export function getCliConfig(args) {
0 commit comments