@intuned/runtime-dev 1.3.27-dev2 → 1.3.27-dev3
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.
|
@@ -49,10 +49,13 @@ async function createUserDirWithPreferences(profileTemplatePath) {
|
|
|
49
49
|
const defaultDir = (0, _path.join)(userDir, "Default");
|
|
50
50
|
const preferencesPath = (0, _path.join)(defaultDir, "Preferences");
|
|
51
51
|
if (profileTemplatePath && (await fs.pathExists(profileTemplatePath))) {
|
|
52
|
-
await fs.copy(profileTemplatePath,
|
|
52
|
+
await fs.copy(profileTemplatePath, userDir, {
|
|
53
53
|
overwrite: true,
|
|
54
54
|
errorOnExist: false
|
|
55
55
|
});
|
|
56
|
+
await (0, _fsExtra.mkdir)(defaultDir, {
|
|
57
|
+
recursive: true
|
|
58
|
+
});
|
|
56
59
|
let templatePreferences = {};
|
|
57
60
|
if (await fs.pathExists(preferencesPath)) {
|
|
58
61
|
try {
|
|
@@ -62,9 +65,6 @@ async function createUserDirWithPreferences(profileTemplatePath) {
|
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
const mergedPreferences = mergePreferences(templatePreferences, DEFAULT_USER_PREFERENCES);
|
|
65
|
-
await (0, _fsExtra.mkdir)(defaultDir, {
|
|
66
|
-
recursive: true
|
|
67
|
-
});
|
|
68
68
|
await (0, _fsExtra.writeFile)(preferencesPath, JSON.stringify(mergedPreferences));
|
|
69
69
|
return userDir;
|
|
70
70
|
}
|
|
Binary file
|