@getmonoceros/workbench 1.6.5 → 1.6.6

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 CHANGED
@@ -804,7 +804,8 @@ function buildDevcontainerJson(opts, dockerMode = "rootful") {
804
804
  features[f.devcontainerKey] = f.options;
805
805
  }
806
806
  const featuresField = Object.keys(features).length > 0 ? { features } : void 0;
807
- const idmapSuffix = dockerMode === "rootless" ? ",idmap=true" : "";
807
+ void dockerMode;
808
+ const idmapSuffix = "";
808
809
  const homeMounts = [];
809
810
  for (const f of resolvedFeatures) {
810
811
  const allSubs = [
@@ -832,9 +833,7 @@ function buildDevcontainerJson(opts, dockerMode = "rootful") {
832
833
  }
833
834
  const mounts = [...homeMounts];
834
835
  const mountsField = mounts.length > 0 ? { mounts } : {};
835
- const workspaceMountField = dockerMode === "rootless" ? {
836
- workspaceMount: `source=\${localWorkspaceFolder},target=/workspaces/${opts.name},type=bind${idmapSuffix}`
837
- } : {};
836
+ const workspaceMountField = {};
838
837
  return {
839
838
  name: opts.name,
840
839
  image: BASE_IMAGE,
@@ -848,24 +847,15 @@ function buildDevcontainerJson(opts, dockerMode = "rootful") {
848
847
  };
849
848
  }
850
849
  function buildComposeYaml(opts, dockerMode = "rootful") {
850
+ void dockerMode;
851
851
  const lines = ["services:"];
852
- const isRootless = dockerMode === "rootless";
853
852
  lines.push(" workspace:");
854
853
  lines.push(` image: ${BASE_IMAGE}`);
855
854
  lines.push(" command: 'sleep infinity'");
856
855
  lines.push(" cap_add:");
857
856
  lines.push(" - NET_ADMIN");
858
857
  lines.push(" volumes:");
859
- if (isRootless) {
860
- lines.push(" - type: bind");
861
- lines.push(" source: ..");
862
- lines.push(` target: /workspaces/${opts.name}`);
863
- lines.push(" bind:");
864
- lines.push(" create_host_path: true");
865
- lines.push(" idmap: true");
866
- } else {
867
- lines.push(` - ..:/workspaces/${opts.name}:cached`);
868
- }
858
+ lines.push(` - ..:/workspaces/${opts.name}:cached`);
869
859
  const resolvedFeatures = resolveFeatures(opts);
870
860
  for (const f of resolvedFeatures) {
871
861
  const allSubs = [
@@ -873,16 +863,7 @@ function buildComposeYaml(opts, dockerMode = "rootful") {
873
863
  ...f.persistentHomeFiles.map((entry2) => entry2.path)
874
864
  ];
875
865
  for (const sub of allSubs) {
876
- if (isRootless) {
877
- lines.push(" - type: bind");
878
- lines.push(` source: ../home/${sub}`);
879
- lines.push(` target: /home/node/${sub}`);
880
- lines.push(" bind:");
881
- lines.push(" create_host_path: true");
882
- lines.push(" idmap: true");
883
- } else {
884
- lines.push(` - ../home/${sub}:/home/node/${sub}`);
885
- }
866
+ lines.push(` - ../home/${sub}:/home/node/${sub}`);
886
867
  }
887
868
  }
888
869
  for (const svcId of opts.services) {
@@ -2939,7 +2920,7 @@ function warnOnDeprecatedFeatureRefs(containerFeatures, globalConfig, logger) {
2939
2920
  }
2940
2921
 
2941
2922
  // src/version.ts
2942
- var CLI_VERSION = true ? "1.6.5" : "dev";
2923
+ var CLI_VERSION = true ? "1.6.6" : "dev";
2943
2924
 
2944
2925
  // src/commands/_dispatch.ts
2945
2926
  import { consola as consola11 } from "consola";