-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: bring in updates for create's interactive CLI #1781
Conversation
src/next/inputs/inputFromScript.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: I'll split this out into its own first-party create
package.
@@ -14,7 +14,6 @@ export const blockRepositorySettings = base.createBlock({ | |||
allow_auto_merge: true, | |||
allow_rebase_merge: false, | |||
allow_squash_merge: true, | |||
default_branch: "main", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only part of the API that can't run on an empty repository at the moment. I don't mind removing it for now to simplify things. The new default branch in repositories is main
now for a while anyway.
src/steps/finalizeDependencies.ts
Outdated
"-D", | ||
); | ||
} | ||
|
||
await execaCommand(`pnpm dedupe --offline`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why these errors are happening in CI 😞:
\u2009ERR_PNPM_NO_OFFLINE_META\u2009 Failed to resolve @types/[email protected] in package mirror /home/runner/.cache/pnpm/metadata-v1.3/registry.npmjs.org/@types/git-url-parse.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha!
> husky
.git can't be found
It's that whatever is running scripts is probably not working in the right directory. Ha.
PR Checklist
status: accepting prs
Overview
Applies three main areas of change:
directory
string for option defaults so they can work outside of the cwdgh config get user -h github.com
foroptions.owner
, finally removing the need to manually re-type your own owner always 🥳.describe("...")
to their Zod schemas so they can be nicely described in prompts (and, eventually, auto-generated docs)suggestions
Indirect Creations to generate the nice "be sure to..." notice upon completionAlso removes the
--offline
fromfinalizeDependencies
.💖