v1.7.0
Minor Changes
-
#50
182b907Thanks @flyon! -create-appnow picks between npm and yarn deliberately instead of silently preferring yarn:- If only one of
npm/yarnis onPATH, that one is used. - If both are installed AND the user is running interactively,
create-appasksPackage manager [npm/yarn] (default: yarn):. Empty answer keeps the old default (yarn). Typingnpmoryarnoverrides. - If both are installed but flags (
--app-name/--app-prefix/--app-domain) were passed, no prompt — yarn wins, matching the previous non-interactive default. - The chosen package manager flows through the install step AND the final "next command" hint, so the copy-paste line at the end is always
cd my-app && npm startorcd my-app && yarn startmatching what was actually installed (instead of always showingnpm startwith a yarn comment).
Why this matters: scaffolding with yarn but then running
npm start(without re-runningnpm install) used to leave critical packages unresolved at webpack-compile time. Picking one PM and reusing it removes that footgun. - If only one of