Add missing template answers (repoName, username) to exportMigrations #534
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds the remaining required template fields (
repoNameandusername) to the answers object inpreparePackageto prevent interactive prompts whenexportMigrationsis called programmatically.This is a follow-up to PR #533 which added
fullNameandemail. After that fix, the module boilerplate template was still prompting forrepoName. Inspection of the boilerplate config atpgpm-boilerplates/default/module/.boilerplate.jsonrevealed these additional required fields.Review & Testing Checklist for Human
username: 'constructive-io'is acceptable - This value is hardcoded rather than derived from workspace config or author info. Consider if this should be configurable or derived from somewhere else.repoName: nameis correct - Using the module name as the repo name may not always be appropriateRecommended test plan:
@pgpmjs/corepnpm testinpackages/introspectionto verifyintrospect_export.test.tspasses without interactive promptsNotes
This fix was discovered by cloning
pgpm-boilerplatesand inspecting the.boilerplate.jsonquestions. The template requires:fullName,email,moduleName,moduleDesc,repoName,username,access, andlicense.Link to Devin run: https://app.devin.ai/sessions/cf99eca9a417440f98c23cd9db41555b
Requested by: Dan Lynch (@pyramation)
Note
Ensures non-interactive module initialization during exports by completing required template answers.
preparePackageto passanswerswithrepoName: nameandusername: 'constructive-io'toproject.initModuleexportMigrationsis run programmaticallyWritten by Cursor Bugbot for commit 67f708a. This will update automatically on new commits. Configure here.