create-typescript-app 2.62.0 → 2.63.1
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/README.md +1 -1
- package/lib/_virtual/_rolldown/runtime.js +14 -0
- package/lib/base.d.ts +175 -0
- package/lib/base.d.ts.map +1 -0
- package/lib/base.js +3 -3
- package/lib/base.js.map +1 -0
- package/lib/blocks/actions/resolveUses.d.ts +6 -0
- package/lib/blocks/actions/resolveUses.d.ts.map +1 -0
- package/lib/blocks/actions/resolveUses.js +3 -3
- package/lib/blocks/actions/resolveUses.js.map +1 -0
- package/lib/blocks/actions/steps.d.ts +37 -0
- package/lib/blocks/actions/steps.d.ts.map +1 -0
- package/lib/blocks/actions/steps.js +3 -3
- package/lib/blocks/actions/steps.js.map +1 -0
- package/lib/blocks/bin/getPrimaryBin.d.ts +5 -0
- package/lib/blocks/bin/getPrimaryBin.d.ts.map +1 -0
- package/lib/blocks/bin/getPrimaryBin.js +3 -2
- package/lib/blocks/bin/getPrimaryBin.js.map +1 -0
- package/lib/blocks/blockAllContributors.d.ts +72 -0
- package/lib/blocks/blockAllContributors.d.ts.map +1 -0
- package/lib/blocks/blockAllContributors.js +3 -3
- package/lib/blocks/blockAllContributors.js.map +1 -0
- package/lib/blocks/blockAreTheTypesWrong.d.ts +72 -0
- package/lib/blocks/blockAreTheTypesWrong.d.ts.map +1 -0
- package/lib/blocks/blockAreTheTypesWrong.js +3 -3
- package/lib/blocks/blockAreTheTypesWrong.js.map +1 -0
- package/lib/blocks/blockCSpell.d.ts +75 -0
- package/lib/blocks/blockCSpell.d.ts.map +1 -0
- package/lib/blocks/blockCSpell.js +7 -7
- package/lib/blocks/blockCSpell.js.map +1 -0
- package/lib/blocks/blockCTATransitions.d.ts +72 -0
- package/lib/blocks/blockCTATransitions.d.ts.map +1 -0
- package/lib/blocks/blockCTATransitions.js +3 -3
- package/lib/blocks/blockCTATransitions.js.map +1 -0
- package/lib/blocks/blockCodecov.d.ts +74 -0
- package/lib/blocks/blockCodecov.d.ts.map +1 -0
- package/lib/blocks/blockCodecov.js +4 -4
- package/lib/blocks/blockCodecov.js.map +1 -0
- package/lib/blocks/blockContributingDocs.d.ts +72 -0
- package/lib/blocks/blockContributingDocs.d.ts.map +1 -0
- package/lib/blocks/blockContributingDocs.js +5 -4
- package/lib/blocks/blockContributingDocs.js.map +1 -0
- package/lib/blocks/blockContributorCovenant.d.ts +72 -0
- package/lib/blocks/blockContributorCovenant.d.ts.map +1 -0
- package/lib/blocks/blockContributorCovenant.js +3 -3
- package/lib/blocks/blockContributorCovenant.js.map +1 -0
- package/lib/blocks/blockDevelopmentDocs.d.ts +86 -0
- package/lib/blocks/blockDevelopmentDocs.d.ts.map +1 -0
- package/lib/blocks/blockDevelopmentDocs.js +5 -6
- package/lib/blocks/blockDevelopmentDocs.js.map +1 -0
- package/lib/blocks/blockESLint.d.ts +96 -0
- package/lib/blocks/blockESLint.d.ts.map +1 -0
- package/lib/blocks/blockESLint.js +4 -4
- package/lib/blocks/blockESLint.js.map +1 -0
- package/lib/blocks/blockESLintComments.d.ts +72 -0
- package/lib/blocks/blockESLintComments.d.ts.map +1 -0
- package/lib/blocks/blockESLintComments.js +3 -3
- package/lib/blocks/blockESLintComments.js.map +1 -0
- package/lib/blocks/blockESLintJSDoc.d.ts +72 -0
- package/lib/blocks/blockESLintJSDoc.d.ts.map +1 -0
- package/lib/blocks/blockESLintJSDoc.js +3 -3
- package/lib/blocks/blockESLintJSDoc.js.map +1 -0
- package/lib/blocks/blockESLintJSONC.d.ts +72 -0
- package/lib/blocks/blockESLintJSONC.d.ts.map +1 -0
- package/lib/blocks/blockESLintJSONC.js +3 -3
- package/lib/blocks/blockESLintJSONC.js.map +1 -0
- package/lib/blocks/blockESLintMarkdown.d.ts +72 -0
- package/lib/blocks/blockESLintMarkdown.d.ts.map +1 -0
- package/lib/blocks/blockESLintMarkdown.js +3 -3
- package/lib/blocks/blockESLintMarkdown.js.map +1 -0
- package/lib/blocks/blockESLintMoreStyling.d.ts +73 -0
- package/lib/blocks/blockESLintMoreStyling.d.ts.map +1 -0
- package/lib/blocks/blockESLintMoreStyling.js +3 -3
- package/lib/blocks/blockESLintMoreStyling.js.map +1 -0
- package/lib/blocks/blockESLintNode.d.ts +72 -0
- package/lib/blocks/blockESLintNode.d.ts.map +1 -0
- package/lib/blocks/blockESLintNode.js +4 -8
- package/lib/blocks/blockESLintNode.js.map +1 -0
- package/lib/blocks/blockESLintPackageJson.d.ts +72 -0
- package/lib/blocks/blockESLintPackageJson.d.ts.map +1 -0
- package/lib/blocks/blockESLintPackageJson.js +3 -3
- package/lib/blocks/blockESLintPackageJson.js.map +1 -0
- package/lib/blocks/blockESLintPerfectionist.d.ts +72 -0
- package/lib/blocks/blockESLintPerfectionist.d.ts.map +1 -0
- package/lib/blocks/blockESLintPerfectionist.js +3 -3
- package/lib/blocks/blockESLintPerfectionist.js.map +1 -0
- package/lib/blocks/blockESLintPlugin.d.ts +74 -0
- package/lib/blocks/blockESLintPlugin.d.ts.map +1 -0
- package/lib/blocks/blockESLintPlugin.js +3 -3
- package/lib/blocks/blockESLintPlugin.js.map +1 -0
- package/lib/blocks/blockESLintRegexp.d.ts +72 -0
- package/lib/blocks/blockESLintRegexp.d.ts.map +1 -0
- package/lib/blocks/blockESLintRegexp.js +3 -3
- package/lib/blocks/blockESLintRegexp.js.map +1 -0
- package/lib/blocks/blockESLintYML.d.ts +72 -0
- package/lib/blocks/blockESLintYML.d.ts.map +1 -0
- package/lib/blocks/blockESLintYML.js +3 -3
- package/lib/blocks/blockESLintYML.js.map +1 -0
- package/lib/blocks/blockExampleFiles.d.ts +75 -0
- package/lib/blocks/blockExampleFiles.d.ts.map +1 -0
- package/lib/blocks/blockExampleFiles.js +3 -3
- package/lib/blocks/blockExampleFiles.js.map +1 -0
- package/lib/blocks/blockExports.d.ts +75 -0
- package/lib/blocks/blockExports.d.ts.map +1 -0
- package/lib/blocks/blockExports.js +3 -3
- package/lib/blocks/blockExports.js.map +1 -0
- package/lib/blocks/blockFunding.d.ts +72 -0
- package/lib/blocks/blockFunding.d.ts.map +1 -0
- package/lib/blocks/blockFunding.js +3 -3
- package/lib/blocks/blockFunding.js.map +1 -0
- package/lib/blocks/blockGitHubActionsCI.d.ts +88 -0
- package/lib/blocks/blockGitHubActionsCI.d.ts.map +1 -0
- package/lib/blocks/blockGitHubActionsCI.js +3 -3
- package/lib/blocks/blockGitHubActionsCI.js.map +1 -0
- package/lib/blocks/blockGitHubApps.d.ts +77 -0
- package/lib/blocks/blockGitHubApps.d.ts.map +1 -0
- package/lib/blocks/blockGitHubApps.js +3 -3
- package/lib/blocks/blockGitHubApps.js.map +1 -0
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +72 -0
- package/lib/blocks/blockGitHubIssueTemplates.d.ts.map +1 -0
- package/lib/blocks/blockGitHubIssueTemplates.js +3 -3
- package/lib/blocks/blockGitHubIssueTemplates.js.map +1 -0
- package/lib/blocks/blockGitHubPRTemplate.d.ts +72 -0
- package/lib/blocks/blockGitHubPRTemplate.d.ts.map +1 -0
- package/lib/blocks/blockGitHubPRTemplate.js +3 -3
- package/lib/blocks/blockGitHubPRTemplate.js.map +1 -0
- package/lib/blocks/blockGitignore.d.ts +74 -0
- package/lib/blocks/blockGitignore.d.ts.map +1 -0
- package/lib/blocks/blockGitignore.js +3 -3
- package/lib/blocks/blockGitignore.js.map +1 -0
- package/lib/blocks/blockKnip.d.ts +76 -0
- package/lib/blocks/blockKnip.d.ts.map +1 -0
- package/lib/blocks/blockKnip.js +3 -3
- package/lib/blocks/blockKnip.js.map +1 -0
- package/lib/blocks/blockMITLicense.d.ts +72 -0
- package/lib/blocks/blockMITLicense.d.ts.map +1 -0
- package/lib/blocks/blockMITLicense.js +3 -3
- package/lib/blocks/blockMITLicense.js.map +1 -0
- package/lib/blocks/blockNcc.d.ts +74 -0
- package/lib/blocks/blockNcc.d.ts.map +1 -0
- package/lib/blocks/blockNcc.js +3 -3
- package/lib/blocks/blockNcc.js.map +1 -0
- package/lib/blocks/blockNvmrc.d.ts +72 -0
- package/lib/blocks/blockNvmrc.d.ts.map +1 -0
- package/lib/blocks/blockNvmrc.js +3 -3
- package/lib/blocks/blockNvmrc.js.map +1 -0
- package/lib/blocks/blockOctoGuide.d.ts +74 -0
- package/lib/blocks/blockOctoGuide.d.ts.map +1 -0
- package/lib/blocks/blockOctoGuide.js +3 -3
- package/lib/blocks/blockOctoGuide.js.map +1 -0
- package/lib/blocks/blockOctoGuideStrict.d.ts +72 -0
- package/lib/blocks/blockOctoGuideStrict.d.ts.map +1 -0
- package/lib/blocks/blockOctoGuideStrict.js +3 -3
- package/lib/blocks/blockOctoGuideStrict.js.map +1 -0
- package/lib/blocks/blockPackageJson.d.ts +149 -0
- package/lib/blocks/blockPackageJson.d.ts.map +1 -0
- package/lib/blocks/blockPackageJson.js +3 -3
- package/lib/blocks/blockPackageJson.js.map +1 -0
- package/lib/blocks/blockPnpmDedupe.d.ts +72 -0
- package/lib/blocks/blockPnpmDedupe.d.ts.map +1 -0
- package/lib/blocks/blockPnpmDedupe.js +3 -3
- package/lib/blocks/blockPnpmDedupe.js.map +1 -0
- package/lib/blocks/blockPrettier.d.ts +82 -0
- package/lib/blocks/blockPrettier.d.ts.map +1 -0
- package/lib/blocks/blockPrettier.js +3 -3
- package/lib/blocks/blockPrettier.js.map +1 -0
- package/lib/blocks/blockPrettierPluginCurly.d.ts +72 -0
- package/lib/blocks/blockPrettierPluginCurly.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginCurly.js +3 -3
- package/lib/blocks/blockPrettierPluginCurly.js.map +1 -0
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +72 -0
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginPackageJson.js +3 -3
- package/lib/blocks/blockPrettierPluginPackageJson.js.map +1 -0
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts +72 -0
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginSentencesPerLine.js +3 -3
- package/lib/blocks/blockPrettierPluginSentencesPerLine.js.map +1 -0
- package/lib/blocks/blockPrettierPluginSh.d.ts +72 -0
- package/lib/blocks/blockPrettierPluginSh.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginSh.js +3 -3
- package/lib/blocks/blockPrettierPluginSh.js.map +1 -0
- package/lib/blocks/blockREADME.d.ts +85 -0
- package/lib/blocks/blockREADME.d.ts.map +1 -0
- package/lib/blocks/blockREADME.js +3 -3
- package/lib/blocks/blockREADME.js.map +1 -0
- package/lib/blocks/blockReleaseIt.d.ts +77 -0
- package/lib/blocks/blockReleaseIt.d.ts.map +1 -0
- package/lib/blocks/blockReleaseIt.js +3 -3
- package/lib/blocks/blockReleaseIt.js.map +1 -0
- package/lib/blocks/blockRemoveDependencies.d.ts +74 -0
- package/lib/blocks/blockRemoveDependencies.d.ts.map +1 -0
- package/lib/blocks/blockRemoveDependencies.js +3 -3
- package/lib/blocks/blockRemoveDependencies.js.map +1 -0
- package/lib/blocks/blockRemoveFiles.d.ts +74 -0
- package/lib/blocks/blockRemoveFiles.d.ts.map +1 -0
- package/lib/blocks/blockRemoveFiles.js +3 -3
- package/lib/blocks/blockRemoveFiles.js.map +1 -0
- package/lib/blocks/blockRemoveWorkflows.d.ts +74 -0
- package/lib/blocks/blockRemoveWorkflows.d.ts.map +1 -0
- package/lib/blocks/blockRemoveWorkflows.js +3 -3
- package/lib/blocks/blockRemoveWorkflows.js.map +1 -0
- package/lib/blocks/blockRenovate.d.ts +74 -0
- package/lib/blocks/blockRenovate.d.ts.map +1 -0
- package/lib/blocks/blockRenovate.js +4 -4
- package/lib/blocks/blockRenovate.js.map +1 -0
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +74 -0
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts.map +1 -0
- package/lib/blocks/blockRepositoryBranchRuleset.js +3 -3
- package/lib/blocks/blockRepositoryBranchRuleset.js.map +1 -0
- package/lib/blocks/blockRepositoryLabels.d.ts +72 -0
- package/lib/blocks/blockRepositoryLabels.d.ts.map +1 -0
- package/lib/blocks/blockRepositoryLabels.js +3 -3
- package/lib/blocks/blockRepositoryLabels.js.map +1 -0
- package/lib/blocks/blockRepositorySecrets.d.ts +77 -0
- package/lib/blocks/blockRepositorySecrets.d.ts.map +1 -0
- package/lib/blocks/blockRepositorySecrets.js +3 -3
- package/lib/blocks/blockRepositorySecrets.js.map +1 -0
- package/lib/blocks/blockRepositorySettings.d.ts +72 -0
- package/lib/blocks/blockRepositorySettings.d.ts.map +1 -0
- package/lib/blocks/blockRepositorySettings.js +3 -3
- package/lib/blocks/blockRepositorySettings.js.map +1 -0
- package/lib/blocks/blockSecurityDocs.d.ts +72 -0
- package/lib/blocks/blockSecurityDocs.d.ts.map +1 -0
- package/lib/blocks/blockSecurityDocs.js +3 -3
- package/lib/blocks/blockSecurityDocs.js.map +1 -0
- package/lib/blocks/blockSideEffects.d.ts +74 -0
- package/lib/blocks/blockSideEffects.d.ts.map +1 -0
- package/lib/blocks/blockSideEffects.js +3 -3
- package/lib/blocks/blockSideEffects.js.map +1 -0
- package/lib/blocks/blockTSDown.d.ts +76 -0
- package/lib/blocks/blockTSDown.d.ts.map +1 -0
- package/lib/blocks/blockTSDown.js +4 -6
- package/lib/blocks/blockTSDown.js.map +1 -0
- package/lib/blocks/blockTemplatedWith.d.ts +72 -0
- package/lib/blocks/blockTemplatedWith.d.ts.map +1 -0
- package/lib/blocks/blockTemplatedWith.js +3 -3
- package/lib/blocks/blockTemplatedWith.js.map +1 -0
- package/lib/blocks/blockTypeScript.d.ts +184 -0
- package/lib/blocks/blockTypeScript.d.ts.map +1 -0
- package/lib/blocks/blockTypeScript.js +3 -3
- package/lib/blocks/blockTypeScript.js.map +1 -0
- package/lib/blocks/blockVSCode.d.ts +81 -0
- package/lib/blocks/blockVSCode.d.ts.map +1 -0
- package/lib/blocks/blockVSCode.js +3 -3
- package/lib/blocks/blockVSCode.js.map +1 -0
- package/lib/blocks/blockVitest.d.ts +89 -0
- package/lib/blocks/blockVitest.d.ts.map +1 -0
- package/lib/blocks/blockVitest.js +5 -5
- package/lib/blocks/blockVitest.js.map +1 -0
- package/lib/blocks/blockWebExt.d.ts +72 -0
- package/lib/blocks/blockWebExt.d.ts.map +1 -0
- package/lib/blocks/blockWebExt.js +3 -3
- package/lib/blocks/blockWebExt.js.map +1 -0
- package/lib/blocks/eslint/blockESLintIntake.d.ts +11 -0
- package/lib/blocks/eslint/blockESLintIntake.d.ts.map +1 -0
- package/lib/blocks/eslint/blockESLintIntake.js +10 -10
- package/lib/blocks/eslint/blockESLintIntake.js.map +1 -0
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts +7 -0
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts.map +1 -0
- package/lib/blocks/eslint/blockESLintPluginIntake.js +3 -3
- package/lib/blocks/eslint/blockESLintPluginIntake.js.map +1 -0
- package/lib/blocks/eslint/getScriptFileExtension.d.ts +8 -0
- package/lib/blocks/eslint/getScriptFileExtension.d.ts.map +1 -0
- package/lib/blocks/eslint/getScriptFileExtension.js +3 -2
- package/lib/blocks/eslint/getScriptFileExtension.js.map +1 -0
- package/lib/blocks/eslint/mergeAllExtensions.d.ts +17 -0
- package/lib/blocks/eslint/mergeAllExtensions.d.ts.map +1 -0
- package/lib/blocks/eslint/mergeAllExtensions.js +4 -3
- package/lib/blocks/eslint/mergeAllExtensions.js.map +1 -0
- package/lib/blocks/eslint/schemas.d.ts +112 -0
- package/lib/blocks/eslint/schemas.d.ts.map +1 -0
- package/lib/blocks/eslint/schemas.js +3 -3
- package/lib/blocks/eslint/schemas.js.map +1 -0
- package/lib/blocks/files/createJobName.d.ts +5 -0
- package/lib/blocks/files/createJobName.d.ts.map +1 -0
- package/lib/blocks/files/createJobName.js +3 -2
- package/lib/blocks/files/createJobName.js.map +1 -0
- package/lib/blocks/files/createMultiWorkflowFile.d.ts +24 -0
- package/lib/blocks/files/createMultiWorkflowFile.d.ts.map +1 -0
- package/lib/blocks/files/createMultiWorkflowFile.js +3 -3
- package/lib/blocks/files/createMultiWorkflowFile.js.map +1 -0
- package/lib/blocks/files/createSoloWorkflowFile.d.ts +65 -0
- package/lib/blocks/files/createSoloWorkflowFile.d.ts.map +1 -0
- package/lib/blocks/files/createSoloWorkflowFile.js +3 -3
- package/lib/blocks/files/createSoloWorkflowFile.js.map +1 -0
- package/lib/blocks/files/formatIgnoreFile.d.ts +5 -0
- package/lib/blocks/files/formatIgnoreFile.d.ts.map +1 -0
- package/lib/blocks/files/formatIgnoreFile.js +3 -2
- package/lib/blocks/files/formatIgnoreFile.js.map +1 -0
- package/lib/blocks/files/formatWorkflowYaml.d.ts +5 -0
- package/lib/blocks/files/formatWorkflowYaml.d.ts.map +1 -0
- package/lib/blocks/files/formatWorkflowYaml.js +3 -3
- package/lib/blocks/files/formatWorkflowYaml.js.map +1 -0
- package/lib/blocks/files/formatYaml.d.ts +5 -0
- package/lib/blocks/files/formatYaml.d.ts.map +1 -0
- package/lib/blocks/files/formatYaml.js +3 -3
- package/lib/blocks/files/formatYaml.js.map +1 -0
- package/lib/blocks/files/removeUsesQuotes.d.ts +5 -0
- package/lib/blocks/files/removeUsesQuotes.d.ts.map +1 -0
- package/lib/blocks/files/removeUsesQuotes.js +3 -2
- package/lib/blocks/files/removeUsesQuotes.js.map +1 -0
- package/lib/blocks/getInstallationSuggestions.d.ts +5 -0
- package/lib/blocks/getInstallationSuggestions.d.ts.map +1 -0
- package/lib/blocks/getInstallationSuggestions.js +3 -2
- package/lib/blocks/getInstallationSuggestions.js.map +1 -0
- package/lib/blocks/index.d.ts +3713 -0
- package/lib/blocks/index.d.ts.map +1 -0
- package/lib/blocks/index.js +3 -3
- package/lib/blocks/index.js.map +1 -0
- package/lib/blocks/intake/intakeFile.d.ts +6 -0
- package/lib/blocks/intake/intakeFile.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFile.js +3 -2
- package/lib/blocks/intake/intakeFile.js.map +1 -0
- package/lib/blocks/intake/intakeFileAsJson.d.ts +6 -0
- package/lib/blocks/intake/intakeFileAsJson.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileAsJson.js +3 -3
- package/lib/blocks/intake/intakeFileAsJson.js.map +1 -0
- package/lib/blocks/intake/intakeFileAsYaml.d.ts +6 -0
- package/lib/blocks/intake/intakeFileAsYaml.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileAsYaml.js +3 -3
- package/lib/blocks/intake/intakeFileAsYaml.js.map +1 -0
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts +6 -0
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileDefineConfig.js +3 -3
- package/lib/blocks/intake/intakeFileDefineConfig.js.map +1 -0
- package/lib/blocks/intake/intakeFileExportObject.d.ts +6 -0
- package/lib/blocks/intake/intakeFileExportObject.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileExportObject.js +3 -3
- package/lib/blocks/intake/intakeFileExportObject.js.map +1 -0
- package/lib/blocks/options.fakes.d.ts +26 -0
- package/lib/blocks/options.fakes.d.ts.map +1 -0
- package/lib/blocks/options.fakes.js +3 -2
- package/lib/blocks/options.fakes.js.map +1 -0
- package/lib/blocks/outcomeLabels.d.ts +15 -0
- package/lib/blocks/outcomeLabels.d.ts.map +1 -0
- package/lib/blocks/outcomeLabels.js +3 -2
- package/lib/blocks/outcomeLabels.js.map +1 -0
- package/lib/blocks/phases.d.ts +11 -0
- package/lib/blocks/phases.d.ts.map +1 -0
- package/lib/blocks/phases.js +3 -2
- package/lib/blocks/phases.js.map +1 -0
- package/lib/constants.d.ts +10 -0
- package/lib/constants.d.ts.map +1 -0
- package/lib/constants.js +3 -2
- package/lib/constants.js.map +1 -0
- package/lib/data/contributions.d.ts +5 -0
- package/lib/data/contributions.d.ts.map +1 -0
- package/lib/data/contributions.js +3 -2
- package/lib/data/contributions.js.map +1 -0
- package/lib/data/packageData.d.ts +10 -0
- package/lib/data/packageData.d.ts.map +1 -0
- package/lib/data/packageData.js +4 -6
- package/lib/data/packageData.js.map +1 -0
- package/lib/index.d.ts +294 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -0
- package/lib/inputs/inputFromDirectory.d.ts +8 -0
- package/lib/inputs/inputFromDirectory.d.ts.map +1 -0
- package/lib/inputs/inputFromDirectory.js +3 -3
- package/lib/inputs/inputFromDirectory.js.map +1 -0
- package/lib/inputs/inputFromOctokit.d.ts +9 -0
- package/lib/inputs/inputFromOctokit.d.ts.map +1 -0
- package/lib/inputs/inputFromOctokit.js +3 -3
- package/lib/inputs/inputFromOctokit.js.map +1 -0
- package/lib/options/readAccess.d.ts +6 -0
- package/lib/options/readAccess.d.ts.map +1 -0
- package/lib/options/readAccess.js +3 -2
- package/lib/options/readAccess.js.map +1 -0
- package/lib/options/readAllContributors.d.ts +7 -0
- package/lib/options/readAllContributors.d.ts.map +1 -0
- package/lib/options/readAllContributors.js +3 -3
- package/lib/options/readAllContributors.js.map +1 -0
- package/lib/options/readAuthor.d.ts +9 -0
- package/lib/options/readAuthor.d.ts.map +1 -0
- package/lib/options/readAuthor.js +3 -2
- package/lib/options/readAuthor.js.map +1 -0
- package/lib/options/readBin.d.ts +6 -0
- package/lib/options/readBin.d.ts.map +1 -0
- package/lib/options/readBin.js +3 -3
- package/lib/options/readBin.js.map +1 -0
- package/lib/options/readDescription.d.ts +6 -0
- package/lib/options/readDescription.d.ts.map +1 -0
- package/lib/options/readDescription.js +3 -3
- package/lib/options/readDescription.js.map +1 -0
- package/lib/options/readDescriptionFromReadme.d.ts +5 -0
- package/lib/options/readDescriptionFromReadme.d.ts.map +1 -0
- package/lib/options/readDescriptionFromReadme.js +3 -2
- package/lib/options/readDescriptionFromReadme.js.map +1 -0
- package/lib/options/readDevelopmentDocumentation.d.ts +6 -0
- package/lib/options/readDevelopmentDocumentation.d.ts.map +1 -0
- package/lib/options/readDevelopmentDocumentation.js +4 -4
- package/lib/options/readDevelopmentDocumentation.js.map +1 -0
- package/lib/options/readDocumentation.d.ts +6 -0
- package/lib/options/readDocumentation.d.ts.map +1 -0
- package/lib/options/readDocumentation.js +3 -2
- package/lib/options/readDocumentation.js.map +1 -0
- package/lib/options/readEmailFromCodeOfConduct.d.ts +6 -0
- package/lib/options/readEmailFromCodeOfConduct.d.ts.map +1 -0
- package/lib/options/readEmailFromCodeOfConduct.js +3 -3
- package/lib/options/readEmailFromCodeOfConduct.js.map +1 -0
- package/lib/options/readEmailFromGit.d.ts +6 -0
- package/lib/options/readEmailFromGit.d.ts.map +1 -0
- package/lib/options/readEmailFromGit.js +3 -3
- package/lib/options/readEmailFromGit.js.map +1 -0
- package/lib/options/readEmailFromNpm.d.ts +7 -0
- package/lib/options/readEmailFromNpm.d.ts.map +1 -0
- package/lib/options/readEmailFromNpm.js +3 -2
- package/lib/options/readEmailFromNpm.js.map +1 -0
- package/lib/options/readEmails.d.ts +9 -0
- package/lib/options/readEmails.d.ts.map +1 -0
- package/lib/options/readEmails.js +3 -2
- package/lib/options/readEmails.js.map +1 -0
- package/lib/options/readEmoji.d.ts +5 -0
- package/lib/options/readEmoji.d.ts.map +1 -0
- package/lib/options/readEmoji.js +3 -2
- package/lib/options/readEmoji.js.map +1 -0
- package/lib/options/readExistingLabels.d.ts +10 -0
- package/lib/options/readExistingLabels.d.ts.map +1 -0
- package/lib/options/readExistingLabels.js +3 -3
- package/lib/options/readExistingLabels.js.map +1 -0
- package/lib/options/readFileAsJson.d.ts +5 -0
- package/lib/options/readFileAsJson.d.ts.map +1 -0
- package/lib/options/readFileAsJson.js +3 -3
- package/lib/options/readFileAsJson.js.map +1 -0
- package/lib/options/readFileSafe.d.ts +5 -0
- package/lib/options/readFileSafe.d.ts.map +1 -0
- package/lib/options/readFileSafe.js +3 -3
- package/lib/options/readFileSafe.js.map +1 -0
- package/lib/options/readFunding.d.ts +6 -0
- package/lib/options/readFunding.d.ts.map +1 -0
- package/lib/options/readFunding.js +3 -3
- package/lib/options/readFunding.js.map +1 -0
- package/lib/options/readGitDefaults.d.ts +7 -0
- package/lib/options/readGitDefaults.d.ts.map +1 -0
- package/lib/options/readGitDefaults.js +3 -3
- package/lib/options/readGitDefaults.js.map +1 -0
- package/lib/options/readGuide.d.ts +9 -0
- package/lib/options/readGuide.d.ts.map +1 -0
- package/lib/options/readGuide.js +3 -3
- package/lib/options/readGuide.js.map +1 -0
- package/lib/options/readKeywords.d.ts +6 -0
- package/lib/options/readKeywords.d.ts.map +1 -0
- package/lib/options/readKeywords.js +3 -2
- package/lib/options/readKeywords.js.map +1 -0
- package/lib/options/readLogo.d.ts +10 -0
- package/lib/options/readLogo.d.ts.map +1 -0
- package/lib/options/readLogo.js +5 -4
- package/lib/options/readLogo.js.map +1 -0
- package/lib/options/readLogoSizing.d.ts +9 -0
- package/lib/options/readLogoSizing.d.ts.map +1 -0
- package/lib/options/readLogoSizing.js +3 -3
- package/lib/options/readLogoSizing.js.map +1 -0
- package/lib/options/readNode.d.ts +9 -0
- package/lib/options/readNode.d.ts.map +1 -0
- package/lib/options/readNode.js +3 -3
- package/lib/options/readNode.js.map +1 -0
- package/lib/options/readNpmDefaults.d.ts +6 -0
- package/lib/options/readNpmDefaults.d.ts.map +1 -0
- package/lib/options/readNpmDefaults.js +3 -3
- package/lib/options/readNpmDefaults.js.map +1 -0
- package/lib/options/readOwner.d.ts +8 -0
- package/lib/options/readOwner.d.ts.map +1 -0
- package/lib/options/readOwner.js +3 -3
- package/lib/options/readOwner.js.map +1 -0
- package/lib/options/readPackageAuthor.d.ts +10 -0
- package/lib/options/readPackageAuthor.d.ts.map +1 -0
- package/lib/options/readPackageAuthor.js +3 -3
- package/lib/options/readPackageAuthor.js.map +1 -0
- package/lib/options/readPackageData.d.ts +7 -0
- package/lib/options/readPackageData.d.ts.map +1 -0
- package/lib/options/readPackageData.js +3 -3
- package/lib/options/readPackageData.js.map +1 -0
- package/lib/options/readPnpm.d.ts +6 -0
- package/lib/options/readPnpm.d.ts.map +1 -0
- package/lib/options/readPnpm.js +3 -2
- package/lib/options/readPnpm.js.map +1 -0
- package/lib/options/readReadmeAdditional.d.ts +5 -0
- package/lib/options/readReadmeAdditional.d.ts.map +1 -0
- package/lib/options/readReadmeAdditional.js +3 -3
- package/lib/options/readReadmeAdditional.js.map +1 -0
- package/lib/options/readReadmeExplainer.d.ts +5 -0
- package/lib/options/readReadmeExplainer.d.ts.map +1 -0
- package/lib/options/readReadmeExplainer.js +3 -2
- package/lib/options/readReadmeExplainer.js.map +1 -0
- package/lib/options/readReadmeFootnotes.d.ts +6 -0
- package/lib/options/readReadmeFootnotes.d.ts.map +1 -0
- package/lib/options/readReadmeFootnotes.js +3 -2
- package/lib/options/readReadmeFootnotes.js.map +1 -0
- package/lib/options/readReadmeUsage.d.ts +5 -0
- package/lib/options/readReadmeUsage.d.ts.map +1 -0
- package/lib/options/readReadmeUsage.js +3 -2
- package/lib/options/readReadmeUsage.js.map +1 -0
- package/lib/options/readRepository.d.ts +10 -0
- package/lib/options/readRepository.d.ts.map +1 -0
- package/lib/options/readRepository.js +3 -2
- package/lib/options/readRepository.js.map +1 -0
- package/lib/options/readRulesetId.d.ts +6 -0
- package/lib/options/readRulesetId.d.ts.map +1 -0
- package/lib/options/readRulesetId.js +3 -3
- package/lib/options/readRulesetId.js.map +1 -0
- package/lib/options/readTitle.d.ts +5 -0
- package/lib/options/readTitle.d.ts.map +1 -0
- package/lib/options/readTitle.js +3 -3
- package/lib/options/readTitle.js.map +1 -0
- package/lib/options/readWords.d.ts +6 -0
- package/lib/options/readWords.d.ts.map +1 -0
- package/lib/options/readWords.js +3 -3
- package/lib/options/readWords.js.map +1 -0
- package/lib/options/readWorkflowsVersions.d.ts +7 -0
- package/lib/options/readWorkflowsVersions.d.ts.map +1 -0
- package/lib/options/readWorkflowsVersions.js +3 -3
- package/lib/options/readWorkflowsVersions.js.map +1 -0
- package/lib/package.json.d.ts +138 -0
- package/lib/package.json.d.ts.map +1 -0
- package/lib/presets/common.d.ts +170 -0
- package/lib/presets/common.d.ts.map +1 -0
- package/lib/presets/common.js +3 -3
- package/lib/presets/common.js.map +1 -0
- package/lib/presets/everything.d.ts +170 -0
- package/lib/presets/everything.d.ts.map +1 -0
- package/lib/presets/everything.js +3 -3
- package/lib/presets/everything.js.map +1 -0
- package/lib/presets/index.d.ts +507 -0
- package/lib/presets/index.d.ts.map +1 -0
- package/lib/presets/index.js +3 -3
- package/lib/presets/index.js.map +1 -0
- package/lib/presets/minimal.d.ts +170 -0
- package/lib/presets/minimal.d.ts.map +1 -0
- package/lib/presets/minimal.js +3 -3
- package/lib/presets/minimal.js.map +1 -0
- package/lib/schemas.d.ts +111 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +3 -3
- package/lib/schemas.js.map +1 -0
- package/lib/template.d.ts +170 -0
- package/lib/template.d.ts.map +1 -0
- package/lib/template.js +3 -3
- package/lib/template.js.map +1 -0
- package/lib/types.d.ts +42 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +1 -1
- package/lib/utils/htmlToTextSafe.d.ts +5 -0
- package/lib/utils/htmlToTextSafe.d.ts.map +1 -0
- package/lib/utils/htmlToTextSafe.js +3 -3
- package/lib/utils/htmlToTextSafe.js.map +1 -0
- package/lib/utils/resolveBin.d.ts +5 -0
- package/lib/utils/resolveBin.d.ts.map +1 -0
- package/lib/utils/resolveBin.js +3 -3
- package/lib/utils/resolveBin.js.map +1 -0
- package/lib/utils/swallowError.d.ts +5 -0
- package/lib/utils/swallowError.d.ts.map +1 -0
- package/lib/utils/swallowError.js +3 -2
- package/lib/utils/swallowError.js.map +1 -0
- package/lib/utils/swallowErrorAsync.d.ts +5 -0
- package/lib/utils/swallowErrorAsync.d.ts.map +1 -0
- package/lib/utils/swallowErrorAsync.js +3 -2
- package/lib/utils/swallowErrorAsync.js.map +1 -0
- package/lib/utils/trimPrecedingSlash.d.ts +5 -0
- package/lib/utils/trimPrecedingSlash.d.ts.map +1 -0
- package/lib/utils/trimPrecedingSlash.js +3 -2
- package/lib/utils/trimPrecedingSlash.js.map +1 -0
- package/lib/utils/tryCatch.d.ts +5 -0
- package/lib/utils/tryCatch.d.ts.map +1 -0
- package/lib/utils/tryCatch.js +3 -2
- package/lib/utils/tryCatch.js.map +1 -0
- package/package.json +40 -40
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readDocumentation.d.ts","names":[],"sources":["../../src/options/readDocumentation.ts"],"mappings":";;iBAEsB,kBACrB,mCAAmC,6BACnC,2BAA2B,6BAC3B,0BAA0B,6BAC1B,0BAA0B,6BAC1B,sBAAsB,8BACpB,QAAQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readDocumentation.js","names":[],"sources":["../../src/options/readDocumentation.ts"],"sourcesContent":["import { Documentation } from \"../schemas.js\";\n\nexport async function readDocumentation(\n\tgetDevelopmentDocumentation: () => Promise<string | undefined>,\n\tgetReadmeAdditional: () => Promise<string | undefined>,\n\tgetReadmeExplainer: () => Promise<string | undefined>,\n\tgetReadmeFootnotes: () => Promise<string | undefined>,\n\tgetReadmeUsage: () => Promise<string | undefined>,\n): Promise<Documentation> {\n\tconst [additional, explainer, footnotes, development, usage] =\n\t\tawait Promise.all([\n\t\t\tgetReadmeAdditional(),\n\t\t\tgetReadmeExplainer(),\n\t\t\tgetReadmeFootnotes(),\n\t\t\tgetDevelopmentDocumentation(),\n\t\t\tgetReadmeUsage(),\n\t\t]);\n\n\treturn {\n\t\tdevelopment,\n\t\treadme: {\n\t\t\tadditional,\n\t\t\texplainer,\n\t\t\tfootnotes,\n\t\t\tusage,\n\t\t},\n\t};\n}\n"],"mappings":";AAEA,eAAsB,kBACrB,6BACA,qBACA,oBACA,oBACA,gBACyB;CACzB,MAAM,CAAC,YAAY,WAAW,WAAW,aAAa,SACrD,MAAM,QAAQ,IAAI;EACjB,oBAAoB;EACpB,mBAAmB;EACnB,mBAAmB;EACnB,4BAA4B;EAC5B,eAAe;CAChB,CAAC;CAEF,OAAO;EACN;EACA,QAAQ;GACP;GACA;GACA;GACA;EACD;CACD;AACD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TakeInput } from "bingo";
|
|
2
|
+
//#region src/options/readEmailFromCodeOfConduct.d.ts
|
|
3
|
+
declare function readEmailFromCodeOfConduct(take: TakeInput): Promise<string | undefined>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { readEmailFromCodeOfConduct };
|
|
6
|
+
//# sourceMappingURL=readEmailFromCodeOfConduct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readEmailFromCodeOfConduct.d.ts","names":[],"sources":["../../src/options/readEmailFromCodeOfConduct.ts"],"mappings":";;iBAGsB,2BAA2B,MAAM,YAAS"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { inputFromFile } from "input-from-file";
|
|
2
|
-
|
|
3
2
|
//#region src/options/readEmailFromCodeOfConduct.ts
|
|
4
3
|
async function readEmailFromCodeOfConduct(take) {
|
|
5
4
|
const codeOfConduct = await take(inputFromFile, { filePath: ".github/CODE_OF_CONDUCT.md" });
|
|
6
5
|
return typeof codeOfConduct === "string" && codeOfConduct.includes("Contributor Covenant Code of Conduct") ? /for enforcement at[\r\n]+(.+)\.[\r\n]+All/.exec(codeOfConduct)?.[1] : void 0;
|
|
7
6
|
}
|
|
8
|
-
|
|
9
7
|
//#endregion
|
|
10
|
-
export { readEmailFromCodeOfConduct };
|
|
8
|
+
export { readEmailFromCodeOfConduct };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=readEmailFromCodeOfConduct.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readEmailFromCodeOfConduct.js","names":[],"sources":["../../src/options/readEmailFromCodeOfConduct.ts"],"sourcesContent":["import { TakeInput } from \"bingo\";\nimport { inputFromFile } from \"input-from-file\";\n\nexport async function readEmailFromCodeOfConduct(take: TakeInput) {\n\tconst codeOfConduct = await take(inputFromFile, {\n\t\tfilePath: \".github/CODE_OF_CONDUCT.md\",\n\t});\n\n\treturn typeof codeOfConduct === \"string\" &&\n\t\tcodeOfConduct.includes(\"Contributor Covenant Code of Conduct\")\n\t\t? /for enforcement at[\\r\\n]+(.+)\\.[\\r\\n]+All/.exec(codeOfConduct)?.[1]\n\t\t: undefined;\n}\n"],"mappings":";;AAGA,eAAsB,2BAA2B,MAAiB;CACjE,MAAM,gBAAgB,MAAM,KAAK,eAAe,EAC/C,UAAU,6BACX,CAAC;CAED,OAAO,OAAO,kBAAkB,YAC/B,cAAc,SAAS,sCAAsC,IAC3D,4CAA4C,KAAK,aAAa,CAAC,GAAG,KAClE,KAAA;AACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readEmailFromGit.d.ts","names":[],"sources":["../../src/options/readEmailFromGit.ts"],"mappings":";;iBAGsB,iBAAiB,MAAM,YAAS"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { inputFromScript } from "input-from-script";
|
|
2
|
-
|
|
3
2
|
//#region src/options/readEmailFromGit.ts
|
|
4
3
|
async function readEmailFromGit(take) {
|
|
5
4
|
return (await take(inputFromScript, { command: "git config --get user.email" })).stdout?.toString();
|
|
6
5
|
}
|
|
7
|
-
|
|
8
6
|
//#endregion
|
|
9
|
-
export { readEmailFromGit };
|
|
7
|
+
export { readEmailFromGit };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=readEmailFromGit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readEmailFromGit.js","names":[],"sources":["../../src/options/readEmailFromGit.ts"],"sourcesContent":["import { TakeInput } from \"bingo\";\nimport { inputFromScript } from \"input-from-script\";\n\nexport async function readEmailFromGit(take: TakeInput) {\n\treturn (\n\t\tawait take(inputFromScript, { command: \"git config --get user.email\" })\n\t).stdout?.toString();\n}\n"],"mappings":";;AAGA,eAAsB,iBAAiB,MAAiB;CACvD,QACC,MAAM,KAAK,iBAAiB,EAAE,SAAS,8BAA8B,CAAC,EAAA,CACrE,QAAQ,SAAS;AACpB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PackageAuthor } from "./readPackageAuthor.js";
|
|
2
|
+
import { UserInfo } from "npm-user";
|
|
3
|
+
//#region src/options/readEmailFromNpm.d.ts
|
|
4
|
+
declare function readEmailFromNpm(getNpmDefaults: () => Promise<undefined | UserInfo>, getPackageAuthor: () => Promise<PackageAuthor>): Promise<string | undefined>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { readEmailFromNpm };
|
|
7
|
+
//# sourceMappingURL=readEmailFromNpm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readEmailFromNpm.d.ts","names":[],"sources":["../../src/options/readEmailFromNpm.ts"],"mappings":";;;iBAIsB,iBACrB,sBAAsB,oBAAoB,WAC1C,wBAAwB,QAAQ,iBAAc"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
async function readEmailFromNpm(getNpmDefaults, getPackageAuthor) {
|
|
3
3
|
return (await getNpmDefaults())?.email ?? (await getPackageAuthor()).email;
|
|
4
4
|
}
|
|
5
|
-
|
|
6
5
|
//#endregion
|
|
7
|
-
export { readEmailFromNpm };
|
|
6
|
+
export { readEmailFromNpm };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=readEmailFromNpm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readEmailFromNpm.js","names":[],"sources":["../../src/options/readEmailFromNpm.ts"],"sourcesContent":["import { UserInfo } from \"npm-user\";\n\nimport { PackageAuthor } from \"./readPackageAuthor.js\";\n\nexport async function readEmailFromNpm(\n\tgetNpmDefaults: () => Promise<undefined | UserInfo>,\n\tgetPackageAuthor: () => Promise<PackageAuthor>,\n) {\n\treturn (await getNpmDefaults())?.email ?? (await getPackageAuthor()).email;\n}\n"],"mappings":";AAIA,eAAsB,iBACrB,gBACA,kBACC;CACD,QAAQ,MAAM,eAAe,EAAA,EAAI,UAAU,MAAM,iBAAiB,EAAA,CAAG;AACtE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PackageAuthor } from "./readPackageAuthor.js";
|
|
2
|
+
//#region src/options/readEmails.d.ts
|
|
3
|
+
declare function readEmails(getEmailFromCodeOfConduct: () => Promise<string | undefined>, getEmailFromGit: () => Promise<string | undefined>, getEmailFromNpm: () => Promise<string | undefined>, getPackageAuthor: () => Promise<PackageAuthor>): Promise<{
|
|
4
|
+
github: string;
|
|
5
|
+
npm: string;
|
|
6
|
+
} | undefined>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { readEmails };
|
|
9
|
+
//# sourceMappingURL=readEmails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readEmails.d.ts","names":[],"sources":["../../src/options/readEmails.ts"],"mappings":";;iBAEsB,WACrB,iCAAiC,6BACjC,uBAAuB,6BACvB,uBAAuB,6BACvB,wBAAwB,QAAQ,iBAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readEmails.js","names":[],"sources":["../../src/options/readEmails.ts"],"sourcesContent":["import { PackageAuthor } from \"./readPackageAuthor.js\";\n\nexport async function readEmails(\n\tgetEmailFromCodeOfConduct: () => Promise<string | undefined>,\n\tgetEmailFromGit: () => Promise<string | undefined>,\n\tgetEmailFromNpm: () => Promise<string | undefined>,\n\tgetPackageAuthor: () => Promise<PackageAuthor>,\n) {\n\tconst github =\n\t\t(await getEmailFromCodeOfConduct()) ?? (await getEmailFromGit());\n\tconst npm =\n\t\t(await getPackageAuthor()).email ?? (await getEmailFromNpm()) ?? github;\n\n\treturn npm ? { github: github || npm, npm } : undefined;\n}\n"],"mappings":";AAEA,eAAsB,WACrB,2BACA,iBACA,iBACA,kBACC;CACD,MAAM,SACJ,MAAM,0BAA0B,KAAO,MAAM,gBAAgB;CAC/D,MAAM,OACJ,MAAM,iBAAiB,EAAA,CAAG,SAAU,MAAM,gBAAgB,KAAM;CAElE,OAAO,MAAM;EAAE,QAAQ,UAAU;EAAK;CAAI,IAAI,KAAA;AAC/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readEmoji.d.ts","names":[],"sources":["../../src/options/readEmoji.ts"],"mappings":";iBAAsB,UACrB,sBAAsB,8BAA2B"}
|
package/lib/options/readEmoji.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readEmoji.js","names":[],"sources":["../../src/options/readEmoji.ts"],"sourcesContent":["export async function readEmoji(\n\tgetDescription: () => Promise<string | undefined>,\n) {\n\treturn (\n\t\t(await getDescription())?.match(/\\p{Extended_Pictographic}/gu)?.at(-1) ??\n\t\t\"💖\"\n\t);\n}\n"],"mappings":";AAAA,eAAsB,UACrB,gBACC;CACD,QACE,MAAM,eAAe,EAAA,EAAI,MAAM,6BAA6B,CAAC,EAAE,GAAG,EAAE,KACrE;AAEF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TakeInput } from "bingo";
|
|
2
|
+
//#region src/options/readExistingLabels.d.ts
|
|
3
|
+
declare function readExistingLabels(take: TakeInput, getOwner: () => Promise<string | undefined>, getRepository: () => Promise<string | undefined>): Promise<{
|
|
4
|
+
color: string;
|
|
5
|
+
description: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}[]>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { readExistingLabels };
|
|
10
|
+
//# sourceMappingURL=readExistingLabels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readExistingLabels.d.ts","names":[],"sources":["../../src/options/readExistingLabels.ts"],"mappings":";;iBAMsB,mBACrB,MAAM,WACN,gBAAgB,6BAChB,qBAAqB,8BAA2B"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { inputFromOctokit } from "../inputs/inputFromOctokit.js";
|
|
2
2
|
import { githubDefaultLabels } from "github-default-labels";
|
|
3
|
-
|
|
4
3
|
//#region src/options/readExistingLabels.ts
|
|
5
4
|
async function readExistingLabels(take, getOwner, getRepository) {
|
|
6
5
|
const [owner, repository] = await Promise.all([getOwner(), getRepository()]);
|
|
@@ -18,6 +17,7 @@ async function readExistingLabels(take, getOwner, getRepository) {
|
|
|
18
17
|
}));
|
|
19
18
|
return githubDefaultLabels;
|
|
20
19
|
}
|
|
21
|
-
|
|
22
20
|
//#endregion
|
|
23
|
-
export { readExistingLabels };
|
|
21
|
+
export { readExistingLabels };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=readExistingLabels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readExistingLabels.js","names":[],"sources":["../../src/options/readExistingLabels.ts"],"sourcesContent":["import { TakeInput } from \"bingo\";\nimport { githubDefaultLabels } from \"github-default-labels\";\nimport { OutcomeLabel } from \"set-github-repository-labels\";\n\nimport { inputFromOctokit } from \"../inputs/inputFromOctokit.js\";\n\nexport async function readExistingLabels(\n\ttake: TakeInput,\n\tgetOwner: () => Promise<string | undefined>,\n\tgetRepository: () => Promise<string | undefined>,\n) {\n\tconst [owner, repository] = await Promise.all([getOwner(), getRepository()]);\n\n\t// When transitioning an existing repo, it should already have labels\n\tconst existingLabelsActual =\n\t\towner &&\n\t\trepository &&\n\t\t((await take(inputFromOctokit, {\n\t\t\tendpoint: \"GET /repos/{owner}/{repo}/labels\",\n\t\t\toptions: {\n\t\t\t\towner,\n\t\t\t\trepo: repository,\n\t\t\t},\n\t\t})) as OutcomeLabel[] | undefined);\n\n\tif (existingLabelsActual) {\n\t\t// The labels API includes more properties than we use\n\t\treturn existingLabelsActual.map((label) => ({\n\t\t\tcolor: label.color,\n\t\t\tdescription: label.description,\n\t\t\tname: label.name,\n\t\t}));\n\t}\n\n\t// In setup mode, options evaluate before creating the repository.\n\t// We'd want the owner's defaults in case they've customized them...\n\t// ...except, GitHub doesn't have an API for this 🙁.\n\t// We instead go with the known default labels:\n\treturn githubDefaultLabels;\n}\n"],"mappings":";;;AAMA,eAAsB,mBACrB,MACA,UACA,eACC;CACD,MAAM,CAAC,OAAO,cAAc,MAAM,QAAQ,IAAI,CAAC,SAAS,GAAG,cAAc,CAAC,CAAC;CAG3E,MAAM,uBACL,SACA,cACE,MAAM,KAAK,kBAAkB;EAC9B,UAAU;EACV,SAAS;GACR;GACA,MAAM;EACP;CACD,CAAC;CAEF,IAAI,sBAEH,OAAO,qBAAqB,KAAK,WAAW;EAC3C,OAAO,MAAM;EACb,aAAa,MAAM;EACnB,MAAM,MAAM;CACb,EAAE;CAOH,OAAO;AACR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readFileAsJson.d.ts","names":[],"sources":["../../src/options/readFileAsJson.ts"],"mappings":";iBAEsB,eAAe,mBAAgB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as fs from "node:fs/promises";
|
|
2
|
-
|
|
3
2
|
//#region src/options/readFileAsJson.ts
|
|
4
3
|
async function readFileAsJson(filePath) {
|
|
5
4
|
try {
|
|
@@ -8,6 +7,7 @@ async function readFileAsJson(filePath) {
|
|
|
8
7
|
throw new Error(`Could not read file from ${filePath} as JSON. Please ensure the file exists and is valid JSON.`, { cause: error });
|
|
9
8
|
}
|
|
10
9
|
}
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
|
-
export { readFileAsJson };
|
|
11
|
+
export { readFileAsJson };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=readFileAsJson.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readFileAsJson.js","names":[],"sources":["../../src/options/readFileAsJson.ts"],"sourcesContent":["import * as fs from \"node:fs/promises\";\n\nexport async function readFileAsJson(filePath: string) {\n\ttry {\n\t\treturn JSON.parse((await fs.readFile(filePath)).toString()) as unknown;\n\t} catch (error) {\n\t\tthrow new Error(\n\t\t\t`Could not read file from ${filePath} as JSON. Please ensure the file exists and is valid JSON.`,\n\t\t\t{ cause: error },\n\t\t);\n\t}\n}\n"],"mappings":";;AAEA,eAAsB,eAAe,UAAkB;CACtD,IAAI;EACH,OAAO,KAAK,OAAO,MAAM,GAAG,SAAS,QAAQ,EAAA,CAAG,SAAS,CAAC;CAC3D,SAAS,OAAO;EACf,MAAM,IAAI,MACT,4BAA4B,SAAS,6DACrC,EAAE,OAAO,MAAM,CAChB;CACD;AACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readFileSafe.d.ts","names":[],"sources":["../../src/options/readFileSafe.ts"],"mappings":";iBAEsB,aAAa,mBAAmB,KAAK,mBAAgB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as fs from "node:fs/promises";
|
|
2
|
-
|
|
3
2
|
//#region src/options/readFileSafe.ts
|
|
4
3
|
async function readFileSafe(filePath, fallback) {
|
|
5
4
|
try {
|
|
@@ -8,6 +7,7 @@ async function readFileSafe(filePath, fallback) {
|
|
|
8
7
|
return fallback;
|
|
9
8
|
}
|
|
10
9
|
}
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
|
-
export { readFileSafe };
|
|
11
|
+
export { readFileSafe };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=readFileSafe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readFileSafe.js","names":[],"sources":["../../src/options/readFileSafe.ts"],"sourcesContent":["import * as fs from \"node:fs/promises\";\n\nexport async function readFileSafe(filePath: string | URL, fallback: string) {\n\ttry {\n\t\treturn (await fs.readFile(filePath)).toString();\n\t} catch {\n\t\treturn fallback;\n\t}\n}\n"],"mappings":";;AAEA,eAAsB,aAAa,UAAwB,UAAkB;CAC5E,IAAI;EACH,QAAQ,MAAM,GAAG,SAAS,QAAQ,EAAA,CAAG,SAAS;CAC/C,QAAQ;EACP,OAAO;CACR;AACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readFunding.d.ts","names":[],"sources":["../../src/options/readFunding.ts"],"mappings":";;iBAKsB,YAAY,MAAM,YAAS"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { swallowError } from "../utils/swallowError.js";
|
|
2
2
|
import { inputFromFile } from "input-from-file";
|
|
3
|
-
|
|
4
3
|
//#region src/options/readFunding.ts
|
|
5
4
|
async function readFunding(take) {
|
|
6
5
|
return swallowError(await take(inputFromFile, { filePath: ".github/FUNDING.yaml" }))?.split(":")[1]?.trim();
|
|
7
6
|
}
|
|
8
|
-
|
|
9
7
|
//#endregion
|
|
10
|
-
export { readFunding };
|
|
8
|
+
export { readFunding };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=readFunding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readFunding.js","names":[],"sources":["../../src/options/readFunding.ts"],"sourcesContent":["import { TakeInput } from \"bingo\";\nimport { inputFromFile } from \"input-from-file\";\n\nimport { swallowError } from \"../utils/swallowError.js\";\n\nexport async function readFunding(take: TakeInput) {\n\treturn swallowError(\n\t\tawait take(inputFromFile, { filePath: \".github/FUNDING.yaml\" }),\n\t)\n\t\t?.split(\":\")[1]\n\t\t?.trim();\n}\n"],"mappings":";;;AAKA,eAAsB,YAAY,MAAiB;CAClD,OAAO,aACN,MAAM,KAAK,eAAe,EAAE,UAAU,uBAAuB,CAAC,CAC/D,CAAC,EACE,MAAM,GAAG,CAAC,CAAC,EAAE,EACb,KAAK;AACT"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TakeInput } from "bingo";
|
|
2
|
+
import gitUrlParse from "git-url-parse";
|
|
3
|
+
//#region src/options/readGitDefaults.d.ts
|
|
4
|
+
declare function readGitDefaults(take: TakeInput): Promise<gitUrlParse.GitUrl | undefined>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { readGitDefaults };
|
|
7
|
+
//# sourceMappingURL=readGitDefaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readGitDefaults.d.ts","names":[],"sources":["../../src/options/readGitDefaults.ts"],"mappings":";;;iBAIsB,gBAAgB,MAAM,YAAS,QAAA,YAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { inputFromScript } from "input-from-script";
|
|
2
2
|
import gitUrlParse from "git-url-parse";
|
|
3
|
-
|
|
4
3
|
//#region src/options/readGitDefaults.ts
|
|
5
4
|
async function readGitDefaults(take) {
|
|
6
5
|
const url = await take(inputFromScript, { command: "git remote get-url origin" });
|
|
7
6
|
return url.stdout ? gitUrlParse(url.stdout.toString()) : void 0;
|
|
8
7
|
}
|
|
9
|
-
|
|
10
8
|
//#endregion
|
|
11
|
-
export { readGitDefaults };
|
|
9
|
+
export { readGitDefaults };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=readGitDefaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readGitDefaults.js","names":[],"sources":["../../src/options/readGitDefaults.ts"],"sourcesContent":["import { TakeInput } from \"bingo\";\nimport gitUrlParse from \"git-url-parse\";\nimport { inputFromScript } from \"input-from-script\";\n\nexport async function readGitDefaults(take: TakeInput) {\n\tconst url = await take(inputFromScript, {\n\t\tcommand: \"git remote get-url origin\",\n\t});\n\n\treturn url.stdout ? gitUrlParse(url.stdout.toString()) : undefined;\n}\n"],"mappings":";;;AAIA,eAAsB,gBAAgB,MAAiB;CACtD,MAAM,MAAM,MAAM,KAAK,iBAAiB,EACvC,SAAS,4BACV,CAAC;CAED,OAAO,IAAI,SAAS,YAAY,IAAI,OAAO,SAAS,CAAC,IAAI,KAAA;AAC1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readGuide.d.ts","names":[],"sources":["../../src/options/readGuide.ts"],"mappings":";;iBAGsB,UAAU,MAAM,YAAS"}
|
package/lib/options/readGuide.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { inputFromFile } from "input-from-file";
|
|
2
|
-
|
|
3
2
|
//#region src/options/readGuide.ts
|
|
4
3
|
async function readGuide(take) {
|
|
5
4
|
const development = await take(inputFromFile, { filePath: ".github/DEVELOPMENT.md" });
|
|
@@ -11,6 +10,7 @@ async function readGuide(take) {
|
|
|
11
10
|
title: tag[1]
|
|
12
11
|
};
|
|
13
12
|
}
|
|
14
|
-
|
|
15
13
|
//#endregion
|
|
16
|
-
export { readGuide };
|
|
14
|
+
export { readGuide };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=readGuide.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readGuide.js","names":[],"sources":["../../src/options/readGuide.ts"],"sourcesContent":["import { TakeInput } from \"bingo\";\nimport { inputFromFile } from \"input-from-file\";\n\nexport async function readGuide(take: TakeInput) {\n\tconst development = await take(inputFromFile, {\n\t\tfilePath: \".github/DEVELOPMENT.md\",\n\t});\n\n\tif (development instanceof Error) {\n\t\treturn undefined;\n\t}\n\n\tconst tag = /> .*guided walkthrough, see \\[((?!\\[).+)\\]\\((.+)\\)/i.exec(\n\t\tdevelopment,\n\t);\n\n\tif (!tag) {\n\t\treturn undefined;\n\t}\n\n\treturn {\n\t\thref: tag[2],\n\t\ttitle: tag[1],\n\t};\n}\n"],"mappings":";;AAGA,eAAsB,UAAU,MAAiB;CAChD,MAAM,cAAc,MAAM,KAAK,eAAe,EAC7C,UAAU,yBACX,CAAC;CAED,IAAI,uBAAuB,OAC1B;CAGD,MAAM,MAAM,sDAAsD,KACjE,WACD;CAEA,IAAI,CAAC,KACJ;CAGD,OAAO;EACN,MAAM,IAAI;EACV,OAAO,IAAI;CACZ;AACD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PartialPackageData } from "../types.js";
|
|
2
|
+
//#region src/options/readKeywords.d.ts
|
|
3
|
+
declare function readKeywords(getPackageData: () => Promise<PartialPackageData>): Promise<string[] | undefined>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { readKeywords };
|
|
6
|
+
//# sourceMappingURL=readKeywords.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readKeywords.d.ts","names":[],"sources":["../../src/options/readKeywords.ts"],"mappings":";;iBAEsB,aACrB,sBAAsB,QAAQ,sBAAmB"}
|
|
@@ -3,6 +3,7 @@ async function readKeywords(getPackageData) {
|
|
|
3
3
|
const { keywords } = await getPackageData();
|
|
4
4
|
return keywords && Array.from(new Set((await getPackageData()).keywords)).sort();
|
|
5
5
|
}
|
|
6
|
-
|
|
7
6
|
//#endregion
|
|
8
|
-
export { readKeywords };
|
|
7
|
+
export { readKeywords };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=readKeywords.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readKeywords.js","names":[],"sources":["../../src/options/readKeywords.ts"],"sourcesContent":["import { PartialPackageData } from \"../types.js\";\n\nexport async function readKeywords(\n\tgetPackageData: () => Promise<PartialPackageData>,\n) {\n\tconst { keywords } = await getPackageData();\n\n\treturn (\n\t\tkeywords && Array.from(new Set((await getPackageData()).keywords)).sort()\n\t);\n}\n"],"mappings":";AAEA,eAAsB,aACrB,gBACC;CACD,MAAM,EAAE,aAAa,MAAM,eAAe;CAE1C,OACC,YAAY,MAAM,KAAK,IAAI,KAAK,MAAM,eAAe,EAAA,CAAG,QAAQ,CAAC,CAAC,CAAC,KAAK;AAE1E"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/options/readLogo.d.ts
|
|
2
|
+
declare function readLogo(getReadme: () => Promise<string>): Promise<{
|
|
3
|
+
height?: number;
|
|
4
|
+
width?: number;
|
|
5
|
+
alt: string;
|
|
6
|
+
src: string;
|
|
7
|
+
} | undefined>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { readLogo };
|
|
10
|
+
//# sourceMappingURL=readLogo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readLogo.d.ts","names":[],"sources":["../../src/options/readLogo.ts"],"mappings":";iBAIsB,SAAS,iBAAiB,kBAAe"}
|
package/lib/options/readLogo.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { readLogoSizing } from "./readLogoSizing.js";
|
|
2
2
|
import * as fs from "node:fs/promises";
|
|
3
|
-
|
|
4
3
|
//#region src/options/readLogo.ts
|
|
5
4
|
async function readLogo(getReadme) {
|
|
6
5
|
const tag = /\n<img.+src=.+>/.exec(await getReadme())?.[0];
|
|
@@ -9,12 +8,14 @@ async function readLogo(getReadme) {
|
|
|
9
8
|
if (/All Contributors: \d+/.test(alt)) return;
|
|
10
9
|
const src = /src\s*=(.+)['"/]>/.exec(tag)?.[1]?.split(/\s*\w+=/)[0].replaceAll(/^['"]|['"]$/g, "");
|
|
11
10
|
if (!src || src.includes("//img.shields.io")) return;
|
|
11
|
+
const bufferData = await fs.readFile(src);
|
|
12
12
|
return {
|
|
13
13
|
alt,
|
|
14
14
|
src,
|
|
15
|
-
...readLogoSizing(
|
|
15
|
+
...readLogoSizing(bufferData)
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
|
|
19
18
|
//#endregion
|
|
20
|
-
export { readLogo };
|
|
19
|
+
export { readLogo };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=readLogo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readLogo.js","names":[],"sources":["../../src/options/readLogo.ts"],"sourcesContent":["import * as fs from \"node:fs/promises\";\n\nimport { readLogoSizing } from \"./readLogoSizing.js\";\n\nexport async function readLogo(getReadme: () => Promise<string>) {\n\tconst tag = /\\n<img.+src=.+>/.exec(await getReadme())?.[0];\n\n\tif (!tag) {\n\t\treturn undefined;\n\t}\n\n\tconst alt =\n\t\t/alt=['\"](.+)['\"]\\s*src=/.exec(tag)?.[1].split(/['\"]?\\s*\\w+=/)[0] ??\n\t\t\"Project logo\";\n\n\tif (/All Contributors: \\d+/.test(alt)) {\n\t\treturn undefined;\n\t}\n\n\tconst src = /src\\s*=(.+)['\"/]>/\n\t\t.exec(tag)?.[1]\n\t\t?.split(/\\s*\\w+=/)[0]\n\t\t.replaceAll(/^['\"]|['\"]$/g, \"\");\n\n\tif (!src || src.includes(\"//img.shields.io\")) {\n\t\treturn undefined;\n\t}\n\n\t// TODO: imageSize does not go through take(input*), making it harder to test.\n\t// It takes either a string (fs access) or buffer data (not in bingo-fs).\n\t// https://github.com/JoshuaKGoldberg/create-typescript-app/issues/1993\n\tconst bufferData = await fs.readFile(src);\n\n\treturn {\n\t\talt,\n\t\tsrc,\n\t\t...readLogoSizing(bufferData),\n\t};\n}\n"],"mappings":";;;AAIA,eAAsB,SAAS,WAAkC;CAChE,MAAM,MAAM,kBAAkB,KAAK,MAAM,UAAU,CAAC,CAAC,GAAG;CAExD,IAAI,CAAC,KACJ;CAGD,MAAM,MACL,0BAA0B,KAAK,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,cAAc,CAAC,CAAC,MAC/D;CAED,IAAI,wBAAwB,KAAK,GAAG,GACnC;CAGD,MAAM,MAAM,oBACV,KAAK,GAAG,CAAC,GAAG,EAAE,EACb,MAAM,SAAS,CAAC,CAAC,EAAE,CACpB,WAAW,gBAAgB,EAAE;CAE/B,IAAI,CAAC,OAAO,IAAI,SAAS,kBAAkB,GAC1C;CAMD,MAAM,aAAa,MAAM,GAAG,SAAS,GAAG;CAExC,OAAO;EACN;EACA;EACA,GAAG,eAAe,UAAU;CAC7B;AACD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/options/readLogoSizing.d.ts
|
|
2
|
+
interface OptionsLogoSizing {
|
|
3
|
+
height?: number;
|
|
4
|
+
width?: number;
|
|
5
|
+
}
|
|
6
|
+
declare function readLogoSizing(src: Uint8Array): OptionsLogoSizing | undefined;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { OptionsLogoSizing, readLogoSizing };
|
|
9
|
+
//# sourceMappingURL=readLogoSizing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readLogoSizing.d.ts","names":[],"sources":["../../src/options/readLogoSizing.ts"],"mappings":";UAIiB;EAChB;EACA;;iBAGe,eAAe,KAAK,aAAa"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { imageSize } from "image-size";
|
|
2
|
-
|
|
3
2
|
//#region src/options/readLogoSizing.ts
|
|
4
3
|
const maximum = 128;
|
|
5
4
|
function readLogoSizing(src) {
|
|
@@ -26,6 +25,7 @@ function imageSizeSafe(src) {
|
|
|
26
25
|
return;
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
|
-
|
|
30
28
|
//#endregion
|
|
31
|
-
export { readLogoSizing };
|
|
29
|
+
export { readLogoSizing };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=readLogoSizing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readLogoSizing.js","names":[],"sources":["../../src/options/readLogoSizing.ts"],"sourcesContent":["import { imageSize } from \"image-size\";\n\nconst maximum = 128;\n\nexport interface OptionsLogoSizing {\n\theight?: number;\n\twidth?: number;\n}\n\nexport function readLogoSizing(src: Uint8Array): OptionsLogoSizing | undefined {\n\tconst size = imageSizeSafe(src);\n\tif (!size) {\n\t\treturn undefined;\n\t}\n\n\tif (!size.height) {\n\t\treturn size.width ? { width: Math.min(size.width, maximum) } : undefined;\n\t}\n\n\tif (!size.width) {\n\t\treturn { height: Math.min(size.height, maximum) };\n\t}\n\n\tif (size.height <= maximum && size.width <= maximum) {\n\t\treturn { height: size.height, width: size.width };\n\t}\n\n\treturn size.height > size.width\n\t\t? { height: maximum, width: (size.width / size.height) * maximum }\n\t\t: { height: (size.height / size.width) * maximum, width: maximum };\n}\n\nfunction imageSizeSafe(src: Uint8Array) {\n\ttry {\n\t\t// TODO: imageSize does not go through take(input*), making it harder to test.\n\t\t// It takes either a string (fs access) or buffer data (not in bingo-fs).\n\t\t// https://github.com/JoshuaKGoldberg/create-typescript-app/issues/1993\n\t\treturn imageSize(src);\n\t} catch {\n\t\treturn undefined;\n\t}\n}\n"],"mappings":";;AAEA,MAAM,UAAU;AAOhB,SAAgB,eAAe,KAAgD;CAC9E,MAAM,OAAO,cAAc,GAAG;CAC9B,IAAI,CAAC,MACJ;CAGD,IAAI,CAAC,KAAK,QACT,OAAO,KAAK,QAAQ,EAAE,OAAO,KAAK,IAAI,KAAK,OAAO,OAAO,EAAE,IAAI,KAAA;CAGhE,IAAI,CAAC,KAAK,OACT,OAAO,EAAE,QAAQ,KAAK,IAAI,KAAK,QAAQ,OAAO,EAAE;CAGjD,IAAI,KAAK,UAAU,WAAW,KAAK,SAAS,SAC3C,OAAO;EAAE,QAAQ,KAAK;EAAQ,OAAO,KAAK;CAAM;CAGjD,OAAO,KAAK,SAAS,KAAK,QACvB;EAAE,QAAQ;EAAS,OAAQ,KAAK,QAAQ,KAAK,SAAU;CAAQ,IAC/D;EAAE,QAAS,KAAK,SAAS,KAAK,QAAS;EAAS,OAAO;CAAQ;AACnE;AAEA,SAAS,cAAc,KAAiB;CACvC,IAAI;EAIH,OAAO,UAAU,GAAG;CACrB,QAAQ;EACP;CACD;AACD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PartialPackageData } from "../types.js";
|
|
2
|
+
//#region src/options/readNode.d.ts
|
|
3
|
+
declare function readNode(getNvmrc: () => Promise<Error | string>, getPackageDataFull: () => Promise<PartialPackageData>): Promise<{
|
|
4
|
+
minimum: string;
|
|
5
|
+
pinned: string;
|
|
6
|
+
}>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { readNode };
|
|
9
|
+
//# sourceMappingURL=readNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readNode.d.ts","names":[],"sources":["../../src/options/readNode.ts"],"mappings":";;iBAIsB,SACrB,gBAAgB,QAAQ,iBACxB,0BAA0B,QAAQ,sBAAmB"}
|
package/lib/options/readNode.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { swallowError } from "../utils/swallowError.js";
|
|
2
2
|
import { defaults } from "../constants.js";
|
|
3
|
-
|
|
4
3
|
//#region src/options/readNode.ts
|
|
5
4
|
async function readNode(getNvmrc, getPackageDataFull) {
|
|
6
5
|
const { engines } = await getPackageDataFull();
|
|
@@ -9,6 +8,7 @@ async function readNode(getNvmrc, getPackageDataFull) {
|
|
|
9
8
|
pinned: swallowError(await getNvmrc())?.trim() || defaults.node.pinned
|
|
10
9
|
};
|
|
11
10
|
}
|
|
12
|
-
|
|
13
11
|
//#endregion
|
|
14
|
-
export { readNode };
|
|
12
|
+
export { readNode };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=readNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readNode.js","names":[],"sources":["../../src/options/readNode.ts"],"sourcesContent":["import { defaults } from \"../constants.js\";\nimport { PartialPackageData } from \"../types.js\";\nimport { swallowError } from \"../utils/swallowError.js\";\n\nexport async function readNode(\n\tgetNvmrc: () => Promise<Error | string>,\n\tgetPackageDataFull: () => Promise<PartialPackageData>,\n) {\n\tconst { engines } = await getPackageDataFull();\n\n\treturn {\n\t\tminimum:\n\t\t\t(engines?.node && /[\\d+.]+/.exec(engines.node))?.[0] ??\n\t\t\tdefaults.node.minimum,\n\t\tpinned: swallowError(await getNvmrc())?.trim() || defaults.node.pinned,\n\t};\n}\n"],"mappings":";;;AAIA,eAAsB,SACrB,UACA,oBACC;CACD,MAAM,EAAE,YAAY,MAAM,mBAAmB;CAE7C,OAAO;EACN,UACE,SAAS,QAAQ,UAAU,KAAK,QAAQ,IAAI,EAAA,GAAK,MAClD,SAAS,KAAK;EACf,QAAQ,aAAa,MAAM,SAAS,CAAC,CAAC,EAAE,KAAK,KAAK,SAAS,KAAK;CACjE;AACD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ExecaError, Result } from "execa";
|
|
2
|
+
//#region src/options/readNpmDefaults.d.ts
|
|
3
|
+
declare function readNpmDefaults(getNpmWhoami: () => Promise<ExecaError | Result | undefined>): Promise<import("npm-user").UserInfo | undefined>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { readNpmDefaults };
|
|
6
|
+
//# sourceMappingURL=readNpmDefaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readNpmDefaults.d.ts","names":[],"sources":["../../src/options/readNpmDefaults.ts"],"mappings":";;iBAOsB,gBACrB,oBAAoB,QAAQ,aAAa,sBAAmB,2BAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { swallowErrorAsync } from "../utils/swallowErrorAsync.js";
|
|
2
2
|
import npmUser from "npm-user";
|
|
3
|
-
|
|
4
3
|
//#region src/options/readNpmDefaults.ts
|
|
5
4
|
async function readNpmDefaults(getNpmWhoami) {
|
|
6
5
|
const whoami = await getNpmWhoami();
|
|
7
6
|
return typeof whoami?.stdout === "string" ? await swallowErrorAsync(npmUser(whoami.stdout)) : void 0;
|
|
8
7
|
}
|
|
9
|
-
|
|
10
8
|
//#endregion
|
|
11
|
-
export { readNpmDefaults };
|
|
9
|
+
export { readNpmDefaults };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=readNpmDefaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readNpmDefaults.js","names":[],"sources":["../../src/options/readNpmDefaults.ts"],"sourcesContent":["import { ExecaError, Result } from \"execa\";\nimport npmUser from \"npm-user\";\n\nimport { swallowErrorAsync } from \"../utils/swallowErrorAsync.js\";\n\n// TODO: npmUser does not go through take(input*), making it harder to test.\n// https://github.com/JoshuaKGoldberg/create-typescript-app/issues/1990\nexport async function readNpmDefaults(\n\tgetNpmWhoami: () => Promise<ExecaError | Result | undefined>,\n) {\n\tconst whoami = await getNpmWhoami();\n\treturn typeof whoami?.stdout === \"string\"\n\t\t? await swallowErrorAsync(npmUser(whoami.stdout))\n\t\t: undefined;\n}\n"],"mappings":";;;AAOA,eAAsB,gBACrB,cACC;CACD,MAAM,SAAS,MAAM,aAAa;CAClC,OAAO,OAAO,QAAQ,WAAW,WAC9B,MAAM,kBAAkB,QAAQ,OAAO,MAAM,CAAC,IAC9C,KAAA;AACJ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PackageAuthor } from "./readPackageAuthor.js";
|
|
2
|
+
import { TakeInput } from "bingo";
|
|
3
|
+
import { GitUrl } from "git-url-parse";
|
|
4
|
+
//#region src/options/readOwner.d.ts
|
|
5
|
+
declare function readOwner(take: TakeInput, getGitDefaults: () => Promise<GitUrl | undefined>, getPackageAuthor: () => Promise<PackageAuthor>): Promise<string | undefined>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { readOwner };
|
|
8
|
+
//# sourceMappingURL=readOwner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readOwner.d.ts","names":[],"sources":["../../src/options/readOwner.ts"],"mappings":";;;;iBAMsB,UACrB,MAAM,WACN,sBAAsB,QAAQ,qBAC9B,wBAAwB,QAAQ,iBAAc"}
|
package/lib/options/readOwner.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { inputFromScript } from "input-from-script";
|
|
2
|
-
|
|
3
2
|
//#region src/options/readOwner.ts
|
|
4
3
|
async function readOwner(take, getGitDefaults, getPackageAuthor) {
|
|
5
4
|
return (await getGitDefaults())?.organization ?? (await take(inputFromScript, { command: "gh config get user -h github.com" })).stdout?.toString() ?? (await getPackageAuthor()).name;
|
|
6
5
|
}
|
|
7
|
-
|
|
8
6
|
//#endregion
|
|
9
|
-
export { readOwner };
|
|
7
|
+
export { readOwner };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=readOwner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readOwner.js","names":[],"sources":["../../src/options/readOwner.ts"],"sourcesContent":["import { TakeInput } from \"bingo\";\nimport { GitUrl } from \"git-url-parse\";\nimport { inputFromScript } from \"input-from-script\";\n\nimport { PackageAuthor } from \"./readPackageAuthor.js\";\n\nexport async function readOwner(\n\ttake: TakeInput,\n\tgetGitDefaults: () => Promise<GitUrl | undefined>,\n\tgetPackageAuthor: () => Promise<PackageAuthor>,\n) {\n\treturn (\n\t\t(await getGitDefaults())?.organization ??\n\t\t(\n\t\t\tawait take(inputFromScript, {\n\t\t\t\tcommand: \"gh config get user -h github.com\",\n\t\t\t})\n\t\t).stdout?.toString() ??\n\t\t(await getPackageAuthor()).name\n\t);\n}\n"],"mappings":";;AAMA,eAAsB,UACrB,MACA,gBACA,kBACC;CACD,QACE,MAAM,eAAe,EAAA,EAAI,iBAEzB,MAAM,KAAK,iBAAiB,EAC3B,SAAS,mCACV,CAAC,EAAA,CACA,QAAQ,SAAS,MAClB,MAAM,iBAAiB,EAAA,CAAG;AAE7B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PartialPackageData } from "../types.js";
|
|
2
|
+
//#region src/options/readPackageAuthor.d.ts
|
|
3
|
+
interface PackageAuthor {
|
|
4
|
+
email?: string | undefined;
|
|
5
|
+
name?: string | undefined;
|
|
6
|
+
}
|
|
7
|
+
declare function readPackageAuthor(getPackageDataFull: () => Promise<PartialPackageData>): Promise<PackageAuthor>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { PackageAuthor, readPackageAuthor };
|
|
10
|
+
//# sourceMappingURL=readPackageAuthor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readPackageAuthor.d.ts","names":[],"sources":["../../src/options/readPackageAuthor.ts"],"mappings":";;UAIiB;EAChB;EACA;;iBAGqB,kBACrB,0BAA0B,QAAQ,sBAChC,QAAQ"}
|