create-typescript-app 2.49.0 → 2.51.0
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/lib/_virtual/rolldown_runtime.js +20 -0
- package/lib/base.d.ts +2 -3
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js +6 -12
- package/lib/base.js.map +1 -1
- package/lib/blocks/actions/resolveUses.d.ts +0 -2
- package/lib/blocks/actions/resolveUses.js.map +1 -1
- package/lib/blocks/actions/steps.d.ts +0 -2
- package/lib/blocks/actions/steps.d.ts.map +1 -1
- package/lib/blocks/actions/steps.js +2 -2
- package/lib/blocks/actions/steps.js.map +1 -1
- package/lib/blocks/bin/getPrimaryBin.d.ts +0 -2
- package/lib/blocks/bin/getPrimaryBin.d.ts.map +1 -1
- package/lib/blocks/bin/getPrimaryBin.js.map +1 -1
- package/lib/blocks/blockAllContributors.d.ts +2 -3
- package/lib/blocks/blockAllContributors.d.ts.map +1 -1
- package/lib/blocks/blockAllContributors.js.map +1 -1
- package/lib/blocks/blockAreTheTypesWrong.d.ts +2 -3
- package/lib/blocks/blockAreTheTypesWrong.d.ts.map +1 -1
- package/lib/blocks/blockAreTheTypesWrong.js.map +1 -1
- package/lib/blocks/blockCSpell.d.ts +2 -3
- package/lib/blocks/blockCSpell.d.ts.map +1 -1
- package/lib/blocks/blockCSpell.js +2 -2
- package/lib/blocks/blockCSpell.js.map +1 -1
- package/lib/blocks/blockCTATransitions.d.ts +2 -3
- package/lib/blocks/blockCTATransitions.d.ts.map +1 -1
- package/lib/blocks/blockCTATransitions.js.map +1 -1
- package/lib/blocks/blockCodecov.d.ts +0 -1
- package/lib/blocks/blockCodecov.d.ts.map +1 -1
- package/lib/blocks/blockCodecov.js +2 -2
- package/lib/blocks/blockCodecov.js.map +1 -1
- package/lib/blocks/blockContributingDocs.d.ts +0 -1
- package/lib/blocks/blockContributingDocs.d.ts.map +1 -1
- package/lib/blocks/blockContributingDocs.js.map +1 -1
- package/lib/blocks/blockContributorCovenant.d.ts +0 -1
- package/lib/blocks/blockContributorCovenant.d.ts.map +1 -1
- package/lib/blocks/blockContributorCovenant.js.map +1 -1
- package/lib/blocks/blockDevelopmentDocs.d.ts +2 -3
- package/lib/blocks/blockDevelopmentDocs.d.ts.map +1 -1
- package/lib/blocks/blockDevelopmentDocs.js.map +1 -1
- package/lib/blocks/blockESLint.d.ts +2 -3
- package/lib/blocks/blockESLint.d.ts.map +1 -1
- package/lib/blocks/blockESLint.js +2 -1
- package/lib/blocks/blockESLint.js.map +1 -1
- package/lib/blocks/blockESLintComments.d.ts +2 -3
- package/lib/blocks/blockESLintComments.d.ts.map +1 -1
- package/lib/blocks/blockESLintComments.js.map +1 -1
- package/lib/blocks/blockESLintJSDoc.d.ts +2 -3
- package/lib/blocks/blockESLintJSDoc.d.ts.map +1 -1
- package/lib/blocks/blockESLintJSDoc.js.map +1 -1
- package/lib/blocks/blockESLintJSONC.d.ts +2 -3
- package/lib/blocks/blockESLintJSONC.d.ts.map +1 -1
- package/lib/blocks/blockESLintJSONC.js.map +1 -1
- package/lib/blocks/blockESLintMarkdown.d.ts +2 -3
- package/lib/blocks/blockESLintMarkdown.d.ts.map +1 -1
- package/lib/blocks/blockESLintMarkdown.js.map +1 -1
- package/lib/blocks/blockESLintMoreStyling.d.ts +2 -3
- package/lib/blocks/blockESLintMoreStyling.d.ts.map +1 -1
- package/lib/blocks/blockESLintMoreStyling.js.map +1 -1
- package/lib/blocks/blockESLintNode.d.ts +2 -3
- package/lib/blocks/blockESLintNode.d.ts.map +1 -1
- package/lib/blocks/blockESLintNode.js.map +1 -1
- package/lib/blocks/blockESLintPackageJson.d.ts +2 -3
- package/lib/blocks/blockESLintPackageJson.d.ts.map +1 -1
- package/lib/blocks/blockESLintPackageJson.js.map +1 -1
- package/lib/blocks/blockESLintPerfectionist.d.ts +2 -3
- package/lib/blocks/blockESLintPerfectionist.d.ts.map +1 -1
- package/lib/blocks/blockESLintPerfectionist.js.map +1 -1
- package/lib/blocks/blockESLintPlugin.d.ts +2 -3
- package/lib/blocks/blockESLintPlugin.d.ts.map +1 -1
- package/lib/blocks/blockESLintPlugin.js.map +1 -1
- package/lib/blocks/blockESLintRegexp.d.ts +2 -3
- package/lib/blocks/blockESLintRegexp.d.ts.map +1 -1
- package/lib/blocks/blockESLintRegexp.js.map +1 -1
- package/lib/blocks/blockESLintYML.d.ts +2 -3
- package/lib/blocks/blockESLintYML.d.ts.map +1 -1
- package/lib/blocks/blockESLintYML.js.map +1 -1
- package/lib/blocks/blockExampleFiles.d.ts +2 -3
- package/lib/blocks/blockExampleFiles.d.ts.map +1 -1
- package/lib/blocks/blockExampleFiles.js.map +1 -1
- package/lib/blocks/blockFunding.d.ts +2 -3
- package/lib/blocks/blockFunding.d.ts.map +1 -1
- package/lib/blocks/blockFunding.js.map +1 -1
- package/lib/blocks/blockGitHubActionsCI.d.ts +2 -3
- package/lib/blocks/blockGitHubActionsCI.d.ts.map +1 -1
- package/lib/blocks/blockGitHubActionsCI.js +3 -3
- package/lib/blocks/blockGitHubActionsCI.js.map +1 -1
- package/lib/blocks/blockGitHubApps.d.ts +2 -3
- package/lib/blocks/blockGitHubApps.d.ts.map +1 -1
- package/lib/blocks/blockGitHubApps.js.map +1 -1
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +2 -3
- package/lib/blocks/blockGitHubIssueTemplates.d.ts.map +1 -1
- package/lib/blocks/blockGitHubIssueTemplates.js.map +1 -1
- package/lib/blocks/blockGitHubPRTemplate.d.ts +2 -3
- package/lib/blocks/blockGitHubPRTemplate.d.ts.map +1 -1
- package/lib/blocks/blockGitHubPRTemplate.js.map +1 -1
- package/lib/blocks/blockGitignore.d.ts +2 -3
- package/lib/blocks/blockGitignore.d.ts.map +1 -1
- package/lib/blocks/blockGitignore.js.map +1 -1
- package/lib/blocks/blockKnip.d.ts +2 -3
- package/lib/blocks/blockKnip.d.ts.map +1 -1
- package/lib/blocks/blockKnip.js +1 -1
- package/lib/blocks/blockKnip.js.map +1 -1
- package/lib/blocks/blockMITLicense.d.ts +2 -3
- package/lib/blocks/blockMITLicense.d.ts.map +1 -1
- package/lib/blocks/blockMITLicense.js +1 -4
- package/lib/blocks/blockMITLicense.js.map +1 -1
- package/lib/blocks/blockMain.d.ts +2 -3
- package/lib/blocks/blockMain.d.ts.map +1 -1
- package/lib/blocks/blockMain.js.map +1 -1
- package/lib/blocks/blockMarkdownlint.d.ts +2 -3
- package/lib/blocks/blockMarkdownlint.d.ts.map +1 -1
- package/lib/blocks/blockMarkdownlint.js +3 -2
- package/lib/blocks/blockMarkdownlint.js.map +1 -1
- package/lib/blocks/blockNcc.d.ts +2 -3
- package/lib/blocks/blockNcc.d.ts.map +1 -1
- package/lib/blocks/blockNcc.js.map +1 -1
- package/lib/blocks/blockNvmrc.d.ts +2 -3
- package/lib/blocks/blockNvmrc.d.ts.map +1 -1
- package/lib/blocks/blockNvmrc.js.map +1 -1
- package/lib/blocks/blockOctoGuide.d.ts +2 -3
- package/lib/blocks/blockOctoGuide.d.ts.map +1 -1
- package/lib/blocks/blockOctoGuide.js +2 -2
- package/lib/blocks/blockOctoGuide.js.map +1 -1
- package/lib/blocks/blockOctoGuideStrict.d.ts +2 -3
- package/lib/blocks/blockOctoGuideStrict.d.ts.map +1 -1
- package/lib/blocks/blockOctoGuideStrict.js.map +1 -1
- package/lib/blocks/blockPackageJson.d.ts +2 -3
- package/lib/blocks/blockPackageJson.d.ts.map +1 -1
- package/lib/blocks/blockPackageJson.js +2 -8
- package/lib/blocks/blockPackageJson.js.map +1 -1
- package/lib/blocks/blockPnpmDedupe.d.ts +2 -3
- package/lib/blocks/blockPnpmDedupe.d.ts.map +1 -1
- package/lib/blocks/blockPnpmDedupe.js.map +1 -1
- package/lib/blocks/blockPrettier.d.ts +2 -3
- package/lib/blocks/blockPrettier.d.ts.map +1 -1
- package/lib/blocks/blockPrettier.js.map +1 -1
- package/lib/blocks/blockPrettierPluginCurly.d.ts +2 -3
- package/lib/blocks/blockPrettierPluginCurly.d.ts.map +1 -1
- package/lib/blocks/blockPrettierPluginCurly.js.map +1 -1
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +2 -3
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts.map +1 -1
- package/lib/blocks/blockPrettierPluginPackageJson.js.map +1 -1
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts +2 -3
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts.map +1 -1
- package/lib/blocks/blockPrettierPluginSentencesPerLine.js.map +1 -1
- package/lib/blocks/blockPrettierPluginSh.d.ts +2 -3
- package/lib/blocks/blockPrettierPluginSh.d.ts.map +1 -1
- package/lib/blocks/blockPrettierPluginSh.js.map +1 -1
- package/lib/blocks/blockREADME.d.ts +2 -3
- package/lib/blocks/blockREADME.d.ts.map +1 -1
- package/lib/blocks/blockREADME.js +1 -2
- package/lib/blocks/blockREADME.js.map +1 -1
- package/lib/blocks/blockReleaseIt.d.ts +2 -3
- package/lib/blocks/blockReleaseIt.d.ts.map +1 -1
- package/lib/blocks/blockReleaseIt.js.map +1 -1
- package/lib/blocks/blockRemoveDependencies.d.ts +2 -3
- package/lib/blocks/blockRemoveDependencies.d.ts.map +1 -1
- package/lib/blocks/blockRemoveDependencies.js.map +1 -1
- package/lib/blocks/blockRemoveFiles.d.ts +2 -3
- package/lib/blocks/blockRemoveFiles.d.ts.map +1 -1
- package/lib/blocks/blockRemoveFiles.js.map +1 -1
- package/lib/blocks/blockRemoveWorkflows.d.ts +2 -3
- package/lib/blocks/blockRemoveWorkflows.d.ts.map +1 -1
- package/lib/blocks/blockRemoveWorkflows.js.map +1 -1
- package/lib/blocks/blockRenovate.d.ts +2 -3
- package/lib/blocks/blockRenovate.d.ts.map +1 -1
- package/lib/blocks/blockRenovate.js.map +1 -1
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +2 -3
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts.map +1 -1
- package/lib/blocks/blockRepositoryBranchRuleset.js.map +1 -1
- package/lib/blocks/blockRepositoryLabels.d.ts +2 -3
- package/lib/blocks/blockRepositoryLabels.d.ts.map +1 -1
- package/lib/blocks/blockRepositoryLabels.js.map +1 -1
- package/lib/blocks/blockRepositorySecrets.d.ts +2 -3
- package/lib/blocks/blockRepositorySecrets.d.ts.map +1 -1
- package/lib/blocks/blockRepositorySecrets.js.map +1 -1
- package/lib/blocks/blockRepositorySettings.d.ts +2 -3
- package/lib/blocks/blockRepositorySettings.d.ts.map +1 -1
- package/lib/blocks/blockRepositorySettings.js +1 -2
- package/lib/blocks/blockRepositorySettings.js.map +1 -1
- package/lib/blocks/blockSecurityDocs.d.ts +2 -3
- package/lib/blocks/blockSecurityDocs.d.ts.map +1 -1
- package/lib/blocks/blockSecurityDocs.js.map +1 -1
- package/lib/blocks/blockTSDown.d.ts +2 -3
- package/lib/blocks/blockTSDown.d.ts.map +1 -1
- package/lib/blocks/blockTSDown.js +3 -2
- package/lib/blocks/blockTSDown.js.map +1 -1
- package/lib/blocks/blockTemplatedWith.d.ts +2 -3
- package/lib/blocks/blockTemplatedWith.d.ts.map +1 -1
- package/lib/blocks/blockTemplatedWith.js.map +1 -1
- package/lib/blocks/blockTypeScript.d.ts +2 -3
- package/lib/blocks/blockTypeScript.d.ts.map +1 -1
- package/lib/blocks/blockTypeScript.js +1 -1
- package/lib/blocks/blockTypeScript.js.map +1 -1
- package/lib/blocks/blockVSCode.d.ts +2 -3
- package/lib/blocks/blockVSCode.d.ts.map +1 -1
- package/lib/blocks/blockVSCode.js.map +1 -1
- package/lib/blocks/blockVitest.d.ts +2 -3
- package/lib/blocks/blockVitest.d.ts.map +1 -1
- package/lib/blocks/blockVitest.js +2 -2
- package/lib/blocks/blockVitest.js.map +1 -1
- package/lib/blocks/blockWebExt.d.ts +2 -3
- package/lib/blocks/blockWebExt.d.ts.map +1 -1
- package/lib/blocks/blockWebExt.js.map +1 -1
- package/lib/blocks/eslint/blockESLintIntake.d.ts +0 -1
- package/lib/blocks/eslint/blockESLintIntake.js +11 -13
- package/lib/blocks/eslint/blockESLintIntake.js.map +1 -1
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts +0 -1
- package/lib/blocks/eslint/blockESLintPluginIntake.js +3 -3
- package/lib/blocks/eslint/blockESLintPluginIntake.js.map +1 -1
- package/lib/blocks/eslint/schemas.d.ts +0 -2
- package/lib/blocks/eslint/schemas.d.ts.map +1 -1
- package/lib/blocks/eslint/schemas.js.map +1 -1
- package/lib/blocks/files/createJobName.d.ts +0 -2
- package/lib/blocks/files/createJobName.d.ts.map +1 -1
- package/lib/blocks/files/createJobName.js.map +1 -1
- package/lib/blocks/files/createMultiWorkflowFile.d.ts +0 -2
- package/lib/blocks/files/createMultiWorkflowFile.d.ts.map +1 -1
- package/lib/blocks/files/createMultiWorkflowFile.js.map +1 -1
- package/lib/blocks/files/createSoloWorkflowFile.d.ts.map +1 -1
- package/lib/blocks/files/createSoloWorkflowFile.js +1 -1
- package/lib/blocks/files/createSoloWorkflowFile.js.map +1 -1
- package/lib/blocks/files/formatIgnoreFile.d.ts +0 -2
- package/lib/blocks/files/formatIgnoreFile.d.ts.map +1 -1
- package/lib/blocks/files/formatIgnoreFile.js.map +1 -1
- package/lib/blocks/files/formatWorkflowYaml.d.ts +0 -2
- package/lib/blocks/files/formatWorkflowYaml.d.ts.map +1 -1
- package/lib/blocks/files/formatWorkflowYaml.js.map +1 -1
- package/lib/blocks/files/formatYaml.d.ts +0 -2
- package/lib/blocks/files/formatYaml.d.ts.map +1 -1
- package/lib/blocks/files/formatYaml.js.map +1 -1
- package/lib/blocks/files/removeUsesQuotes.d.ts +0 -2
- package/lib/blocks/files/removeUsesQuotes.d.ts.map +1 -1
- package/lib/blocks/files/removeUsesQuotes.js.map +1 -1
- package/lib/blocks/getInstallationSuggestions.d.ts +0 -2
- package/lib/blocks/getInstallationSuggestions.d.ts.map +1 -1
- package/lib/blocks/getInstallationSuggestions.js.map +1 -1
- package/lib/blocks/index.d.ts +50 -50
- package/lib/blocks/index.d.ts.map +1 -1
- package/lib/blocks/index.js.map +1 -1
- package/lib/blocks/intake/intakeFile.d.ts +0 -2
- package/lib/blocks/intake/intakeFile.js +3 -4
- package/lib/blocks/intake/intakeFile.js.map +1 -1
- package/lib/blocks/intake/intakeFileAsJson.d.ts +0 -2
- package/lib/blocks/intake/intakeFileAsJson.js +1 -1
- package/lib/blocks/intake/intakeFileAsJson.js.map +1 -1
- package/lib/blocks/intake/intakeFileAsYaml.d.ts +0 -2
- package/lib/blocks/intake/intakeFileAsYaml.js +1 -1
- package/lib/blocks/intake/intakeFileAsYaml.js.map +1 -1
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts +0 -2
- package/lib/blocks/intake/intakeFileDefineConfig.js +4 -4
- package/lib/blocks/intake/intakeFileDefineConfig.js.map +1 -1
- package/lib/blocks/options.fakes.d.ts +0 -1
- package/lib/blocks/options.fakes.js.map +1 -1
- package/lib/blocks/outcomeLabels.d.ts +0 -1
- package/lib/blocks/outcomeLabels.js.map +1 -1
- package/lib/blocks/phases.d.ts +0 -1
- package/lib/blocks/phases.js.map +1 -1
- package/lib/constants.d.ts +0 -1
- package/lib/constants.js.map +1 -1
- package/lib/data/contributions.d.ts +0 -2
- package/lib/data/contributions.d.ts.map +1 -1
- package/lib/data/contributions.js.map +1 -1
- package/lib/data/packageData.d.ts +2 -4
- package/lib/data/packageData.d.ts.map +1 -1
- package/lib/data/packageData.js +1 -2
- package/lib/data/packageData.js.map +1 -1
- package/lib/index.d.ts +72 -72
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/inputs/inputFromDirectory.d.ts +2 -4
- package/lib/inputs/inputFromDirectory.d.ts.map +1 -1
- package/lib/inputs/inputFromDirectory.js.map +1 -1
- package/lib/inputs/inputFromOctokit.d.ts +2 -4
- package/lib/inputs/inputFromOctokit.d.ts.map +1 -1
- package/lib/inputs/inputFromOctokit.js +4 -4
- package/lib/inputs/inputFromOctokit.js.map +1 -1
- package/lib/options/readAccess.d.ts +0 -2
- package/lib/options/readAccess.js.map +1 -1
- package/lib/options/readAllContributors.d.ts +0 -2
- package/lib/options/readAllContributors.js.map +1 -1
- package/lib/options/readAuthor.d.ts +0 -2
- package/lib/options/readAuthor.js.map +1 -1
- package/lib/options/readBin.d.ts +0 -2
- package/lib/options/readBin.js.map +1 -1
- package/lib/options/readDescription.d.ts +0 -2
- package/lib/options/readDescription.js +3 -4
- package/lib/options/readDescription.js.map +1 -1
- package/lib/options/readDescriptionFromReadme.d.ts +0 -2
- package/lib/options/readDescriptionFromReadme.d.ts.map +1 -1
- package/lib/options/readDescriptionFromReadme.js +2 -2
- package/lib/options/readDescriptionFromReadme.js.map +1 -1
- package/lib/options/readDevelopmentDocumentation.d.ts +0 -2
- package/lib/options/readDevelopmentDocumentation.js +1 -1
- package/lib/options/readDevelopmentDocumentation.js.map +1 -1
- package/lib/options/readDocumentation.d.ts +0 -2
- package/lib/options/readDocumentation.js.map +1 -1
- package/lib/options/readEmailFromCodeOfConduct.d.ts +0 -2
- package/lib/options/readEmailFromCodeOfConduct.js.map +1 -1
- package/lib/options/readEmailFromGit.d.ts +0 -2
- package/lib/options/readEmailFromGit.js.map +1 -1
- package/lib/options/readEmailFromNpm.d.ts +0 -2
- package/lib/options/readEmailFromNpm.js.map +1 -1
- package/lib/options/readEmails.d.ts +0 -2
- package/lib/options/readEmails.d.ts.map +1 -1
- package/lib/options/readEmails.js.map +1 -1
- package/lib/options/readEmoji.d.ts +0 -2
- package/lib/options/readEmoji.d.ts.map +1 -1
- package/lib/options/readEmoji.js.map +1 -1
- package/lib/options/readExistingLabels.d.ts +0 -2
- package/lib/options/readExistingLabels.d.ts.map +1 -1
- package/lib/options/readExistingLabels.js.map +1 -1
- package/lib/options/readFileAsJson.d.ts +0 -2
- package/lib/options/readFileAsJson.d.ts.map +1 -1
- package/lib/options/readFileAsJson.js.map +1 -1
- package/lib/options/readFileSafe.d.ts +0 -2
- package/lib/options/readFileSafe.d.ts.map +1 -1
- package/lib/options/readFileSafe.js.map +1 -1
- package/lib/options/readFunding.d.ts +0 -2
- package/lib/options/readFunding.js.map +1 -1
- package/lib/options/readGitDefaults.d.ts +0 -2
- package/lib/options/readGitDefaults.js.map +1 -1
- package/lib/options/readGuide.d.ts +0 -2
- package/lib/options/readGuide.d.ts.map +1 -1
- package/lib/options/readGuide.js +2 -2
- package/lib/options/readGuide.js.map +1 -1
- package/lib/options/readKeywords.d.ts +0 -2
- package/lib/options/readKeywords.js.map +1 -1
- package/lib/options/readLogo.d.ts +0 -2
- package/lib/options/readLogo.d.ts.map +1 -1
- package/lib/options/readLogo.js +4 -5
- package/lib/options/readLogo.js.map +1 -1
- package/lib/options/readLogoSizing.d.ts +0 -2
- package/lib/options/readLogoSizing.d.ts.map +1 -1
- package/lib/options/readLogoSizing.js +2 -2
- package/lib/options/readLogoSizing.js.map +1 -1
- package/lib/options/readNode.d.ts +0 -2
- package/lib/options/readNode.d.ts.map +1 -1
- package/lib/options/readNode.js.map +1 -1
- package/lib/options/readNpmDefaults.d.ts +2 -4
- package/lib/options/readNpmDefaults.d.ts.map +1 -1
- package/lib/options/readNpmDefaults.js.map +1 -1
- package/lib/options/readOwner.d.ts +0 -2
- package/lib/options/readOwner.js.map +1 -1
- package/lib/options/readPackageAuthor.d.ts +0 -2
- package/lib/options/readPackageAuthor.d.ts.map +1 -1
- package/lib/options/readPackageAuthor.js.map +1 -1
- package/lib/options/readPackageData.d.ts +0 -2
- package/lib/options/readPackageData.js.map +1 -1
- package/lib/options/readPnpm.d.ts +0 -2
- package/lib/options/readPnpm.js.map +1 -1
- package/lib/options/readReadmeAdditional.d.ts +0 -2
- package/lib/options/readReadmeAdditional.d.ts.map +1 -1
- package/lib/options/readReadmeAdditional.js +2 -2
- package/lib/options/readReadmeAdditional.js.map +1 -1
- package/lib/options/readReadmeExplainer.d.ts +0 -2
- package/lib/options/readReadmeExplainer.d.ts.map +1 -1
- package/lib/options/readReadmeExplainer.js +2 -3
- package/lib/options/readReadmeExplainer.js.map +1 -1
- package/lib/options/readReadmeFootnotes.d.ts +0 -2
- package/lib/options/readReadmeFootnotes.d.ts.map +1 -1
- package/lib/options/readReadmeFootnotes.js +2 -2
- package/lib/options/readReadmeFootnotes.js.map +1 -1
- package/lib/options/readReadmeUsage.d.ts +0 -2
- package/lib/options/readReadmeUsage.d.ts.map +1 -1
- package/lib/options/readReadmeUsage.js +3 -4
- package/lib/options/readReadmeUsage.js.map +1 -1
- package/lib/options/readRepository.d.ts +0 -2
- package/lib/options/readRepository.d.ts.map +1 -1
- package/lib/options/readRepository.js.map +1 -1
- package/lib/options/readRulesetId.d.ts +0 -2
- package/lib/options/readRulesetId.js +2 -3
- package/lib/options/readRulesetId.js.map +1 -1
- package/lib/options/readTitle.d.ts +0 -2
- package/lib/options/readTitle.d.ts.map +1 -1
- package/lib/options/readTitle.js.map +1 -1
- package/lib/options/readWords.d.ts +0 -2
- package/lib/options/readWords.js +1 -2
- package/lib/options/readWords.js.map +1 -1
- package/lib/options/readWorkflowsVersions.d.ts +0 -2
- package/lib/options/readWorkflowsVersions.js.map +1 -1
- package/lib/package.d.ts +144 -0
- package/lib/package.d.ts.map +1 -0
- package/lib/presets/common.d.ts +69 -70
- package/lib/presets/common.d.ts.map +1 -1
- package/lib/presets/common.js.map +1 -1
- package/lib/presets/everything.d.ts +69 -70
- package/lib/presets/everything.d.ts.map +1 -1
- package/lib/presets/everything.js.map +1 -1
- package/lib/presets/index.d.ts +203 -203
- package/lib/presets/index.d.ts.map +1 -1
- package/lib/presets/index.js.map +1 -1
- package/lib/presets/minimal.d.ts +69 -70
- package/lib/presets/minimal.d.ts.map +1 -1
- package/lib/presets/minimal.js.map +1 -1
- package/lib/schemas.d.ts +0 -2
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js.map +1 -1
- package/lib/template.d.ts +69 -70
- package/lib/template.d.ts.map +1 -1
- package/lib/template.js.map +1 -1
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +1 -0
- package/lib/utils/htmlToTextSafe.d.ts +0 -2
- package/lib/utils/htmlToTextSafe.d.ts.map +1 -1
- package/lib/utils/htmlToTextSafe.js.map +1 -1
- package/lib/utils/resolveBin.d.ts +0 -2
- package/lib/utils/resolveBin.d.ts.map +1 -1
- package/lib/utils/resolveBin.js.map +1 -1
- package/lib/utils/swallowError.d.ts +0 -2
- package/lib/utils/swallowError.d.ts.map +1 -1
- package/lib/utils/swallowError.js.map +1 -1
- package/lib/utils/swallowErrorAsync.d.ts +0 -2
- package/lib/utils/swallowErrorAsync.d.ts.map +1 -1
- package/lib/utils/swallowErrorAsync.js +1 -1
- package/lib/utils/swallowErrorAsync.js.map +1 -1
- package/lib/utils/trimPrecedingSlash.d.ts +0 -2
- package/lib/utils/trimPrecedingSlash.d.ts.map +1 -1
- package/lib/utils/trimPrecedingSlash.js.map +1 -1
- package/lib/utils/tryCatch.d.ts +0 -2
- package/lib/utils/tryCatch.d.ts.map +1 -1
- package/lib/utils/tryCatch.js +1 -1
- package/lib/utils/tryCatch.js.map +1 -1
- package/package.json +51 -55
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intakeFileAsJson.js","names":[
|
|
1
|
+
{"version":3,"file":"intakeFileAsJson.js","names":[],"sources":["../../../src/blocks/intake/intakeFileAsJson.ts"],"sourcesContent":["import { IntakeDirectory } from \"bingo-fs\";\nimport JSON5 from \"json5\";\n\nimport { intakeFile } from \"./intakeFile.js\";\n\nexport function intakeFileAsJson(files: IntakeDirectory, filePath: string[]) {\n\tconst file = intakeFile(files, filePath);\n\n\ttry {\n\t\treturn file && JSON5.parse<Record<string, unknown> | undefined>(file[0]);\n\t} catch {\n\t\treturn undefined;\n\t}\n}\n"],"mappings":";;;;AAKA,SAAgB,iBAAiB,OAAwB,UAAoB;CAC5E,MAAM,OAAO,WAAW,OAAO,SAAS;AAExC,KAAI;AACH,SAAO,QAAQ,MAAM,MAA2C,KAAK,GAAG;SACjE;AACP"}
|
|
@@ -2,8 +2,6 @@ import { IntakeDirectory } from "bingo-fs";
|
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/intake/intakeFileAsYaml.d.ts
|
|
4
4
|
declare function intakeFileAsYaml(files: IntakeDirectory, filePath: string[]): unknown;
|
|
5
|
-
//# sourceMappingURL=intakeFileAsYaml.d.ts.map
|
|
6
|
-
|
|
7
5
|
//#endregion
|
|
8
6
|
export { intakeFileAsYaml };
|
|
9
7
|
//# sourceMappingURL=intakeFileAsYaml.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intakeFileAsYaml.js","names":[
|
|
1
|
+
{"version":3,"file":"intakeFileAsYaml.js","names":[],"sources":["../../../src/blocks/intake/intakeFileAsYaml.ts"],"sourcesContent":["import { IntakeDirectory } from \"bingo-fs\";\nimport jsYaml from \"js-yaml\";\n\nimport { intakeFile } from \"./intakeFile.js\";\n\nexport function intakeFileAsYaml(files: IntakeDirectory, filePath: string[]) {\n\tconst file = intakeFile(files, filePath);\n\n\ttry {\n\t\treturn file && jsYaml.load(file[0]);\n\t} catch {\n\t\treturn undefined;\n\t}\n}\n"],"mappings":";;;;AAKA,SAAgB,iBAAiB,OAAwB,UAAoB;CAC5E,MAAM,OAAO,WAAW,OAAO,SAAS;AAExC,KAAI;AACH,SAAO,QAAQ,OAAO,KAAK,KAAK,GAAG;SAC5B;AACP"}
|
|
@@ -2,8 +2,6 @@ import { IntakeDirectory } from "bingo-fs";
|
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/intake/intakeFileDefineConfig.d.ts
|
|
4
4
|
declare function intakeFileDefineConfig(files: IntakeDirectory, filePath: (string | string[])[]): Record<string, unknown> | undefined;
|
|
5
|
-
//# sourceMappingURL=intakeFileDefineConfig.d.ts.map
|
|
6
|
-
|
|
7
5
|
//#endregion
|
|
8
6
|
export { intakeFileDefineConfig };
|
|
9
7
|
//# sourceMappingURL=intakeFileDefineConfig.d.ts.map
|
|
@@ -4,19 +4,19 @@ import JSON5 from "json5";
|
|
|
4
4
|
//#region src/blocks/intake/intakeFileDefineConfig.ts
|
|
5
5
|
function intakeFileDefineConfig(files, filePath) {
|
|
6
6
|
const file = intakeFile(files, filePath);
|
|
7
|
-
if (!file) return
|
|
7
|
+
if (!file) return;
|
|
8
8
|
const normalized = file[0].replaceAll(/[\n\r]/g, "");
|
|
9
9
|
const matched = /defineConfig\(\{(.+)\}\)\s*(?:;\s*)?$/u.exec(normalized);
|
|
10
|
-
if (!matched) return
|
|
10
|
+
if (!matched) return;
|
|
11
11
|
const rawData = tryParseJSON5(`{${matched[1]}}`);
|
|
12
|
-
if (!rawData || typeof rawData !== "object") return
|
|
12
|
+
if (!rawData || typeof rawData !== "object") return;
|
|
13
13
|
return rawData;
|
|
14
14
|
}
|
|
15
15
|
function tryParseJSON5(text) {
|
|
16
16
|
try {
|
|
17
17
|
return JSON5.parse(text);
|
|
18
18
|
} catch {
|
|
19
|
-
return
|
|
19
|
+
return;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intakeFileDefineConfig.js","names":[
|
|
1
|
+
{"version":3,"file":"intakeFileDefineConfig.js","names":[],"sources":["../../../src/blocks/intake/intakeFileDefineConfig.ts"],"sourcesContent":["import { IntakeDirectory } from \"bingo-fs\";\nimport JSON5 from \"json5\";\n\nimport { intakeFile } from \"./intakeFile.js\";\n\nexport function intakeFileDefineConfig(\n\tfiles: IntakeDirectory,\n\tfilePath: (string | string[])[],\n): Record<string, unknown> | undefined {\n\tconst file = intakeFile(files, filePath);\n\tif (!file) {\n\t\treturn undefined;\n\t}\n\n\tconst normalized = file[0].replaceAll(/[\\n\\r]/g, \"\");\n\tconst matched = /defineConfig\\(\\{(.+)\\}\\)\\s*(?:;\\s*)?$/u.exec(normalized);\n\tif (!matched) {\n\t\treturn undefined;\n\t}\n\n\tconst rawData = tryParseJSON5(`{${matched[1]}}`);\n\tif (!rawData || typeof rawData !== \"object\") {\n\t\treturn undefined;\n\t}\n\n\treturn rawData;\n}\n\nfunction tryParseJSON5(text: string) {\n\ttry {\n\t\t// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n\t\treturn JSON5.parse(text) as Record<string, unknown> | undefined;\n\t} catch {\n\t\treturn undefined;\n\t}\n}\n"],"mappings":";;;;AAKA,SAAgB,uBACf,OACA,UACsC;CACtC,MAAM,OAAO,WAAW,OAAO,SAAS;AACxC,KAAI,CAAC,KACJ;CAGD,MAAM,aAAa,KAAK,GAAG,WAAW,WAAW,GAAG;CACpD,MAAM,UAAU,yCAAyC,KAAK,WAAW;AACzE,KAAI,CAAC,QACJ;CAGD,MAAM,UAAU,cAAc,IAAI,QAAQ,GAAG,GAAG;AAChD,KAAI,CAAC,WAAW,OAAO,YAAY,SAClC;AAGD,QAAO;;AAGR,SAAS,cAAc,MAAc;AACpC,KAAI;AAEH,SAAO,MAAM,MAAM,KAAK;SACjB;AACP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.fakes.js","names":[],"sources":["../../src/blocks/options.fakes.ts"],"sourcesContent":["import { BaseOptions } from \"../base.js\";\n\nexport const optionsBase = {\n\taccess: \"public\",\n\tdescription: \"Test description\",\n\tdirectory: \".\",\n\tdocumentation: {\n\t\treadme: {\n\t\t\tusage: \"Test usage.\",\n\t\t},\n\t},\n\temail: {\n\t\tgithub: \"github@email.com\",\n\t\tnpm: \"npm@email.com\",\n\t},\n\temoji: \"💖\",\n\tnode: {\n\t\tminimum: \"20.12.0\",\n\t},\n\towner: \"test-owner\",\n\tpreset: \"minimal\",\n\trepository: \"test-repository\",\n\ttitle: \"Test Title\",\n} satisfies BaseOptions;\n"],"mappings":";AAEA,MAAa,cAAc;CAC1B,QAAQ;CACR,aAAa;CACb,WAAW;CACX,eAAe,EACd,QAAQ,EACP,OAAO,
|
|
1
|
+
{"version":3,"file":"options.fakes.js","names":[],"sources":["../../src/blocks/options.fakes.ts"],"sourcesContent":["import { BaseOptions } from \"../base.js\";\n\nexport const optionsBase = {\n\taccess: \"public\",\n\tdescription: \"Test description\",\n\tdirectory: \".\",\n\tdocumentation: {\n\t\treadme: {\n\t\t\tusage: \"Test usage.\",\n\t\t},\n\t},\n\temail: {\n\t\tgithub: \"github@email.com\",\n\t\tnpm: \"npm@email.com\",\n\t},\n\temoji: \"💖\",\n\tnode: {\n\t\tminimum: \"20.12.0\",\n\t},\n\towner: \"test-owner\",\n\tpreset: \"minimal\",\n\trepository: \"test-repository\",\n\ttitle: \"Test Title\",\n} satisfies BaseOptions;\n"],"mappings":";AAEA,MAAa,cAAc;CAC1B,QAAQ;CACR,aAAa;CACb,WAAW;CACX,eAAe,EACd,QAAQ,EACP,OAAO,eACP,EACD;CACD,OAAO;EACN,QAAQ;EACR,KAAK;EACL;CACD,OAAO;CACP,MAAM,EACL,SAAS,WACT;CACD,OAAO;CACP,QAAQ;CACR,YAAY;CACZ,OAAO;CACP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outcomeLabels.js","names":[],"sources":["../../src/blocks/outcomeLabels.ts"],"sourcesContent":["/* spellchecker:disable */\nexport const outcomeLabels = [\n\t{\n\t\taliases: [\"docs\"],\n\t\tcolor: \"0075ca\",\n\t\tdescription: \"Improvements or additions to docs 📝\",\n\t\tname: \"area: documentation\",\n\t},\n\t{\n\t\tcolor: \"1177aa\",\n\t\tdescription:\n\t\t\t\"Improving how the repository's tests are run and/or code is tested 🧪\",\n\t\tname: \"area: testing\",\n\t},\n\t{\n\t\tcolor: \"f9d0c4\",\n\t\tdescription: \"Managing the repository's maintenance 🛠️\",\n\t\tname: \"area: tooling\",\n\t},\n\t{\n\t\tcolor: \"5319E7\",\n\t\tdescription: \"Good for newcomers, please hop on! 🙌\",\n\t\tname: \"good first issue\",\n\t},\n\t{\n\t\tcolor: \"7a5901\",\n\t\tdescription: \"This doesn't seem right\",\n\t\tname: \"invalid\",\n\t},\n\t{\n\t\taliases: [\"help wanted\"],\n\t\tcolor: \"0E8A16\",\n\t\tdescription: \"Please, send a pull request to resolve this! 🙏\",\n\t\tname: \"status: accepting prs\",\n\t},\n\t{\n\t\tcolor: \"eeeeee\",\n\t\tdescription: \"Issue is stale and/or no longer valid\",\n\t\tname: \"status: aged away\",\n\t},\n\t{\n\t\tcolor: \"ddcccc\",\n\t\tdescription: \"Waiting for something else to be resolved 🙅\",\n\t\tname: \"status: blocked\",\n\t},\n\t{\n\t\tcolor: \"cfd3d7\",\n\t\tdescription: \"This issue or pull request already exists\",\n\t\tname: \"status: duplicate\",\n\t},\n\t{\n\t\tcolor: \"05104F\",\n\t\tdescription: \"Not yet ready for implementation or a pull request\",\n\t\tname: \"status: in discussion\",\n\t},\n\t{\n\t\tcolor: \"D3F82D\",\n\t\tdescription: \"Further research required...? 🔎\",\n\t\tname: \"status: needs investigation\",\n\t},\n\t{\n\t\tcolor: \"E4BC82\",\n\t\tdescription: \"Needs an action taken by the original poster\",\n\t\tname: \"status: waiting for author\",\n\t},\n\t{\n\t\tcolor: \"ffffff\",\n\t\tdescription: \"This will not be worked on\",\n\t\tname: \"status: wontfix\",\n\t},\n\t{\n\t\tcolor: \"d73a4a\",\n\t\tdescription: \"Something isn't working 🐛\",\n\t\tname: \"type: bug\",\n\t},\n\t{\n\t\taliases: [\"enhancement\"],\n\t\t/* spellchecker: disable-next-line */\n\t\tcolor: \"a2eeef\",\n\t\tdescription: \"New enhancement or request 🚀\",\n\t\tname: \"type: feature\",\n\t},\n\t{\n\t\tcolor: \"d876e3\",\n\t\tdescription: \"Further information is requested\",\n\t\tname: \"type: question\",\n\t},\n\t{\n\t\tcolor: \"fde282\",\n\t\tdescription: \"Tech debt or other code/repository cleanups 🧹\",\n\t\tname: \"type: cleanup\",\n\t},\n];\n"],"mappings":";AACA,MAAa,gBAAgB;CAC5B;EACC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"outcomeLabels.js","names":[],"sources":["../../src/blocks/outcomeLabels.ts"],"sourcesContent":["/* spellchecker:disable */\nexport const outcomeLabels = [\n\t{\n\t\taliases: [\"docs\"],\n\t\tcolor: \"0075ca\",\n\t\tdescription: \"Improvements or additions to docs 📝\",\n\t\tname: \"area: documentation\",\n\t},\n\t{\n\t\tcolor: \"1177aa\",\n\t\tdescription:\n\t\t\t\"Improving how the repository's tests are run and/or code is tested 🧪\",\n\t\tname: \"area: testing\",\n\t},\n\t{\n\t\tcolor: \"f9d0c4\",\n\t\tdescription: \"Managing the repository's maintenance 🛠️\",\n\t\tname: \"area: tooling\",\n\t},\n\t{\n\t\tcolor: \"5319E7\",\n\t\tdescription: \"Good for newcomers, please hop on! 🙌\",\n\t\tname: \"good first issue\",\n\t},\n\t{\n\t\tcolor: \"7a5901\",\n\t\tdescription: \"This doesn't seem right\",\n\t\tname: \"invalid\",\n\t},\n\t{\n\t\taliases: [\"help wanted\"],\n\t\tcolor: \"0E8A16\",\n\t\tdescription: \"Please, send a pull request to resolve this! 🙏\",\n\t\tname: \"status: accepting prs\",\n\t},\n\t{\n\t\tcolor: \"eeeeee\",\n\t\tdescription: \"Issue is stale and/or no longer valid\",\n\t\tname: \"status: aged away\",\n\t},\n\t{\n\t\tcolor: \"ddcccc\",\n\t\tdescription: \"Waiting for something else to be resolved 🙅\",\n\t\tname: \"status: blocked\",\n\t},\n\t{\n\t\tcolor: \"cfd3d7\",\n\t\tdescription: \"This issue or pull request already exists\",\n\t\tname: \"status: duplicate\",\n\t},\n\t{\n\t\tcolor: \"05104F\",\n\t\tdescription: \"Not yet ready for implementation or a pull request\",\n\t\tname: \"status: in discussion\",\n\t},\n\t{\n\t\tcolor: \"D3F82D\",\n\t\tdescription: \"Further research required...? 🔎\",\n\t\tname: \"status: needs investigation\",\n\t},\n\t{\n\t\tcolor: \"E4BC82\",\n\t\tdescription: \"Needs an action taken by the original poster\",\n\t\tname: \"status: waiting for author\",\n\t},\n\t{\n\t\tcolor: \"ffffff\",\n\t\tdescription: \"This will not be worked on\",\n\t\tname: \"status: wontfix\",\n\t},\n\t{\n\t\tcolor: \"d73a4a\",\n\t\tdescription: \"Something isn't working 🐛\",\n\t\tname: \"type: bug\",\n\t},\n\t{\n\t\taliases: [\"enhancement\"],\n\t\t/* spellchecker: disable-next-line */\n\t\tcolor: \"a2eeef\",\n\t\tdescription: \"New enhancement or request 🚀\",\n\t\tname: \"type: feature\",\n\t},\n\t{\n\t\tcolor: \"d876e3\",\n\t\tdescription: \"Further information is requested\",\n\t\tname: \"type: question\",\n\t},\n\t{\n\t\tcolor: \"fde282\",\n\t\tdescription: \"Tech debt or other code/repository cleanups 🧹\",\n\t\tname: \"type: cleanup\",\n\t},\n];\n"],"mappings":";AACA,MAAa,gBAAgB;CAC5B;EACC,SAAS,CAAC,OAAO;EACjB,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD;EACC,OAAO;EACP,aACC;EACD,MAAM;EACN;CACD;EACC,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD;EACC,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD;EACC,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD;EACC,SAAS,CAAC,cAAc;EACxB,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD;EACC,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD;EACC,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD;EACC,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD;EACC,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD;EACC,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD;EACC,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD;EACC,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD;EACC,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD;EACC,SAAS,CAAC,cAAc;EAExB,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD;EACC,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD;EACC,OAAO;EACP,aAAa;EACb,MAAM;EACN;CACD"}
|
package/lib/blocks/phases.d.ts
CHANGED
package/lib/blocks/phases.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phases.js","names":[],"sources":["../../src/blocks/phases.ts"],"sourcesContent":["// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair\n/* eslint-disable perfectionist/sort-objects */\n\nexport const CommandPhase = {\n\tMigrations: 0,\n\tInstall: 1,\n\tBuild: 2,\n\tProcess: 3,\n\tFormat: 4,\n} as const;\n"],"mappings":";AAGA,MAAa,eAAe;CAC3B,YAAY;CACZ,SAAS;CACT,OAAO;CACP,SAAS;CACT,QAAQ;
|
|
1
|
+
{"version":3,"file":"phases.js","names":[],"sources":["../../src/blocks/phases.ts"],"sourcesContent":["// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair\n/* eslint-disable perfectionist/sort-objects */\n\nexport const CommandPhase = {\n\tMigrations: 0,\n\tInstall: 1,\n\tBuild: 2,\n\tProcess: 3,\n\tFormat: 4,\n} as const;\n"],"mappings":";AAGA,MAAa,eAAe;CAC3B,YAAY;CACZ,SAAS;CACT,OAAO;CACP,SAAS;CACT,QAAQ;CACR"}
|
package/lib/constants.d.ts
CHANGED
package/lib/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":[],"sources":["../src/constants.ts"],"sourcesContent":["export const defaults = {\n\tnode: {\n\t\tminimum: \"20.19.0\",\n\t\tpinned: \"24.3.0\",\n\t},\n};\n"],"mappings":";AAAA,MAAa,WAAW,EACvB,MAAM;CACL,SAAS;CACT,QAAQ;
|
|
1
|
+
{"version":3,"file":"constants.js","names":[],"sources":["../src/constants.ts"],"sourcesContent":["export const defaults = {\n\tnode: {\n\t\tminimum: \"20.19.0\",\n\t\tpinned: \"24.3.0\",\n\t},\n};\n"],"mappings":";AAAA,MAAa,WAAW,EACvB,MAAM;CACL,SAAS;CACT,QAAQ;CACR,EACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contributions.d.ts","names":[],"sources":["../../src/data/contributions.ts"],"sourcesContent":[],"mappings":";cAAa
|
|
1
|
+
{"version":3,"file":"contributions.d.ts","names":[],"sources":["../../src/data/contributions.ts"],"sourcesContent":[],"mappings":";cAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contributions.js","names":[],"sources":["../../src/data/contributions.ts"],"sourcesContent":["export const startingOwnerContributions = [\n\t\"code\",\n\t\"content\",\n\t\"doc\",\n\t\"ideas\",\n\t\"infra\",\n\t\"maintenance\",\n\t\"projectManagement\",\n\t\"tool\",\n];\n"],"mappings":";AAAA,MAAa,6BAA6B;CACzC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;
|
|
1
|
+
{"version":3,"file":"contributions.js","names":[],"sources":["../../src/data/contributions.ts"],"sourcesContent":["export const startingOwnerContributions = [\n\t\"code\",\n\t\"content\",\n\t\"doc\",\n\t\"ideas\",\n\t\"infra\",\n\t\"maintenance\",\n\t\"projectManagement\",\n\t\"tool\",\n];\n"],"mappings":";AAAA,MAAa,6BAA6B;CACzC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { package_d_exports } from "../package.js";
|
|
2
2
|
|
|
3
3
|
//#region src/data/packageData.d.ts
|
|
4
|
-
declare const packageData: typeof
|
|
4
|
+
declare const packageData: typeof package_d_exports;
|
|
5
5
|
declare function getPackageDependencies(...names: string[]): {
|
|
6
6
|
[k: string]: string;
|
|
7
7
|
};
|
|
8
8
|
declare function getPackageDependency(name: string): string;
|
|
9
|
-
//# sourceMappingURL=packageData.d.ts.map
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
10
|
export { getPackageDependencies, getPackageDependency, packageData };
|
|
13
11
|
//# sourceMappingURL=packageData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageData.d.ts","names":[],"sources":["../../src/data/packageData.ts"],"sourcesContent":[],"mappings":";;;cAIa,oBAEwD;iBAErD,sBAAA;;AAJhB,CAAA;AAIgB,iBAQA,oBAAA,CARsB,IAAA,EAAA,MAAA,CAAA,EAAA,MAAA
|
|
1
|
+
{"version":3,"file":"packageData.d.ts","names":[],"sources":["../../src/data/packageData.ts"],"sourcesContent":[],"mappings":";;;cAIa,oBAEwD;iBAErD,sBAAA;;AAJhB,CAAA;AAIgB,iBAQA,oBAAA,CARsB,IAAA,EAAA,MAAA,CAAA,EAAA,MAAA"}
|
package/lib/data/packageData.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageData.js","names":[
|
|
1
|
+
{"version":3,"file":"packageData.js","names":[],"sources":["../../src/data/packageData.ts"],"sourcesContent":["import { createRequire } from \"node:module\";\n\nconst require = createRequire(import.meta.url);\n\nexport const packageData =\n\t// Importing from above src/ would expand the TS build rootDir\n\trequire(\"../../package.json\") as typeof import(\"../../package.json\");\n\nexport function getPackageDependencies(...names: string[]) {\n\treturn Object.fromEntries(\n\t\tnames.map((name) => {\n\t\t\treturn [name, getPackageDependency(name)];\n\t\t}),\n\t);\n}\n\nexport function getPackageDependency(name: string) {\n\tconst version =\n\t\tgetPackageInner(\"devDependencies\", name) ??\n\t\tgetPackageInner(\"dependencies\", name);\n\n\tif (!version) {\n\t\tthrow new Error(\n\t\t\t`'${name}' is neither in package.json's dependencies nor its devDependencies.`,\n\t\t);\n\t}\n\n\treturn version;\n}\n\nfunction getPackageInner(\n\tkey: \"dependencies\" | \"devDependencies\",\n\tname: string,\n) {\n\tconst inner = packageData[key];\n\n\treturn inner[name as keyof typeof inner] as string | undefined;\n}\n"],"mappings":";;;AAEA,MAAM,UAAU,cAAc,OAAO,KAAK,IAAI;AAE9C,MAAa,cAEZ,QAAQ,qBAAqB;AAE9B,SAAgB,uBAAuB,GAAG,OAAiB;AAC1D,QAAO,OAAO,YACb,MAAM,KAAK,SAAS;AACnB,SAAO,CAAC,MAAM,qBAAqB,KAAK,CAAC;GACxC,CACF;;AAGF,SAAgB,qBAAqB,MAAc;CAClD,MAAM,UACL,gBAAgB,mBAAmB,KAAK,IACxC,gBAAgB,gBAAgB,KAAK;AAEtC,KAAI,CAAC,QACJ,OAAM,IAAI,MACT,IAAI,KAAK,sEACT;AAGF,QAAO;;AAGR,SAAS,gBACR,KACA,MACC;AAGD,QAFc,YAAY,KAEb"}
|
package/lib/index.d.ts
CHANGED
|
@@ -55,23 +55,23 @@ import { presetCommon } from "./presets/common.js";
|
|
|
55
55
|
import { presetEverything } from "./presets/everything.js";
|
|
56
56
|
import { presetMinimal } from "./presets/minimal.js";
|
|
57
57
|
import { presets } from "./presets/index.js";
|
|
58
|
-
import * as
|
|
59
|
-
import * as
|
|
60
|
-
import * as
|
|
61
|
-
import * as
|
|
58
|
+
import * as bingo_stratum0 from "bingo-stratum";
|
|
59
|
+
import * as zod0 from "zod";
|
|
60
|
+
import * as bingo0 from "bingo";
|
|
61
|
+
import * as bingo_stratum_lib_types_templates_js0 from "bingo-stratum/lib/types/templates.js";
|
|
62
62
|
|
|
63
63
|
//#region src/index.d.ts
|
|
64
|
-
declare const createConfig:
|
|
65
|
-
access:
|
|
66
|
-
author:
|
|
67
|
-
bin:
|
|
68
|
-
contributors:
|
|
69
|
-
avatar_url:
|
|
70
|
-
contributions:
|
|
71
|
-
login:
|
|
72
|
-
name:
|
|
73
|
-
profile:
|
|
74
|
-
}, "strip",
|
|
64
|
+
declare const createConfig: bingo0.CreateTemplateConfig<{
|
|
65
|
+
access: zod0.ZodUnion<[zod0.ZodLiteral<"public">, zod0.ZodLiteral<"restricted">]>;
|
|
66
|
+
author: zod0.ZodOptional<zod0.ZodString>;
|
|
67
|
+
bin: zod0.ZodOptional<zod0.ZodUnion<[zod0.ZodString, zod0.ZodRecord<zod0.ZodString, zod0.ZodString>]>>;
|
|
68
|
+
contributors: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
|
|
69
|
+
avatar_url: zod0.ZodString;
|
|
70
|
+
contributions: zod0.ZodArray<zod0.ZodString, "many">;
|
|
71
|
+
login: zod0.ZodString;
|
|
72
|
+
name: zod0.ZodString;
|
|
73
|
+
profile: zod0.ZodString;
|
|
74
|
+
}, "strip", zod0.ZodTypeAny, {
|
|
75
75
|
avatar_url: string;
|
|
76
76
|
contributions: string[];
|
|
77
77
|
login: string;
|
|
@@ -84,16 +84,16 @@ declare const createConfig: bingo1155.CreateTemplateConfig<{
|
|
|
84
84
|
name: string;
|
|
85
85
|
profile: string;
|
|
86
86
|
}>, "many">>;
|
|
87
|
-
description:
|
|
88
|
-
directory:
|
|
89
|
-
documentation:
|
|
90
|
-
development:
|
|
91
|
-
readme:
|
|
92
|
-
additional:
|
|
93
|
-
explainer:
|
|
94
|
-
footnotes:
|
|
95
|
-
usage:
|
|
96
|
-
}, "strip",
|
|
87
|
+
description: zod0.ZodDefault<zod0.ZodString>;
|
|
88
|
+
directory: zod0.ZodString;
|
|
89
|
+
documentation: zod0.ZodObject<{
|
|
90
|
+
development: zod0.ZodOptional<zod0.ZodString>;
|
|
91
|
+
readme: zod0.ZodObject<{
|
|
92
|
+
additional: zod0.ZodOptional<zod0.ZodString>;
|
|
93
|
+
explainer: zod0.ZodOptional<zod0.ZodString>;
|
|
94
|
+
footnotes: zod0.ZodOptional<zod0.ZodString>;
|
|
95
|
+
usage: zod0.ZodOptional<zod0.ZodString>;
|
|
96
|
+
}, "strip", zod0.ZodTypeAny, {
|
|
97
97
|
additional?: string | undefined;
|
|
98
98
|
explainer?: string | undefined;
|
|
99
99
|
footnotes?: string | undefined;
|
|
@@ -104,7 +104,7 @@ declare const createConfig: bingo1155.CreateTemplateConfig<{
|
|
|
104
104
|
footnotes?: string | undefined;
|
|
105
105
|
usage?: string | undefined;
|
|
106
106
|
}>;
|
|
107
|
-
}, "strip",
|
|
107
|
+
}, "strip", zod0.ZodTypeAny, {
|
|
108
108
|
readme: {
|
|
109
109
|
additional?: string | undefined;
|
|
110
110
|
explainer?: string | undefined;
|
|
@@ -121,10 +121,10 @@ declare const createConfig: bingo1155.CreateTemplateConfig<{
|
|
|
121
121
|
};
|
|
122
122
|
development?: string | undefined;
|
|
123
123
|
}>;
|
|
124
|
-
email:
|
|
125
|
-
github:
|
|
126
|
-
npm:
|
|
127
|
-
}, "strip",
|
|
124
|
+
email: zod0.ZodEffects<zod0.ZodUnion<[zod0.ZodString, zod0.ZodObject<{
|
|
125
|
+
github: zod0.ZodString;
|
|
126
|
+
npm: zod0.ZodString;
|
|
127
|
+
}, "strip", zod0.ZodTypeAny, {
|
|
128
128
|
github: string;
|
|
129
129
|
npm: string;
|
|
130
130
|
}, {
|
|
@@ -137,12 +137,12 @@ declare const createConfig: bingo1155.CreateTemplateConfig<{
|
|
|
137
137
|
github: string;
|
|
138
138
|
npm: string;
|
|
139
139
|
}>;
|
|
140
|
-
emoji:
|
|
141
|
-
existingLabels:
|
|
142
|
-
color:
|
|
143
|
-
description:
|
|
144
|
-
name:
|
|
145
|
-
}, "strip",
|
|
140
|
+
emoji: zod0.ZodOptional<zod0.ZodString>;
|
|
141
|
+
existingLabels: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
|
|
142
|
+
color: zod0.ZodString;
|
|
143
|
+
description: zod0.ZodString;
|
|
144
|
+
name: zod0.ZodString;
|
|
145
|
+
}, "strip", zod0.ZodTypeAny, {
|
|
146
146
|
name: string;
|
|
147
147
|
description: string;
|
|
148
148
|
color: string;
|
|
@@ -151,24 +151,24 @@ declare const createConfig: bingo1155.CreateTemplateConfig<{
|
|
|
151
151
|
description: string;
|
|
152
152
|
color: string;
|
|
153
153
|
}>, "many">>;
|
|
154
|
-
funding:
|
|
155
|
-
guide:
|
|
156
|
-
href:
|
|
157
|
-
title:
|
|
158
|
-
}, "strip",
|
|
154
|
+
funding: zod0.ZodOptional<zod0.ZodString>;
|
|
155
|
+
guide: zod0.ZodOptional<zod0.ZodObject<{
|
|
156
|
+
href: zod0.ZodString;
|
|
157
|
+
title: zod0.ZodString;
|
|
158
|
+
}, "strip", zod0.ZodTypeAny, {
|
|
159
159
|
href: string;
|
|
160
160
|
title: string;
|
|
161
161
|
}, {
|
|
162
162
|
href: string;
|
|
163
163
|
title: string;
|
|
164
164
|
}>>;
|
|
165
|
-
keywords:
|
|
166
|
-
logo:
|
|
167
|
-
alt:
|
|
168
|
-
height:
|
|
169
|
-
src:
|
|
170
|
-
width:
|
|
171
|
-
}, "strip",
|
|
165
|
+
keywords: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString, "many">>;
|
|
166
|
+
logo: zod0.ZodOptional<zod0.ZodObject<{
|
|
167
|
+
alt: zod0.ZodString;
|
|
168
|
+
height: zod0.ZodOptional<zod0.ZodNumber>;
|
|
169
|
+
src: zod0.ZodString;
|
|
170
|
+
width: zod0.ZodOptional<zod0.ZodNumber>;
|
|
171
|
+
}, "strip", zod0.ZodTypeAny, {
|
|
172
172
|
alt: string;
|
|
173
173
|
src: string;
|
|
174
174
|
height?: number | undefined;
|
|
@@ -179,24 +179,24 @@ declare const createConfig: bingo1155.CreateTemplateConfig<{
|
|
|
179
179
|
height?: number | undefined;
|
|
180
180
|
width?: number | undefined;
|
|
181
181
|
}>>;
|
|
182
|
-
node:
|
|
183
|
-
minimum:
|
|
184
|
-
pinned:
|
|
185
|
-
}, "strip",
|
|
182
|
+
node: zod0.ZodObject<{
|
|
183
|
+
minimum: zod0.ZodString;
|
|
184
|
+
pinned: zod0.ZodOptional<zod0.ZodString>;
|
|
185
|
+
}, "strip", zod0.ZodTypeAny, {
|
|
186
186
|
minimum: string;
|
|
187
187
|
pinned?: string | undefined;
|
|
188
188
|
}, {
|
|
189
189
|
minimum: string;
|
|
190
190
|
pinned?: string | undefined;
|
|
191
191
|
}>;
|
|
192
|
-
owner:
|
|
193
|
-
packageData:
|
|
194
|
-
dependencies:
|
|
195
|
-
devDependencies:
|
|
196
|
-
peerDependencies:
|
|
197
|
-
peerDependenciesMeta:
|
|
198
|
-
scripts:
|
|
199
|
-
}, "strip",
|
|
192
|
+
owner: zod0.ZodString;
|
|
193
|
+
packageData: zod0.ZodOptional<zod0.ZodObject<{
|
|
194
|
+
dependencies: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodString>>;
|
|
195
|
+
devDependencies: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodString>>;
|
|
196
|
+
peerDependencies: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodString>>;
|
|
197
|
+
peerDependenciesMeta: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
198
|
+
scripts: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodOptional<zod0.ZodString>>>;
|
|
199
|
+
}, "strip", zod0.ZodTypeAny, {
|
|
200
200
|
dependencies?: Record<string, string> | undefined;
|
|
201
201
|
devDependencies?: Record<string, string> | undefined;
|
|
202
202
|
peerDependencies?: Record<string, string> | undefined;
|
|
@@ -209,24 +209,24 @@ declare const createConfig: bingo1155.CreateTemplateConfig<{
|
|
|
209
209
|
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
210
210
|
scripts?: Record<string, string | undefined> | undefined;
|
|
211
211
|
}>>;
|
|
212
|
-
pnpm:
|
|
213
|
-
repository:
|
|
214
|
-
rulesetId:
|
|
215
|
-
title:
|
|
216
|
-
type:
|
|
217
|
-
version:
|
|
218
|
-
words:
|
|
219
|
-
workflowsVersions:
|
|
220
|
-
hash:
|
|
221
|
-
pinned:
|
|
222
|
-
}, "strip",
|
|
212
|
+
pnpm: zod0.ZodOptional<zod0.ZodString>;
|
|
213
|
+
repository: zod0.ZodString;
|
|
214
|
+
rulesetId: zod0.ZodOptional<zod0.ZodString>;
|
|
215
|
+
title: zod0.ZodString;
|
|
216
|
+
type: zod0.ZodOptional<zod0.ZodUnion<[zod0.ZodLiteral<"commonjs">, zod0.ZodLiteral<"module">]>>;
|
|
217
|
+
version: zod0.ZodOptional<zod0.ZodString>;
|
|
218
|
+
words: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString, "many">>;
|
|
219
|
+
workflowsVersions: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodRecord<zod0.ZodString, zod0.ZodObject<{
|
|
220
|
+
hash: zod0.ZodOptional<zod0.ZodString>;
|
|
221
|
+
pinned: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
222
|
+
}, "strip", zod0.ZodTypeAny, {
|
|
223
223
|
pinned?: boolean | undefined;
|
|
224
224
|
hash?: string | undefined;
|
|
225
225
|
}, {
|
|
226
226
|
pinned?: boolean | undefined;
|
|
227
227
|
hash?: string | undefined;
|
|
228
228
|
}>>>>;
|
|
229
|
-
} &
|
|
229
|
+
} & bingo_stratum_lib_types_templates_js0.StratumTemplateOptionsShape, bingo_stratum0.StratumRefinements<{
|
|
230
230
|
access: "public" | "restricted";
|
|
231
231
|
description: string;
|
|
232
232
|
directory: string;
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIe,qBAAY;yBAAa,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAzB,MAAA,gBAAyB;IAAA,GAAA,gBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAb,CAAA,EAAA;IAAA,GAAA,EAAA,MAAA"}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { template } from \"./template.js\";\n\nexport { template };\n\nexport const { createConfig } = template;\n\nexport * from \"./base.js\";\nexport * from \"./blocks/index.js\";\nexport * from \"./presets/index.js\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,MAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { template } from \"./template.js\";\n\nexport { template };\n\nexport const { createConfig } = template;\n\nexport * from \"./base.js\";\nexport * from \"./blocks/index.js\";\nexport * from \"./presets/index.js\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,MAAa,EAAE,iBAAiB"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import * as
|
|
2
|
+
import * as bingo0 from "bingo";
|
|
3
3
|
|
|
4
4
|
//#region src/inputs/inputFromDirectory.d.ts
|
|
5
|
-
declare const inputFromDirectory:
|
|
5
|
+
declare const inputFromDirectory: bingo0.InputWithArgs<Promise<string[]>, {
|
|
6
6
|
directoryPath: z.ZodString;
|
|
7
7
|
}>;
|
|
8
|
-
//# sourceMappingURL=inputFromDirectory.d.ts.map
|
|
9
|
-
|
|
10
8
|
//#endregion
|
|
11
9
|
export { inputFromDirectory };
|
|
12
10
|
//# sourceMappingURL=inputFromDirectory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputFromDirectory.d.ts","names":[],"sources":["../../src/inputs/inputFromDirectory.ts"],"sourcesContent":[],"mappings":";;;;cAGa,
|
|
1
|
+
{"version":3,"file":"inputFromDirectory.d.ts","names":[],"sources":["../../src/inputs/inputFromDirectory.ts"],"sourcesContent":[],"mappings":";;;;cAGa,2BAAkB,cAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputFromDirectory.js","names":[],"sources":["../../src/inputs/inputFromDirectory.ts"],"sourcesContent":["import { createInput } from \"bingo\";\nimport { z } from \"zod\";\n\nexport const inputFromDirectory = createInput({\n\targs: {\n\t\tdirectoryPath: z.string(),\n\t},\n\tasync produce({ args, fs }) {\n\t\treturn await fs.readDirectory(args.directoryPath);\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,qBAAqB,YAAY;CAC7C,MAAM,EACL,eAAe,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"inputFromDirectory.js","names":[],"sources":["../../src/inputs/inputFromDirectory.ts"],"sourcesContent":["import { createInput } from \"bingo\";\nimport { z } from \"zod\";\n\nexport const inputFromDirectory = createInput({\n\targs: {\n\t\tdirectoryPath: z.string(),\n\t},\n\tasync produce({ args, fs }) {\n\t\treturn await fs.readDirectory(args.directoryPath);\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,qBAAqB,YAAY;CAC7C,MAAM,EACL,eAAe,EAAE,QAAQ,EACzB;CACD,MAAM,QAAQ,EAAE,MAAM,MAAM;AAC3B,SAAO,MAAM,GAAG,cAAc,KAAK,cAAc;;CAElD,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import * as
|
|
2
|
+
import * as bingo1 from "bingo";
|
|
3
3
|
|
|
4
4
|
//#region src/inputs/inputFromOctokit.d.ts
|
|
5
|
-
declare const inputFromOctokit:
|
|
5
|
+
declare const inputFromOctokit: bingo1.InputWithArgs<Promise<unknown>, {
|
|
6
6
|
endpoint: z.ZodString;
|
|
7
7
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
8
|
}>;
|
|
9
|
-
//# sourceMappingURL=inputFromOctokit.d.ts.map
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
10
|
export { inputFromOctokit };
|
|
13
11
|
//# sourceMappingURL=inputFromOctokit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputFromOctokit.d.ts","names":[],"sources":["../../src/inputs/inputFromOctokit.ts"],"sourcesContent":[],"mappings":";;;;cAGa,
|
|
1
|
+
{"version":3,"file":"inputFromOctokit.d.ts","names":[],"sources":["../../src/inputs/inputFromOctokit.ts"],"sourcesContent":[],"mappings":";;;;cAGa,yBAAgB,cAAA;;;AAA7B,CAAA,CAAA"}
|
|
@@ -8,15 +8,15 @@ const inputFromOctokit = createInput({
|
|
|
8
8
|
options: z.record(z.string(), z.unknown()).optional()
|
|
9
9
|
},
|
|
10
10
|
async produce({ args, fetchers }) {
|
|
11
|
+
if (!fetchers.octokit) return;
|
|
11
12
|
try {
|
|
12
|
-
|
|
13
|
+
return (await fetchers.octokit.request(args.endpoint, {
|
|
13
14
|
headers: { "X-GitHub-Api-Version": "2022-11-28" },
|
|
14
15
|
request: { retries: 0 },
|
|
15
16
|
...args.options
|
|
16
|
-
});
|
|
17
|
-
return response.data;
|
|
17
|
+
})).data;
|
|
18
18
|
} catch {
|
|
19
|
-
return
|
|
19
|
+
return;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputFromOctokit.js","names":[],"sources":["../../src/inputs/inputFromOctokit.ts"],"sourcesContent":["import { createInput } from \"bingo\";\nimport { z } from \"zod\";\n\nexport const inputFromOctokit = createInput({\n\targs: {\n\t\tendpoint: z.string(),\n\t\toptions: z.record(z.string(), z.unknown()).optional(),\n\t},\n\t// TODO: Strongly type this, then push it upstream to Bingo\n\t// https://github.com/JoshuaKGoldberg/bingo/issues/296\n\tasync produce({ args, fetchers }): Promise<unknown> {\n\t\ttry {\n\t\t\tconst response = await fetchers.octokit.request(args.endpoint, {\n\t\t\t\theaders: {\n\t\t\t\t\t\"X-GitHub-Api-Version\": \"2022-11-28\",\n\t\t\t\t},\n\t\t\t\trequest: { retries: 0 },\n\t\t\t\t...args.options,\n\t\t\t});\n\n\t\t\treturn response.data;\n\t\t} catch {\n\t\t\treturn undefined;\n\t\t}\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,mBAAmB,YAAY;CAC3C,MAAM;EACL,UAAU,EAAE,QAAQ;EACpB,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,CAAC,UAAU;
|
|
1
|
+
{"version":3,"file":"inputFromOctokit.js","names":[],"sources":["../../src/inputs/inputFromOctokit.ts"],"sourcesContent":["import { createInput } from \"bingo\";\nimport { z } from \"zod\";\n\nexport const inputFromOctokit = createInput({\n\targs: {\n\t\tendpoint: z.string(),\n\t\toptions: z.record(z.string(), z.unknown()).optional(),\n\t},\n\t// TODO: Strongly type this, then push it upstream to Bingo\n\t// https://github.com/JoshuaKGoldberg/bingo/issues/296\n\tasync produce({ args, fetchers }): Promise<unknown> {\n\t\tif (!fetchers.octokit) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\ttry {\n\t\t\tconst response = await fetchers.octokit.request(args.endpoint, {\n\t\t\t\theaders: {\n\t\t\t\t\t\"X-GitHub-Api-Version\": \"2022-11-28\",\n\t\t\t\t},\n\t\t\t\trequest: { retries: 0 },\n\t\t\t\t...args.options,\n\t\t\t});\n\n\t\t\treturn response.data;\n\t\t} catch {\n\t\t\treturn undefined;\n\t\t}\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,mBAAmB,YAAY;CAC3C,MAAM;EACL,UAAU,EAAE,QAAQ;EACpB,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,CAAC,UAAU;EACrD;CAGD,MAAM,QAAQ,EAAE,MAAM,YAA8B;AACnD,MAAI,CAAC,SAAS,QACb;AAGD,MAAI;AASH,WARiB,MAAM,SAAS,QAAQ,QAAQ,KAAK,UAAU;IAC9D,SAAS,EACR,wBAAwB,cACxB;IACD,SAAS,EAAE,SAAS,GAAG;IACvB,GAAG,KAAK;IACR,CAAC,EAEc;UACT;AACP;;;CAGF,CAAC"}
|
|
@@ -2,8 +2,6 @@ import { PartialPackageData } from "../types.js";
|
|
|
2
2
|
|
|
3
3
|
//#region src/options/readAccess.d.ts
|
|
4
4
|
declare function readAccess(getPackageDataFull: () => Promise<PartialPackageData | undefined>): Promise<"public" | "restricted">;
|
|
5
|
-
//# sourceMappingURL=readAccess.d.ts.map
|
|
6
|
-
|
|
7
5
|
//#endregion
|
|
8
6
|
export { readAccess };
|
|
9
7
|
//# sourceMappingURL=readAccess.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readAccess.js","names":[
|
|
1
|
+
{"version":3,"file":"readAccess.js","names":[],"sources":["../../src/options/readAccess.ts"],"sourcesContent":["import { PartialPackageData } from \"../types.js\";\n\nexport async function readAccess(\n\tgetPackageDataFull: () => Promise<PartialPackageData | undefined>,\n) {\n\treturn (await getPackageDataFull())?.publishConfig?.access ?? \"public\";\n}\n"],"mappings":";AAEA,eAAsB,WACrB,oBACC;AACD,SAAQ,MAAM,oBAAoB,GAAG,eAAe,UAAU"}
|
|
@@ -3,8 +3,6 @@ import { TakeInput } from "bingo";
|
|
|
3
3
|
|
|
4
4
|
//#region src/options/readAllContributors.d.ts
|
|
5
5
|
declare function readAllContributors(take: TakeInput): Promise<AllContributorContributor[] | undefined>;
|
|
6
|
-
//# sourceMappingURL=readAllContributors.d.ts.map
|
|
7
|
-
|
|
8
6
|
//#endregion
|
|
9
7
|
export { readAllContributors };
|
|
10
8
|
//# sourceMappingURL=readAllContributors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readAllContributors.js","names":[
|
|
1
|
+
{"version":3,"file":"readAllContributors.js","names":[],"sources":["../../src/options/readAllContributors.ts"],"sourcesContent":["import { TakeInput } from \"bingo\";\nimport { inputFromFileJSON } from \"input-from-file-json\";\n\nimport { startingOwnerContributions } from \"../data/contributions.js\";\nimport { inputFromOctokit } from \"../inputs/inputFromOctokit.js\";\nimport { AllContributorsData } from \"../types.js\";\n\nexport async function readAllContributors(take: TakeInput) {\n\tconst contributions = (await take(inputFromFileJSON, {\n\t\tfilePath: \".all-contributorsrc\",\n\t})) as AllContributorsData | Error;\n\n\tif (!(contributions instanceof Error)) {\n\t\treturn contributions.contributors;\n\t}\n\n\tconst user = (await take(inputFromOctokit, {\n\t\tendpoint: \"GET /user\",\n\t})) as\n\t\t| undefined\n\t\t| { avatar_url: string; blog: string; login: string; name: string };\n\n\treturn (\n\t\tuser && [\n\t\t\t{\n\t\t\t\tavatar_url: user.avatar_url,\n\t\t\t\tcontributions: startingOwnerContributions,\n\t\t\t\tlogin: user.login,\n\t\t\t\tname: user.name,\n\t\t\t\tprofile: user.blog,\n\t\t\t},\n\t\t]\n\t);\n}\n"],"mappings":";;;;;AAOA,eAAsB,oBAAoB,MAAiB;CAC1D,MAAM,gBAAiB,MAAM,KAAK,mBAAmB,EACpD,UAAU,uBACV,CAAC;AAEF,KAAI,EAAE,yBAAyB,OAC9B,QAAO,cAAc;CAGtB,MAAM,OAAQ,MAAM,KAAK,kBAAkB,EAC1C,UAAU,aACV,CAAC;AAIF,QACC,QAAQ,CACP;EACC,YAAY,KAAK;EACjB,eAAe;EACf,OAAO,KAAK;EACZ,MAAM,KAAK;EACX,SAAS,KAAK;EACd,CACD"}
|
|
@@ -5,8 +5,6 @@ import { ExecaError, Result } from "execa";
|
|
|
5
5
|
declare function readAuthor(getPackageAuthor: () => Promise<PackageAuthor>, getNpmDefaults: () => Promise<undefined | {
|
|
6
6
|
name?: string;
|
|
7
7
|
}>, getGitUser: () => Promise<ExecaError | Result | undefined>, owner: string | undefined): Promise<string | undefined>;
|
|
8
|
-
//# sourceMappingURL=readAuthor.d.ts.map
|
|
9
|
-
|
|
10
8
|
//#endregion
|
|
11
9
|
export { readAuthor };
|
|
12
10
|
//# sourceMappingURL=readAuthor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readAuthor.js","names":[
|
|
1
|
+
{"version":3,"file":"readAuthor.js","names":[],"sources":["../../src/options/readAuthor.ts"],"sourcesContent":["import { ExecaError, Result } from \"execa\";\n\nimport { PackageAuthor } from \"./readPackageAuthor.js\";\n\nexport async function readAuthor(\n\tgetPackageAuthor: () => Promise<PackageAuthor>,\n\tgetNpmDefaults: () => Promise<undefined | { name?: string }>,\n\tgetGitUser: () => Promise<ExecaError | Result | undefined>,\n\towner: string | undefined,\n) {\n\treturn (\n\t\t(await getPackageAuthor()).name ??\n\t\t(await getNpmDefaults())?.name ??\n\t\t(await getGitUser())?.stdout?.toString() ??\n\t\towner\n\t);\n}\n"],"mappings":";AAIA,eAAsB,WACrB,kBACA,gBACA,YACA,OACC;AACD,SACE,MAAM,kBAAkB,EAAE,SAC1B,MAAM,gBAAgB,GAAG,SACzB,MAAM,YAAY,GAAG,QAAQ,UAAU,IACxC"}
|
package/lib/options/readBin.d.ts
CHANGED
|
@@ -2,8 +2,6 @@ import { PartialPackageData } from "../types.js";
|
|
|
2
2
|
|
|
3
3
|
//#region src/options/readBin.d.ts
|
|
4
4
|
declare function readBin(getPackageData: () => Promise<PartialPackageData>): Promise<string | Record<string, string> | undefined>;
|
|
5
|
-
//# sourceMappingURL=readBin.d.ts.map
|
|
6
|
-
|
|
7
5
|
//#endregion
|
|
8
6
|
export { readBin };
|
|
9
7
|
//# sourceMappingURL=readBin.d.ts.map
|