@getmonoceros/workbench 1.9.6 → 1.9.7

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
@@ -2726,6 +2726,15 @@ function removeFeatureFromDoc(doc, ref) {
2726
2726
  if (!seq || !isSeq(seq)) return false;
2727
2727
  const idx = seq.items.findIndex((i) => isMap2(i) && i.get("ref") === ref);
2728
2728
  if (idx < 0) return false;
2729
+ if (idx > 0) {
2730
+ const prev = seq.items[idx - 1];
2731
+ if (prev && typeof prev.comment === "string" && prev.comment.length > 0) {
2732
+ const blank = prev.comment.match(/\n[ \t]*\n/);
2733
+ if (blank && blank.index !== void 0) {
2734
+ prev.comment = prev.comment.slice(0, blank.index);
2735
+ }
2736
+ }
2737
+ }
2729
2738
  seq.items.splice(idx, 1);
2730
2739
  pruneEmptySeq(doc, "features");
2731
2740
  return true;
@@ -4588,7 +4597,7 @@ async function persistPromptedIdentity(prompted, ymlPath, home, logger) {
4588
4597
  }
4589
4598
 
4590
4599
  // src/version.ts
4591
- var CLI_VERSION = true ? "1.9.6" : "dev";
4600
+ var CLI_VERSION = true ? "1.9.7" : "dev";
4592
4601
 
4593
4602
  // src/commands/_dispatch.ts
4594
4603
  import { consola as consola12 } from "consola";