@getmonoceros/workbench 1.16.1 → 1.16.2
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/dist/bin.js +19 -4
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -2226,17 +2226,25 @@ function resolveFeatures(opts) {
|
|
|
2226
2226
|
const checkout = workbenchCheckoutRoot();
|
|
2227
2227
|
const localSourceDir = checkout ? path8.join(checkout, "images", "features", name) : null;
|
|
2228
2228
|
if (localSourceDir && existsSync5(localSourceDir)) {
|
|
2229
|
-
const { paths, files } = readPersistentHomeEntries(localSourceDir);
|
|
2229
|
+
const { paths: paths2, files: files2 } = readPersistentHomeEntries(localSourceDir);
|
|
2230
2230
|
resolved.push({
|
|
2231
2231
|
devcontainerKey: `./features/${name}`,
|
|
2232
2232
|
options,
|
|
2233
2233
|
localSourceDir,
|
|
2234
2234
|
localName: name,
|
|
2235
|
-
persistentHomePaths:
|
|
2236
|
-
persistentHomeFiles:
|
|
2235
|
+
persistentHomePaths: paths2,
|
|
2236
|
+
persistentHomeFiles: files2
|
|
2237
2237
|
});
|
|
2238
2238
|
continue;
|
|
2239
2239
|
}
|
|
2240
|
+
const { paths, files } = readBundledPersistentHomeEntries(name);
|
|
2241
|
+
resolved.push({
|
|
2242
|
+
devcontainerKey: rawRef,
|
|
2243
|
+
options,
|
|
2244
|
+
persistentHomePaths: paths,
|
|
2245
|
+
persistentHomeFiles: files
|
|
2246
|
+
});
|
|
2247
|
+
continue;
|
|
2240
2248
|
}
|
|
2241
2249
|
resolved.push({
|
|
2242
2250
|
devcontainerKey: rawRef,
|
|
@@ -2261,6 +2269,13 @@ function readPersistentHomeEntries(localSourceDir) {
|
|
|
2261
2269
|
return { paths: [], files: [] };
|
|
2262
2270
|
}
|
|
2263
2271
|
}
|
|
2272
|
+
function readBundledPersistentHomeEntries(name) {
|
|
2273
|
+
try {
|
|
2274
|
+
return readPersistentHomeEntries(path8.join(bundledFeaturesDir(), name));
|
|
2275
|
+
} catch {
|
|
2276
|
+
return { paths: [], files: [] };
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2264
2279
|
function filterSubpaths(raw) {
|
|
2265
2280
|
if (!Array.isArray(raw)) return [];
|
|
2266
2281
|
return raw.filter(
|
|
@@ -6272,7 +6287,7 @@ var CLI_VERSION;
|
|
|
6272
6287
|
var init_version = __esm({
|
|
6273
6288
|
"src/version.ts"() {
|
|
6274
6289
|
"use strict";
|
|
6275
|
-
CLI_VERSION = true ? "1.16.
|
|
6290
|
+
CLI_VERSION = true ? "1.16.2" : "dev";
|
|
6276
6291
|
}
|
|
6277
6292
|
});
|
|
6278
6293
|
|