@tradejs/cli 2.0.6 → 2.0.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.
@@ -1750,12 +1750,14 @@ var selectStrategy = async (promptLabel = "Select strategy", options) => {
1750
1750
  };
1751
1751
 
1752
1752
  // src/scripts/resolveExportStrategy.ts
1753
+ var ALL_EXPORT_STRATEGIES = "all";
1753
1754
  var resolveExportStrategy = async ({
1754
1755
  explicitStrategy,
1755
1756
  outDir,
1756
1757
  datasetLabel,
1757
1758
  promptLabel,
1758
- listStrategies
1759
+ listStrategies,
1760
+ includeAllOption = false
1759
1761
  }) => {
1760
1762
  const raw = String(explicitStrategy || "").trim();
1761
1763
  if (raw) {
@@ -1773,8 +1775,9 @@ var resolveExportStrategy = async ({
1773
1775
  `Multiple ${datasetLabel} chunk strategies found in ${outDir}: ${availableStrategies.join(", ")}. Pass --strategy.`
1774
1776
  );
1775
1777
  }
1778
+ const promptStrategies = includeAllOption ? [...availableStrategies, ALL_EXPORT_STRATEGIES] : availableStrategies;
1776
1779
  return selectStrategy(promptLabel, {
1777
- strategies: availableStrategies,
1780
+ strategies: promptStrategies,
1778
1781
  defaultStrategy: availableStrategies[0]
1779
1782
  });
1780
1783
  };