libdragon 10.4.0 → 10.4.1
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.
- package/CHANGELOG.md +1 -1
- package/modules/project-info.js +6 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/modules/project-info.js
CHANGED
|
@@ -124,6 +124,12 @@ async function readProjectInfo() {
|
|
|
124
124
|
(await findNPMRoot()) ??
|
|
125
125
|
(await findGitRoot()),
|
|
126
126
|
userInfo: os.userInfo(),
|
|
127
|
+
|
|
128
|
+
// Set the defaults immediately, these should be present at all times even
|
|
129
|
+
// if we are migrating from the old config because they did not exist before
|
|
130
|
+
imageName: DOCKER_HUB_IMAGE,
|
|
131
|
+
vendorDirectory: path.join('.', LIBDRAGON_SUBMODULE),
|
|
132
|
+
vendorStrategy: DEFAULT_STRATEGY,
|
|
127
133
|
};
|
|
128
134
|
|
|
129
135
|
if (!info.root) {
|
|
@@ -180,14 +186,8 @@ async function readProjectInfo() {
|
|
|
180
186
|
).trim();
|
|
181
187
|
}
|
|
182
188
|
|
|
183
|
-
info.imageName = info.imageName ?? DOCKER_HUB_IMAGE;
|
|
184
189
|
log(`Active image name: ${info.imageName}`, true);
|
|
185
|
-
|
|
186
|
-
info.vendorDirectory =
|
|
187
|
-
info.vendorDirectory ?? path.join('.', LIBDRAGON_SUBMODULE);
|
|
188
190
|
log(`Active vendor directory: ${info.vendorDirectory}`, true);
|
|
189
|
-
|
|
190
|
-
info.vendorStrategy = info.vendorStrategy ?? DEFAULT_STRATEGY;
|
|
191
191
|
log(`Active vendor strategy: ${info.vendorStrategy}`, true);
|
|
192
192
|
|
|
193
193
|
// Cache the latest image name
|