Repository navigation
Minor Changes
-
#205
679d8a2Thanks @akii09! -initnow proposes install paths that match how the project is laid out, instead of
always assuming asrc/directory.A project with
src/keeps the existing./src/components/pdfx,./src/blocks/pdfx
and./src/lib/pdfx-theme.tsdefaults. A project without one — a Next.js App Router
app being the reported case — is offered./components/pdfx,./blocks/pdfxand
./lib/pdfx-theme.ts, so PDFx no longer creates asrc/tree the project does not use
and there are no longer three prompts to correct by hand.The signal is the presence of
src/, not the framework: a project withoutsrc/should
not have one created for it whatever built it, and a Next.js project that does usesrc/
already wants thesrc/defaults.Prompts remain editable and only their pre-filled values change.
--yesfollows the same
detection, so a non-interactive init in a project withoutsrc/now writes root-level
paths; pass explicit values or keep asrc/directory to get the previous behavior.