@intuned/runtime-dev 1.3.4-dev.1 → 1.3.4-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,9 +10,11 @@ var _promises = require("fs/promises");
|
|
|
10
10
|
async function getSettings() {
|
|
11
11
|
const settingsFilePath = (0, _fileUtils.getFullPathInProject)("Intuned.json");
|
|
12
12
|
console.log("loading settings");
|
|
13
|
-
const settings = await (0, _promises.readFile)(settingsFilePath
|
|
13
|
+
const settings = await (0, _promises.readFile)(settingsFilePath, {
|
|
14
|
+
encoding: "utf-8"
|
|
15
|
+
});
|
|
14
16
|
if (settings) {
|
|
15
|
-
const parsed = _settingsSchema.settingsSchema.safeParse(settings);
|
|
17
|
+
const parsed = _settingsSchema.settingsSchema.safeParse(JSON.parse(settings));
|
|
16
18
|
if (parsed.success) {
|
|
17
19
|
return parsed.data;
|
|
18
20
|
} else {
|