promptslide 0.2.3 → 0.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptslide",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "CLI and slide engine for PromptSlide presentations",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -63,7 +63,7 @@ export async function create(args) {
63
63
  const useDefaults = args.includes("--yes") || args.includes("-y")
64
64
  const fromIdx = args.findIndex(a => a === "--from")
65
65
  const fromSlug = fromIdx >= 0 ? args[fromIdx + 1] : null
66
- const filteredArgs = args.filter((a, i) => a !== "--yes" && a !== "-y" && a !== "--from" && i !== fromIdx + 1)
66
+ const filteredArgs = args.filter((a, i) => a !== "--yes" && a !== "-y" && a !== "--from" && !(fromIdx >= 0 && i === fromIdx + 1))
67
67
 
68
68
  // 1. Parse directory name from args or prompt
69
69
  let dirName = filteredArgs[0]