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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- ## [10.4.0] - 2022-03-23
3
+ ## [10.4.1] - 2022-03-23
4
4
 
5
5
  ### Fixed
6
6
 
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libdragon",
3
- "version": "10.4.0",
3
+ "version": "10.4.1",
4
4
  "description": "This is a docker wrapper for libdragon",
5
5
  "main": "index.js",
6
6
  "engines": {