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
package/README.md
CHANGED
|
@@ -138,7 +138,7 @@ Thanks! 🎁
|
|
|
138
138
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/xl4624"><img src="https://avatars.githubusercontent.com/u/116298054?v=4?s=100" width="100px;" alt="Xiaomin Liu"/><br /><sub><b>Xiaomin Liu</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=xl4624" title="Code">💻</a></td>
|
|
139
139
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/cylewaitforit"><img src="https://avatars.githubusercontent.com/u/54253392?v=4?s=100" width="100px;" alt="cylewaitforit"/><br /><sub><b>cylewaitforit</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=cylewaitforit" title="Code">💻</a> <a href="#ideas-cylewaitforit" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
140
140
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/lcforbes"><img src="https://avatars.githubusercontent.com/u/42080532?v=4?s=100" width="100px;" alt="lcforbes"/><br /><sub><b>lcforbes</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3Alcforbes" title="Bug reports">🐛</a></td>
|
|
141
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/michaelfaith"><img src="https://avatars.githubusercontent.com/u/8071845?v=4?s=100" width="100px;" alt="michael faith"/><br /><sub><b>michael faith</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=michaelfaith" title="Code">💻</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3Amichaelfaith" title="Bug reports">🐛</a> <a href="#ideas-michaelfaith" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
141
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/michaelfaith"><img src="https://avatars.githubusercontent.com/u/8071845?v=4?s=100" width="100px;" alt="michael faith"/><br /><sub><b>michael faith</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=michaelfaith" title="Code">💻</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3Amichaelfaith" title="Bug reports">🐛</a> <a href="#ideas-michaelfaith" title="Ideas, Planning, & Feedback">🤔</a> <a href="#tool-michaelfaith" title="Tools">🔧</a></td>
|
|
142
142
|
</tr>
|
|
143
143
|
<tr>
|
|
144
144
|
<td align="center" valign="top" width="14.28%"><a href="http://nandertga.ddns.net"><img src="https://avatars.githubusercontent.com/u/65074195?v=4?s=100" width="100px;" alt="nandertga"/><br /><sub><b>nandertga</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=nandertga" title="Code">💻</a></td>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "node:module";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __exportAll = (all, no_symbols) => {
|
|
5
|
+
let target = {};
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { __exportAll };
|
package/lib/base.d.ts
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { BaseOptionsFor } from "bingo-stratum";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/base.d.ts
|
|
4
|
+
declare const base: import("bingo-stratum").Base<{
|
|
5
|
+
access: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"restricted">]>;
|
|
6
|
+
author: z.ZodOptional<z.ZodString>;
|
|
7
|
+
bin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
8
|
+
contributors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
|
+
avatar_url: z.ZodString;
|
|
10
|
+
contributions: z.ZodArray<z.ZodString, "many">;
|
|
11
|
+
login: z.ZodString;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
profile: z.ZodString;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
avatar_url: string;
|
|
16
|
+
contributions: string[];
|
|
17
|
+
login: string;
|
|
18
|
+
name: string;
|
|
19
|
+
profile: string;
|
|
20
|
+
}, {
|
|
21
|
+
avatar_url: string;
|
|
22
|
+
contributions: string[];
|
|
23
|
+
login: string;
|
|
24
|
+
name: string;
|
|
25
|
+
profile: string;
|
|
26
|
+
}>, "many">>;
|
|
27
|
+
description: z.ZodDefault<z.ZodString>;
|
|
28
|
+
directory: z.ZodString;
|
|
29
|
+
documentation: z.ZodObject<{
|
|
30
|
+
development: z.ZodOptional<z.ZodString>;
|
|
31
|
+
readme: z.ZodObject<{
|
|
32
|
+
additional: z.ZodOptional<z.ZodString>;
|
|
33
|
+
explainer: z.ZodOptional<z.ZodString>;
|
|
34
|
+
footnotes: z.ZodOptional<z.ZodString>;
|
|
35
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
additional?: string | undefined;
|
|
38
|
+
explainer?: string | undefined;
|
|
39
|
+
footnotes?: string | undefined;
|
|
40
|
+
usage?: string | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
additional?: string | undefined;
|
|
43
|
+
explainer?: string | undefined;
|
|
44
|
+
footnotes?: string | undefined;
|
|
45
|
+
usage?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
readme: {
|
|
49
|
+
additional?: string | undefined;
|
|
50
|
+
explainer?: string | undefined;
|
|
51
|
+
footnotes?: string | undefined;
|
|
52
|
+
usage?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
development?: string | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
readme: {
|
|
57
|
+
additional?: string | undefined;
|
|
58
|
+
explainer?: string | undefined;
|
|
59
|
+
footnotes?: string | undefined;
|
|
60
|
+
usage?: string | undefined;
|
|
61
|
+
};
|
|
62
|
+
development?: string | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
email: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
65
|
+
github: z.ZodString;
|
|
66
|
+
npm: z.ZodString;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
github: string;
|
|
69
|
+
npm: string;
|
|
70
|
+
}, {
|
|
71
|
+
github: string;
|
|
72
|
+
npm: string;
|
|
73
|
+
}>]>, {
|
|
74
|
+
github: string;
|
|
75
|
+
npm: string;
|
|
76
|
+
}, string | {
|
|
77
|
+
github: string;
|
|
78
|
+
npm: string;
|
|
79
|
+
}>;
|
|
80
|
+
emoji: z.ZodOptional<z.ZodString>;
|
|
81
|
+
existingLabels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
82
|
+
color: z.ZodString;
|
|
83
|
+
description: z.ZodString;
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
name: string;
|
|
87
|
+
description: string;
|
|
88
|
+
color: string;
|
|
89
|
+
}, {
|
|
90
|
+
name: string;
|
|
91
|
+
description: string;
|
|
92
|
+
color: string;
|
|
93
|
+
}>, "many">>;
|
|
94
|
+
funding: z.ZodOptional<z.ZodString>;
|
|
95
|
+
guide: z.ZodOptional<z.ZodObject<{
|
|
96
|
+
href: z.ZodString;
|
|
97
|
+
title: z.ZodString;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
href: string;
|
|
100
|
+
title: string;
|
|
101
|
+
}, {
|
|
102
|
+
href: string;
|
|
103
|
+
title: string;
|
|
104
|
+
}>>;
|
|
105
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
106
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
alt: z.ZodString;
|
|
108
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
src: z.ZodString;
|
|
110
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
alt: string;
|
|
113
|
+
src: string;
|
|
114
|
+
height?: number | undefined;
|
|
115
|
+
width?: number | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
alt: string;
|
|
118
|
+
src: string;
|
|
119
|
+
height?: number | undefined;
|
|
120
|
+
width?: number | undefined;
|
|
121
|
+
}>>;
|
|
122
|
+
node: z.ZodObject<{
|
|
123
|
+
minimum: z.ZodString;
|
|
124
|
+
pinned: z.ZodOptional<z.ZodString>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
minimum: string;
|
|
127
|
+
pinned?: string | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
minimum: string;
|
|
130
|
+
pinned?: string | undefined;
|
|
131
|
+
}>;
|
|
132
|
+
owner: z.ZodString;
|
|
133
|
+
packageData: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
135
|
+
devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
136
|
+
peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
137
|
+
peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
138
|
+
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
dependencies?: Record<string, string> | undefined;
|
|
141
|
+
devDependencies?: Record<string, string> | undefined;
|
|
142
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
143
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
144
|
+
scripts?: Record<string, string | undefined> | undefined;
|
|
145
|
+
}, {
|
|
146
|
+
dependencies?: Record<string, string> | undefined;
|
|
147
|
+
devDependencies?: Record<string, string> | undefined;
|
|
148
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
149
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
150
|
+
scripts?: Record<string, string | undefined> | undefined;
|
|
151
|
+
}>>;
|
|
152
|
+
pnpm: z.ZodOptional<z.ZodString>;
|
|
153
|
+
repository: z.ZodString;
|
|
154
|
+
rulesetId: z.ZodOptional<z.ZodString>;
|
|
155
|
+
title: z.ZodString;
|
|
156
|
+
type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"commonjs">, z.ZodLiteral<"module">]>>;
|
|
157
|
+
version: z.ZodOptional<z.ZodString>;
|
|
158
|
+
words: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
159
|
+
workflowsVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
160
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
161
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
hash?: string | undefined;
|
|
164
|
+
pinned?: boolean | undefined;
|
|
165
|
+
}, {
|
|
166
|
+
hash?: string | undefined;
|
|
167
|
+
pinned?: boolean | undefined;
|
|
168
|
+
}>>>>;
|
|
169
|
+
}>;
|
|
170
|
+
type BaseOptions = BaseOptionsFor<typeof base> & {
|
|
171
|
+
preset?: string;
|
|
172
|
+
};
|
|
173
|
+
//#endregion
|
|
174
|
+
export { BaseOptions, base };
|
|
175
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","names":[],"sources":["../src/base.ts"],"mappings":";;;cA0Ca,8BAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAyTL,cAAc,sBAAsB;EAAU"}
|
package/lib/base.js
CHANGED
|
@@ -38,7 +38,6 @@ import { inputFromFile } from "input-from-file";
|
|
|
38
38
|
import { inputFromScript } from "input-from-script";
|
|
39
39
|
import lazyValue from "lazy-value";
|
|
40
40
|
import { z } from "zod";
|
|
41
|
-
|
|
42
41
|
//#region src/base.ts
|
|
43
42
|
const base = createBase({
|
|
44
43
|
options: {
|
|
@@ -157,6 +156,7 @@ const base = createBase({
|
|
|
157
156
|
};
|
|
158
157
|
}
|
|
159
158
|
});
|
|
160
|
-
|
|
161
159
|
//#endregion
|
|
162
|
-
export { base };
|
|
160
|
+
export { base };
|
|
161
|
+
|
|
162
|
+
//# sourceMappingURL=base.js.map
|
package/lib/base.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","names":[],"sources":["../src/base.ts"],"sourcesContent":["import { BaseOptionsFor, createBase } from \"bingo-stratum\";\nimport { inputFromFile } from \"input-from-file\";\nimport { inputFromScript } from \"input-from-script\";\nimport lazyValue from \"lazy-value\";\nimport { z } from \"zod\";\n\nimport { readAccess } from \"./options/readAccess.js\";\nimport { readAllContributors } from \"./options/readAllContributors.js\";\nimport { readAuthor } from \"./options/readAuthor.js\";\nimport { readBin } from \"./options/readBin.js\";\nimport { readDescription } from \"./options/readDescription.js\";\nimport { readDevelopmentDocumentation } from \"./options/readDevelopmentDocumentation.js\";\nimport { readDocumentation } from \"./options/readDocumentation.js\";\nimport { readEmailFromCodeOfConduct } from \"./options/readEmailFromCodeOfConduct.js\";\nimport { readEmailFromGit } from \"./options/readEmailFromGit.js\";\nimport { readEmailFromNpm } from \"./options/readEmailFromNpm.js\";\nimport { readEmails } from \"./options/readEmails.js\";\nimport { readEmoji } from \"./options/readEmoji.js\";\nimport { readExistingLabels } from \"./options/readExistingLabels.js\";\nimport { readFileSafe } from \"./options/readFileSafe.js\";\nimport { readFunding } from \"./options/readFunding.js\";\nimport { readGitDefaults } from \"./options/readGitDefaults.js\";\nimport { readGuide } from \"./options/readGuide.js\";\nimport { readKeywords } from \"./options/readKeywords.js\";\nimport { readLogo } from \"./options/readLogo.js\";\nimport { readNode } from \"./options/readNode.js\";\nimport { readNpmDefaults } from \"./options/readNpmDefaults.js\";\nimport { readOwner } from \"./options/readOwner.js\";\nimport { readPackageAuthor } from \"./options/readPackageAuthor.js\";\nimport { readPackageData } from \"./options/readPackageData.js\";\nimport { readPnpm } from \"./options/readPnpm.js\";\nimport { readReadmeAdditional } from \"./options/readReadmeAdditional.js\";\nimport { readReadmeExplainer } from \"./options/readReadmeExplainer.js\";\nimport { readReadmeFootnotes } from \"./options/readReadmeFootnotes.js\";\nimport { readReadmeUsage } from \"./options/readReadmeUsage.js\";\nimport { readRepository } from \"./options/readRepository.js\";\nimport { readRulesetId } from \"./options/readRulesetId.js\";\nimport { readTitle } from \"./options/readTitle.js\";\nimport { readWords } from \"./options/readWords.js\";\nimport { readWorkflowsVersions } from \"./options/readWorkflowsVersions.js\";\nimport { zContributor, zDocumentation, zWorkflowsVersions } from \"./schemas.js\";\n\nexport const base = createBase({\n\toptions: {\n\t\taccess: z\n\t\t\t.union([z.literal(\"public\"), z.literal(\"restricted\")])\n\t\t\t.describe(\"which `npm publish --access` to release npm packages with\"),\n\t\tauthor: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"username on npm to publish packages under\"),\n\t\tbin: z\n\t\t\t.union([z.string(), z.record(z.string())])\n\t\t\t.optional()\n\t\t\t.describe('value to set in `package.json`\\'s `\"bin\"` property'),\n\t\tcontributors: z\n\t\t\t.array(zContributor)\n\t\t\t.optional()\n\t\t\t.describe(\"AllContributors contributors to store in .all-contributorsrc\"),\n\t\tdescription: z\n\t\t\t.string()\n\t\t\t.default(\"A very lovely package. Hooray!\")\n\t\t\t.describe(\"'Sentence case.' description of the repository\"),\n\t\tdirectory: z.string().describe(\"Directory to create the repository in\"),\n\t\tdocumentation: zDocumentation.describe(\n\t\t\t\"additional docs to add to .md files\",\n\t\t),\n\t\temail: z\n\t\t\t.union([\n\t\t\t\tz.string(),\n\t\t\t\tz.object({\n\t\t\t\t\tgithub: z.string(),\n\t\t\t\t\tnpm: z.string(),\n\t\t\t\t}),\n\t\t\t])\n\t\t\t// TODO: Test this? Is it still working?\n\t\t\t// https://github.com/JoshuaKGoldberg/create-typescript-app/issues/1991\n\t\t\t.transform((email) =>\n\t\t\t\ttypeof email === \"string\" ? { github: email, npm: email } : email,\n\t\t\t)\n\t\t\t.describe(\n\t\t\t\t\"email address to be listed as the point of contact in docs and packages\",\n\t\t\t),\n\t\temoji: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"decorative emoji to use in descriptions and docs\"),\n\t\texistingLabels: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tcolor: z.string(),\n\t\t\t\t\tdescription: z.string(),\n\t\t\t\t\tname: z.string(),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.optional()\n\t\t\t.describe(\"existing labels from the GitHub repository\"),\n\t\tfunding: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"GitHub organization or username to mention in `funding.yaml`\"),\n\t\tguide: z\n\t\t\t.object({\n\t\t\t\thref: z.string(),\n\t\t\t\ttitle: z.string(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\n\t\t\t\t\"link to a contribution guide to place at the top of development docs\",\n\t\t\t),\n\t\tkeywords: z\n\t\t\t.array(z.string())\n\t\t\t.optional()\n\t\t\t.describe(\"any number of keywords to include in `package.json`\"),\n\t\tlogo: z\n\t\t\t.object({\n\t\t\t\talt: z.string(),\n\t\t\t\theight: z.number().optional(),\n\t\t\t\tsrc: z.string(),\n\t\t\t\twidth: z.number().optional(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\n\t\t\t\t\"local image file and alt text to display near the top of the README.md\",\n\t\t\t),\n\t\tnode: z\n\t\t\t.object({\n\t\t\t\tminimum: z.string(),\n\t\t\t\tpinned: z.string().optional(),\n\t\t\t})\n\t\t\t.describe(\"Node.js engine version(s) to pin and require a minimum of\"),\n\t\towner: z.string().describe(\"organization or user owning the repository\"),\n\t\tpackageData: z\n\t\t\t.object({\n\t\t\t\tdependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tdevDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tpeerDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tpeerDependenciesMeta: z.record(z.unknown()).optional(),\n\t\t\t\tscripts: z.record(z.string(), z.string().optional()).optional(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\"additional properties to include in `package.json`\"),\n\t\tpnpm: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"pnpm version for package.json's packageManager field\"),\n\t\trepository: z\n\t\t\t.string()\n\t\t\t.describe(\"'kebab-case' or 'PascalCase' title of the repository\"),\n\t\trulesetId: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"GitHub branch ruleset ID for main branch protections\"),\n\t\ttitle: z.string().describe(\"'Title Case' title for the repository\"),\n\t\ttype: z\n\t\t\t.union([z.literal(\"commonjs\"), z.literal(\"module\")])\n\t\t\t.optional()\n\t\t\t.describe(\"package.json modules type\"),\n\t\tversion: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"package version to publish as and store in `package.json`\"),\n\t\twords: z\n\t\t\t.array(z.string())\n\t\t\t.optional()\n\t\t\t.describe(\"additional words to add to the CSpell dictionary\"),\n\t\tworkflowsVersions: zWorkflowsVersions\n\t\t\t.optional()\n\t\t\t.describe(\"existing versions of GitHub Actions workflows used\"),\n\t},\n\tprepare({ options, take }) {\n\t\tconst getAccess = lazyValue(async () => await readAccess(getPackageData));\n\n\t\tconst getAllContributors = lazyValue(\n\t\t\tasync () => await readAllContributors(take),\n\t\t);\n\n\t\tconst getAuthor = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readAuthor(\n\t\t\t\t\tgetPackageAuthor,\n\t\t\t\t\tgetNpmDefaults,\n\t\t\t\t\tgetGitUser,\n\t\t\t\t\toptions.owner,\n\t\t\t\t),\n\t\t);\n\n\t\tconst getBin = lazyValue(async () => await readBin(getPackageData));\n\n\t\tconst getEmoji = lazyValue(async () => await readEmoji(getDescription));\n\n\t\tconst getDescription = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readDescription(getPackageData, getReadme, getRepository),\n\t\t);\n\n\t\tconst getDevelopmentDocumentation = lazyValue(\n\t\t\tasync () => await readDevelopmentDocumentation(take),\n\t\t);\n\n\t\tconst getDocumentation = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readDocumentation(\n\t\t\t\t\tgetDevelopmentDocumentation,\n\t\t\t\t\tgetReadmeAdditional,\n\t\t\t\t\tgetReadmeExplainer,\n\t\t\t\t\tgetReadmeFootnotes,\n\t\t\t\t\tgetReadmeUsage,\n\t\t\t\t),\n\t\t);\n\n\t\tconst getEmail = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readEmails(\n\t\t\t\t\tgetEmailFromCodeOfConduct,\n\t\t\t\t\tgetEmailFromGit,\n\t\t\t\t\tgetEmailFromNpm,\n\t\t\t\t\tgetPackageAuthor,\n\t\t\t\t),\n\t\t);\n\n\t\tconst getKeywords = lazyValue(\n\t\t\tasync () => await readKeywords(getPackageData),\n\t\t);\n\n\t\tconst getEmailFromCodeOfConduct = lazyValue(\n\t\t\tasync () => await readEmailFromCodeOfConduct(take),\n\t\t);\n\n\t\tconst getEmailFromGit = lazyValue(async () => await readEmailFromGit(take));\n\n\t\tconst getEmailFromNpm = lazyValue(\n\t\t\tasync () => await readEmailFromNpm(getNpmDefaults, getPackageAuthor),\n\t\t);\n\n\t\tconst getExistingLabels = lazyValue(\n\t\t\tasync () => await readExistingLabels(take, getOwner, getRepository),\n\t\t);\n\n\t\tconst getFunding = lazyValue(async () => await readFunding(take));\n\n\t\tconst getGitDefaults = lazyValue(async () => await readGitDefaults(take));\n\n\t\tconst getGitUser = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait take(inputFromScript, { command: \"git config user.name\" }),\n\t\t);\n\n\t\tconst getGuide = lazyValue(async () => await readGuide(take));\n\n\t\tconst getLogo = lazyValue(async () => await readLogo(getReadme));\n\n\t\tconst getPackageData = lazyValue(async () => await readPackageData(take));\n\n\t\tconst getNode = lazyValue(\n\t\t\tasync () => await readNode(getNvmrc, getPackageData),\n\t\t);\n\n\t\tconst getNpmDefaults = lazyValue(\n\t\t\tasync () => await readNpmDefaults(getNpmWhoami),\n\t\t);\n\n\t\tconst getNpmWhoami = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait take(inputFromScript, { command: \"npm whoami --offline\" }),\n\t\t);\n\n\t\tconst getNvmrc = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait take(inputFromFile, {\n\t\t\t\t\tfilePath: \".nvmrc\",\n\t\t\t\t}),\n\t\t);\n\n\t\tconst getOwner = lazyValue(\n\t\t\tasync () => await readOwner(take, getGitDefaults, getPackageAuthor),\n\t\t);\n\n\t\tconst getPackageAuthor = lazyValue(\n\t\t\tasync () => await readPackageAuthor(getPackageData),\n\t\t);\n\n\t\tconst getPnpm = lazyValue(async () => await readPnpm(getPackageData));\n\n\t\tconst getReadme = lazyValue(\n\t\t\tasync () => await readFileSafe(\"README.md\", \"\"),\n\t\t);\n\n\t\tconst getReadmeAdditional = lazyValue(\n\t\t\tasync () => await readReadmeAdditional(getReadme),\n\t\t);\n\n\t\tconst getReadmeExplainer = lazyValue(\n\t\t\tasync () => await readReadmeExplainer(getReadme),\n\t\t);\n\n\t\tconst getReadmeFootnotes = lazyValue(\n\t\t\tasync () => await readReadmeFootnotes(getReadme),\n\t\t);\n\n\t\tconst getReadmeUsage = lazyValue(\n\t\t\tasync () => await readReadmeUsage(getReadme),\n\t\t);\n\n\t\tconst getRepository = lazyValue(\n\t\t\tasync () => await readRepository(getGitDefaults, getPackageData, options),\n\t\t);\n\n\t\tconst getRulesetId = lazyValue(\n\t\t\tasync () => await readRulesetId(take, getOwner, getRepository),\n\t\t);\n\n\t\tconst getTitle = lazyValue(\n\t\t\tasync () => await readTitle(getReadme, getRepository),\n\t\t);\n\n\t\tconst getType = lazyValue(async () => (await getPackageData()).type);\n\n\t\tconst getVersion = lazyValue(async () => (await getPackageData()).version);\n\n\t\tconst getWords = lazyValue(async () => await readWords(take));\n\n\t\tconst getWorkflowData = lazyValue(\n\t\t\tasync () => await readWorkflowsVersions(take),\n\t\t);\n\n\t\treturn {\n\t\t\taccess: getAccess,\n\t\t\tauthor: getAuthor,\n\t\t\tbin: getBin,\n\t\t\tcontributors: getAllContributors,\n\t\t\tdescription: getDescription,\n\t\t\tdocumentation: getDocumentation,\n\t\t\temail: getEmail,\n\t\t\temoji: getEmoji,\n\t\t\texistingLabels: getExistingLabels,\n\t\t\tfunding: getFunding,\n\t\t\tguide: getGuide,\n\t\t\tkeywords: getKeywords,\n\t\t\tlogo: getLogo,\n\t\t\tnode: getNode,\n\t\t\towner: getOwner,\n\t\t\tpackageData: getPackageData,\n\t\t\tpnpm: getPnpm,\n\t\t\trepository: getRepository,\n\t\t\trulesetId: getRulesetId,\n\t\t\ttitle: getTitle,\n\t\t\ttype: getType,\n\t\t\tversion: getVersion,\n\t\t\twords: getWords,\n\t\t\tworkflowsVersions: getWorkflowData,\n\t\t};\n\t},\n});\n\nexport type BaseOptions = BaseOptionsFor<typeof base> & { preset?: string };\n"],"mappings":";;;;;;;;;;;;;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AAQ;GACR,QAAQ;GACR,KAAK;GACL,cAAc;GACd,aAAa;GACb,eAAe;GACf,OAAO;GACP,OAAO;GACP,gBAAgB;GAChB,SAAS;GACT,OAAO;GACP,UAAU;GACV,MAAM;GACN,MAAM;GACN,OAAO;GACP,aAAa;GACb,MAAM;GACN,YAAY;GACZ,WArCoB,UACpB,YAAY,MAAM,cAAc,MAAM,UAAU,aAAa,CAoCvC;GACtB,OAlCgB,UAChB,YAAY,MAAM,UAAU,WAAW,aAAa,CAiCtC;GACd,MA/Be,UAAU,aAAa,MAAM,eAAe,EAAA,CAAG,IA+BlD;GACZ,SA9BkB,UAAU,aAAa,MAAM,eAAe,EAAA,CAAG,OA8B/C;GAClB,OA7BgB,UAAU,YAAY,MAAM,UAAU,IAAI,CA6B5C;GACd,mBA5BuB,UACvB,YAAY,MAAM,sBAAsB,IAAI,CA2BX;EAClC;CACD;AACD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WorkflowsVersions } from "../../schemas.js";
|
|
2
|
+
//#region src/blocks/actions/resolveUses.d.ts
|
|
3
|
+
declare function resolveUses(action: string, version: string, workflowsVersions?: WorkflowsVersions): string;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { resolveUses };
|
|
6
|
+
//# sourceMappingURL=resolveUses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveUses.d.ts","names":[],"sources":["../../../src/blocks/actions/resolveUses.ts"],"mappings":";;iBASgB,YACf,gBACA,iBACA,oBAAoB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CachedFactory } from "cached-factory";
|
|
2
2
|
import semver from "semver";
|
|
3
|
-
|
|
4
3
|
//#region src/blocks/actions/resolveUses.ts
|
|
5
4
|
const semverCoercions = new CachedFactory((version) => {
|
|
6
5
|
return semver.coerce(version)?.toString() ?? "0.0.0";
|
|
@@ -13,6 +12,7 @@ function resolveUses(action, version, workflowsVersions) {
|
|
|
13
12
|
const atBiggestVersion = workflowVersions[biggestVersion];
|
|
14
13
|
return atBiggestVersion.hash ? `${action}@${atBiggestVersion.hash} # ${biggestVersion}` : `${action}@${biggestVersion}`;
|
|
15
14
|
}
|
|
16
|
-
|
|
17
15
|
//#endregion
|
|
18
|
-
export { resolveUses };
|
|
16
|
+
export { resolveUses };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=resolveUses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveUses.js","names":[],"sources":["../../../src/blocks/actions/resolveUses.ts"],"sourcesContent":["import { CachedFactory } from \"cached-factory\";\nimport semver from \"semver\";\n\nimport { WorkflowsVersions } from \"../../schemas.js\";\n\nconst semverCoercions = new CachedFactory((version: string) => {\n\treturn semver.coerce(version)?.toString() ?? \"0.0.0\";\n});\n\nexport function resolveUses(\n\taction: string,\n\tversion: string,\n\tworkflowsVersions?: WorkflowsVersions,\n) {\n\tif (!workflowsVersions || !(action in workflowsVersions)) {\n\t\treturn `${action}@${version}`;\n\t}\n\n\tconst workflowVersions = workflowsVersions[action];\n\n\tconst biggestVersion = Object.keys(workflowVersions).reduce(\n\t\t(highestVersion, potentialVersion) =>\n\t\t\tsemver.gt(\n\t\t\t\tsemverCoercions.get(potentialVersion),\n\t\t\t\tsemverCoercions.get(highestVersion),\n\t\t\t)\n\t\t\t\t? potentialVersion\n\t\t\t\t: highestVersion,\n\t\tversion,\n\t);\n\n\tif (!(biggestVersion in workflowVersions)) {\n\t\treturn `${action}@${biggestVersion}`;\n\t}\n\n\tconst atBiggestVersion = workflowVersions[biggestVersion];\n\n\treturn atBiggestVersion.hash\n\t\t? `${action}@${atBiggestVersion.hash} # ${biggestVersion}`\n\t\t: `${action}@${biggestVersion}`;\n}\n"],"mappings":";;;AAKA,MAAM,kBAAkB,IAAI,eAAe,YAAoB;CAC9D,OAAO,OAAO,OAAO,OAAO,CAAC,EAAE,SAAS,KAAK;AAC9C,CAAC;AAED,SAAgB,YACf,QACA,SACA,mBACC;CACD,IAAI,CAAC,qBAAqB,EAAE,UAAU,oBACrC,OAAO,GAAG,OAAO,GAAG;CAGrB,MAAM,mBAAmB,kBAAkB;CAE3C,MAAM,iBAAiB,OAAO,KAAK,gBAAgB,CAAC,CAAC,QACnD,gBAAgB,qBAChB,OAAO,GACN,gBAAgB,IAAI,gBAAgB,GACpC,gBAAgB,IAAI,cAAc,CACnC,IACG,mBACA,gBACJ,OACD;CAEA,IAAI,EAAE,kBAAkB,mBACvB,OAAO,GAAG,OAAO,GAAG;CAGrB,MAAM,mBAAmB,iBAAiB;CAE1C,OAAO,iBAAiB,OACrB,GAAG,OAAO,GAAG,iBAAiB,KAAK,KAAK,mBACxC,GAAG,OAAO,GAAG;AACjB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { IntakeDirectory } from "bingo-fs";
|
|
3
|
+
//#region src/blocks/actions/steps.d.ts
|
|
4
|
+
declare const zActionStep: z.ZodIntersection<z.ZodObject<{
|
|
5
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6
|
+
if: z.ZodOptional<z.ZodString>;
|
|
7
|
+
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
env?: Record<string, string> | undefined;
|
|
10
|
+
if?: string | undefined;
|
|
11
|
+
with?: Record<string, string> | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
env?: Record<string, string> | undefined;
|
|
14
|
+
if?: string | undefined;
|
|
15
|
+
with?: Record<string, string> | undefined;
|
|
16
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
17
|
+
run: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
run: string;
|
|
20
|
+
}, {
|
|
21
|
+
run: string;
|
|
22
|
+
}>, z.ZodObject<{
|
|
23
|
+
uses: z.ZodString;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
uses: string;
|
|
26
|
+
}, {
|
|
27
|
+
uses: string;
|
|
28
|
+
}>]>>;
|
|
29
|
+
interface JobOrRunStep {
|
|
30
|
+
env?: Record<string, string>;
|
|
31
|
+
uses?: unknown;
|
|
32
|
+
with?: Record<string, string>;
|
|
33
|
+
}
|
|
34
|
+
declare function intakeFileYamlSteps(files: IntakeDirectory, filePath: string[], ymlPath: string[]): JobOrRunStep[] | undefined;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { JobOrRunStep, intakeFileYamlSteps, zActionStep };
|
|
37
|
+
//# sourceMappingURL=steps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.d.ts","names":[],"sources":["../../../src/blocks/actions/steps.ts"],"mappings":";;;cAMa,aAAW,EAAA,gBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;UASP;EAChB,MAAM;EACN;EACA,OAAO;;iBAGQ,oBACf,OAAO,iBACP,oBACA,oBAAiB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { intakeFileAsYaml } from "../intake/intakeFileAsYaml.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import _ from "lodash";
|
|
4
|
-
|
|
5
4
|
//#region src/blocks/actions/steps.ts
|
|
6
5
|
const zActionStep = z.intersection(z.object({
|
|
7
6
|
env: z.record(z.string(), z.string()).optional(),
|
|
@@ -15,6 +14,7 @@ function intakeFileYamlSteps(files, filePath, ymlPath) {
|
|
|
15
14
|
if (!steps || !Array.isArray(steps)) return;
|
|
16
15
|
return steps;
|
|
17
16
|
}
|
|
18
|
-
|
|
19
17
|
//#endregion
|
|
20
|
-
export { intakeFileYamlSteps, zActionStep };
|
|
18
|
+
export { intakeFileYamlSteps, zActionStep };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=steps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.js","names":[],"sources":["../../../src/blocks/actions/steps.ts"],"sourcesContent":["import { IntakeDirectory } from \"bingo-fs\";\nimport _ from \"lodash\";\nimport { z } from \"zod\";\n\nimport { intakeFileAsYaml } from \"../intake/intakeFileAsYaml.js\";\n\nexport const zActionStep = z.intersection(\n\tz.object({\n\t\tenv: z.record(z.string(), z.string()).optional(),\n\t\tif: z.string().optional(),\n\t\twith: z.record(z.string(), z.string()).optional(),\n\t}),\n\tz.union([z.object({ run: z.string() }), z.object({ uses: z.string() })]),\n);\n\nexport interface JobOrRunStep {\n\tenv?: Record<string, string>;\n\tuses?: unknown;\n\twith?: Record<string, string>;\n}\n\nexport function intakeFileYamlSteps(\n\tfiles: IntakeDirectory,\n\tfilePath: string[],\n\tymlPath: string[],\n) {\n\tconst actionYml = intakeFileAsYaml(files, filePath);\n\tif (!actionYml) {\n\t\treturn undefined;\n\t}\n\n\tconst steps = _.get(actionYml, ymlPath) as JobOrRunStep[] | undefined;\n\tif (!steps || !Array.isArray(steps)) {\n\t\treturn undefined;\n\t}\n\n\treturn steps;\n}\n"],"mappings":";;;;AAMA,MAAa,cAAc,EAAE,aAC5B,EAAE,OAAO;CACR,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;CAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS;CACxB,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;AACjD,CAAC,GACD,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CACxE;AAQA,SAAgB,oBACf,OACA,UACA,SACC;CACD,MAAM,YAAY,iBAAiB,OAAO,QAAQ;CAClD,IAAI,CAAC,WACJ;CAGD,MAAM,QAAQ,EAAE,IAAI,WAAW,OAAO;CACtC,IAAI,CAAC,SAAS,CAAC,MAAM,QAAQ,KAAK,GACjC;CAGD,OAAO;AACR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPrimaryBin.d.ts","names":[],"sources":["../../../src/blocks/bin/getPrimaryBin.ts"],"mappings":";iBAAgB,cACf,KAAK,yDACL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPrimaryBin.js","names":[],"sources":["../../../src/blocks/bin/getPrimaryBin.ts"],"sourcesContent":["export function getPrimaryBin(\n\tbin: Record<string, string | undefined> | string | undefined,\n\trepository: string,\n) {\n\treturn typeof bin === \"object\" ? bin[repository] : bin;\n}\n"],"mappings":";AAAA,SAAgB,cACf,KACA,YACC;CACD,OAAO,OAAO,QAAQ,WAAW,IAAI,cAAc;AACpD"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//#region src/blocks/blockAllContributors.d.ts
|
|
2
|
+
declare const blockAllContributors: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
|
+
access: "public" | "restricted";
|
|
4
|
+
description: string;
|
|
5
|
+
directory: string;
|
|
6
|
+
documentation: {
|
|
7
|
+
readme: {
|
|
8
|
+
additional?: string | undefined;
|
|
9
|
+
explainer?: string | undefined;
|
|
10
|
+
footnotes?: string | undefined;
|
|
11
|
+
usage?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
development?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
email: {
|
|
16
|
+
github: string;
|
|
17
|
+
npm: string;
|
|
18
|
+
};
|
|
19
|
+
title: string;
|
|
20
|
+
node: {
|
|
21
|
+
minimum: string;
|
|
22
|
+
pinned?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
owner: string;
|
|
25
|
+
repository: string;
|
|
26
|
+
type?: "commonjs" | "module" | undefined;
|
|
27
|
+
author?: string | undefined;
|
|
28
|
+
bin?: string | Record<string, string> | undefined;
|
|
29
|
+
contributors?: {
|
|
30
|
+
avatar_url: string;
|
|
31
|
+
contributions: string[];
|
|
32
|
+
login: string;
|
|
33
|
+
name: string;
|
|
34
|
+
profile: string;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
emoji?: string | undefined;
|
|
37
|
+
existingLabels?: {
|
|
38
|
+
name: string;
|
|
39
|
+
description: string;
|
|
40
|
+
color: string;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
funding?: string | undefined;
|
|
43
|
+
guide?: {
|
|
44
|
+
href: string;
|
|
45
|
+
title: string;
|
|
46
|
+
} | undefined;
|
|
47
|
+
keywords?: string[] | undefined;
|
|
48
|
+
logo?: {
|
|
49
|
+
alt: string;
|
|
50
|
+
src: string;
|
|
51
|
+
height?: number | undefined;
|
|
52
|
+
width?: number | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
packageData?: {
|
|
55
|
+
dependencies?: Record<string, string> | undefined;
|
|
56
|
+
devDependencies?: Record<string, string> | undefined;
|
|
57
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
58
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
59
|
+
scripts?: Record<string, string | undefined> | undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
pnpm?: string | undefined;
|
|
62
|
+
rulesetId?: string | undefined;
|
|
63
|
+
version?: string | undefined;
|
|
64
|
+
words?: string[] | undefined;
|
|
65
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
66
|
+
hash?: string | undefined;
|
|
67
|
+
pinned?: boolean | undefined;
|
|
68
|
+
}>> | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { blockAllContributors };
|
|
72
|
+
//# sourceMappingURL=blockAllContributors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockAllContributors.d.ts","names":[],"sources":["../../src/blocks/blockAllContributors.ts"],"mappings":";cAYa,8CAAoB"}
|
|
@@ -7,7 +7,6 @@ import { blockREADME } from "./blockREADME.js";
|
|
|
7
7
|
import { blockPrettier } from "./blockPrettier.js";
|
|
8
8
|
import { blockRepositorySecrets } from "./blockRepositorySecrets.js";
|
|
9
9
|
import _ from "lodash";
|
|
10
|
-
|
|
11
10
|
//#region src/blocks/blockAllContributors.ts
|
|
12
11
|
const blockAllContributors = base.createBlock({
|
|
13
12
|
about: { name: "AllContributors" },
|
|
@@ -125,6 +124,7 @@ function printContributorCell(contributor) {
|
|
|
125
124
|
`</td>`
|
|
126
125
|
].join("");
|
|
127
126
|
}
|
|
128
|
-
|
|
129
127
|
//#endregion
|
|
130
|
-
export { blockAllContributors };
|
|
128
|
+
export { blockAllContributors };
|
|
129
|
+
|
|
130
|
+
//# sourceMappingURL=blockAllContributors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockAllContributors.js","names":[],"sources":["../../src/blocks/blockAllContributors.ts"],"sourcesContent":["import _ from \"lodash\";\n\nimport { base } from \"../base.js\";\nimport { startingOwnerContributions } from \"../data/contributions.js\";\nimport { Contributor } from \"../schemas.js\";\nimport { resolveUses } from \"./actions/resolveUses.js\";\nimport { blockPrettier } from \"./blockPrettier.js\";\nimport { blockREADME } from \"./blockREADME.js\";\nimport { blockRepositorySecrets } from \"./blockRepositorySecrets.js\";\nimport { createSoloWorkflowFile } from \"./files/createSoloWorkflowFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockAllContributors = base.createBlock({\n\tabout: {\n\t\tname: \"AllContributors\",\n\t},\n\tproduce({ options }) {\n\t\tconst contributions = options.contributors?.length;\n\t\tconst ownerContributions = Array.from(\n\t\t\tnew Set(\n\t\t\t\t[\n\t\t\t\t\toptions.contributors?.find(\n\t\t\t\t\t\t(contributor) =>\n\t\t\t\t\t\t\tcontributor.login.toLowerCase() === options.owner.toLowerCase(),\n\t\t\t\t\t)?.contributions,\n\t\t\t\t\tstartingOwnerContributions,\n\t\t\t\t]\n\t\t\t\t\t.filter(Boolean)\n\t\t\t\t\t.flat(),\n\t\t\t),\n\t\t);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockPrettier({\n\t\t\t\t\tignores: [\"/.all-contributorsrc\"],\n\t\t\t\t}),\n\t\t\t\tblockREADME({\n\t\t\t\t\tbadges: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\talt: `👪 All Contributors: ${contributions}`,\n\t\t\t\t\t\t\tcomments: {\n\t\t\t\t\t\t\t\tafter: `\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\\t<!-- prettier-ignore-end -->`,\n\t\t\t\t\t\t\t\tbefore: `<!-- prettier-ignore-start -->\n\\t<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n\\t`,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\thref: \"#contributors\",\n\t\t\t\t\t\t\tsrc: `https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-${contributions}-21bb42.svg`,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\tsections: options.contributors\n\t\t\t\t\t\t? [printAllContributorsTable(options.contributors)]\n\t\t\t\t\t\t: undefined,\n\t\t\t\t}),\n\t\t\t\tblockRepositorySecrets({\n\t\t\t\t\tsecrets: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdescription: \"a GitHub PAT with repo and workflow permissions\",\n\t\t\t\t\t\t\tname: \"ACCESS_TOKEN\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".all-contributorsrc\": JSON.stringify(\n\t\t\t\t\t{\n\t\t\t\t\t\tbadgeTemplate:\n\t\t\t\t\t\t\t'\t<a href=\"#contributors\" target=\"_blank\"><img alt=\"👪 All Contributors: <%= contributors.length %>\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\" /></a>',\n\t\t\t\t\t\tcommitType: \"docs\",\n\t\t\t\t\t\tcontributors: options.contributors ?? [],\n\t\t\t\t\t\tcontributorsPerLine: 7,\n\t\t\t\t\t\tcontributorsSortAlphabetically: true,\n\t\t\t\t\t\tfiles: [\"README.md\"],\n\t\t\t\t\t\tprojectName: options.repository,\n\t\t\t\t\t\tprojectOwner: options.owner,\n\t\t\t\t\t\trepoType: \"github\",\n\t\t\t\t\t},\n\t\t\t\t\tnull,\n\t\t\t\t\t2,\n\t\t\t\t),\n\t\t\t\t\".github\": {\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"contributors.yaml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tname: \"Contributors\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tpush: {\n\t\t\t\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\"actions/checkout\",\n\t\t\t\t\t\t\t\t\t\t\"v4\",\n\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\twith: { \"fetch-depth\": 0 },\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{ uses: \"./.github/actions/prepare\" },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tenv: { GITHUB_TOKEN: \"${{ secrets.ACCESS_TOKEN }}\" },\n\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\"JoshuaKGoldberg/all-contributors-auto-action\",\n\t\t\t\t\t\t\t\t\t\t\"v0.5.0\",\n\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t}),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\n\t\t\t\t\t\t`pnpx all-contributors-cli@6.23.1 add ${options.owner} ${ownerContributions.join(\",\")}`,\n\t\t\t\t\t],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n\nfunction printAllContributorsTable(contributors: Contributor[]) {\n\treturn [\n\t\t`## Contributors`,\n\t\t``,\n\t\t`<!-- spellchecker: disable -->`,\n\t\t`<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->`,\n\t\t`<!-- prettier-ignore-start -->`,\n\t\t`<table>`,\n\t\t` <tbody>`,\n\t\t` <tr>`,\n\t\t// This intentionally uses the same sort as all-contributors-cli:\n\t\t// https://github.com/all-contributors/cli/blob/74bc388bd6f0ae2658e6495e9d3781d737438a97/src/generate/index.js#L76\n\t\t..._.sortBy(contributors, \"name\").flatMap((contributor, i) => {\n\t\t\tconst row = printContributorCell(contributor);\n\n\t\t\treturn i && i % 7 === 0 ? [` </tr>`, ` <tr>`, row] : [row];\n\t\t}),\n\t\t` </tr>`,\n\t\t` </tbody>`,\n\t\t`</table>`,\n\t\t``,\n\t\t`<!-- prettier-ignore-end -->`,\n\t\t``,\n\t\t`<!-- ALL-CONTRIBUTORS-LIST:END -->`,\n\t\t`<!-- spellchecker: enable -->`,\n\t].join(\"\\n\");\n}\n\nfunction printContributorCell(contributor: Contributor) {\n\treturn [\n\t\t` <td align=\"center\" valign=\"top\" width=\"14.28%\">`,\n\t\t`<a href=\"${contributor.profile}\">`,\n\t\t`<img src=\"${contributor.avatar_url}?s=100\" width=\"100px;\" alt=\"${contributor.name}\"/>`,\n\t\t`<br />`,\n\t\t`<sub><b>${contributor.name}</b></sub></a><br />`,\n\t\tcontributor.contributions\n\t\t\t.map((contribution) => {\n\t\t\t\tswitch (contribution) {\n\t\t\t\t\tcase \"bug\":\n\t\t\t\t\t\treturn `<a href=\"https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3A${contributor.login}\" title=\"Bug reports\">🐛</a>`;\n\t\t\t\t\tcase \"code\":\n\t\t\t\t\t\treturn `<a href=\"https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}\" title=\"Code\">💻</a>`;\n\t\t\t\t\tcase \"design\":\n\t\t\t\t\t\treturn `<a href=\"#design-${contributor.login}\" title=\"Design\">🎨</a>`;\n\t\t\t\t\tcase \"doc\":\n\t\t\t\t\t\treturn `<a href=\"https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}\" title=\"Documentation\">📖</a>`;\n\t\t\t\t\tcase \"ideas\":\n\t\t\t\t\t\treturn `<a href=\"#ideas-${contributor.login}\" title=\"Ideas, Planning, & Feedback\">🤔</a>`;\n\t\t\t\t\tcase \"infra\":\n\t\t\t\t\t\treturn `<a href=\"#infra-${contributor.login}\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">🚇</a>`;\n\t\t\t\t\tcase \"maintenance\":\n\t\t\t\t\t\treturn `<a href=\"#maintenance-${contributor.login}\" title=\"Maintenance\">🚧</a>`;\n\t\t\t\t\tcase \"review\":\n\t\t\t\t\t\treturn `<a href=\"https://github.com/JoshuaKGoldberg/create-typescript-app/pulls?q=is%3Apr+reviewed-by%3A${contributor.login}\" title=\"Reviewed Pull Requests\">👀</a>`;\n\t\t\t\t\tcase \"test\":\n\t\t\t\t\t\treturn `<a href=\"https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}\" title=\"Tests\">⚠️</a>`;\n\t\t\t\t\tcase \"tool\":\n\t\t\t\t\t\treturn `<a href=\"#tool-${contributor.login}\" title=\"Tools\">🔧</a>`;\n\t\t\t\t}\n\t\t\t})\n\t\t\t.join(\" \"),\n\t\t`</td>`,\n\t].join(\"\");\n}\n"],"mappings":";;;;;;;;;;AAYA,MAAa,uBAAuB,KAAK,YAAY;CACpD,OAAO,EACN,MAAM,kBACP;CACA,QAAQ,EAAE,WAAW;EACpB,MAAM,gBAAgB,QAAQ,cAAc;EAC5C,MAAM,qBAAqB,MAAM,KAChC,IAAI,IACH,CAC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A6B;CAC/D,OAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA,GAAG,EAAE,OAAO,cAAc,MAAM,CAAC,CAAC,SAAS,aAAa,MAAM;GAC7D,MAAM,MAAM,qBAAqB,WAAW;GAE5C,OAAO,KAAK,IAAI,MAAM,IAAI;IAAC;IAAa;IAAY;GAAG,IAAI,CAAC,GAAG;EAChE,CAAC;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,CAAC,CAAC,KAAK,IAAI;AACZ;AAEA,SAAS,qBAAqB,aAA0B;CACvD,OAAO;EACN;EACA,YAAY,YAAY,QAAQ;EAChC,aAAa,YAAY,WAAW,8BAA8B,YAAY,KAAK;EACnF;EACA,WAAW,YAAY,KAAK;EAC5B,YAAY,cACV,KAAK,iBAAiB;GACtB,QAAQ,cAAR;IACC,KAAK,OACJ,OAAO,uFAAuF,YAAY,MAAM;IACjH,KAAK,QACJ,OAAO,oFAAoF,YAAY,MAAM;IAC9G,KAAK,UACJ,OAAO,oBAAoB,YAAY,MAAM;IAC9C,KAAK,OACJ,OAAO,oFAAoF,YAAY,MAAM;IAC9G,KAAK,SACJ,OAAO,mBAAmB,YAAY,MAAM;IAC7C,KAAK,SACJ,OAAO,mBAAmB,YAAY,MAAM;IAC7C,KAAK,eACJ,OAAO,yBAAyB,YAAY,MAAM;IACnD,KAAK,UACJ,OAAO,mGAAmG,YAAY,MAAM;IAC7H,KAAK,QACJ,OAAO,oFAAoF,YAAY,MAAM;IAC9G,KAAK,QACJ,OAAO,kBAAkB,YAAY,MAAM;GAC7C;EACD,CAAC,CAAC,CACD,KAAK,GAAG;EACV;CACD,CAAC,CAAC,KAAK,EAAE;AACV"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//#region src/blocks/blockAreTheTypesWrong.d.ts
|
|
2
|
+
declare const blockAreTheTypesWrong: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
|
+
access: "public" | "restricted";
|
|
4
|
+
description: string;
|
|
5
|
+
directory: string;
|
|
6
|
+
documentation: {
|
|
7
|
+
readme: {
|
|
8
|
+
additional?: string | undefined;
|
|
9
|
+
explainer?: string | undefined;
|
|
10
|
+
footnotes?: string | undefined;
|
|
11
|
+
usage?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
development?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
email: {
|
|
16
|
+
github: string;
|
|
17
|
+
npm: string;
|
|
18
|
+
};
|
|
19
|
+
title: string;
|
|
20
|
+
node: {
|
|
21
|
+
minimum: string;
|
|
22
|
+
pinned?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
owner: string;
|
|
25
|
+
repository: string;
|
|
26
|
+
type?: "commonjs" | "module" | undefined;
|
|
27
|
+
author?: string | undefined;
|
|
28
|
+
bin?: string | Record<string, string> | undefined;
|
|
29
|
+
contributors?: {
|
|
30
|
+
avatar_url: string;
|
|
31
|
+
contributions: string[];
|
|
32
|
+
login: string;
|
|
33
|
+
name: string;
|
|
34
|
+
profile: string;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
emoji?: string | undefined;
|
|
37
|
+
existingLabels?: {
|
|
38
|
+
name: string;
|
|
39
|
+
description: string;
|
|
40
|
+
color: string;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
funding?: string | undefined;
|
|
43
|
+
guide?: {
|
|
44
|
+
href: string;
|
|
45
|
+
title: string;
|
|
46
|
+
} | undefined;
|
|
47
|
+
keywords?: string[] | undefined;
|
|
48
|
+
logo?: {
|
|
49
|
+
alt: string;
|
|
50
|
+
src: string;
|
|
51
|
+
height?: number | undefined;
|
|
52
|
+
width?: number | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
packageData?: {
|
|
55
|
+
dependencies?: Record<string, string> | undefined;
|
|
56
|
+
devDependencies?: Record<string, string> | undefined;
|
|
57
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
58
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
59
|
+
scripts?: Record<string, string | undefined> | undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
pnpm?: string | undefined;
|
|
62
|
+
rulesetId?: string | undefined;
|
|
63
|
+
version?: string | undefined;
|
|
64
|
+
words?: string[] | undefined;
|
|
65
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
66
|
+
hash?: string | undefined;
|
|
67
|
+
pinned?: boolean | undefined;
|
|
68
|
+
}>> | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { blockAreTheTypesWrong };
|
|
72
|
+
//# sourceMappingURL=blockAreTheTypesWrong.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockAreTheTypesWrong.d.ts","names":[],"sources":["../../src/blocks/blockAreTheTypesWrong.ts"],"mappings":";cAGa,+CAAqB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { base } from "../base.js";
|
|
2
2
|
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.js";
|
|
3
|
-
|
|
4
3
|
//#region src/blocks/blockAreTheTypesWrong.ts
|
|
5
4
|
const blockAreTheTypesWrong = base.createBlock({
|
|
6
5
|
about: { name: "Are The Types Wrong" },
|
|
@@ -11,6 +10,7 @@ const blockAreTheTypesWrong = base.createBlock({
|
|
|
11
10
|
}] })] };
|
|
12
11
|
}
|
|
13
12
|
});
|
|
14
|
-
|
|
15
13
|
//#endregion
|
|
16
|
-
export { blockAreTheTypesWrong };
|
|
14
|
+
export { blockAreTheTypesWrong };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=blockAreTheTypesWrong.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockAreTheTypesWrong.js","names":[],"sources":["../../src/blocks/blockAreTheTypesWrong.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\n\nexport const blockAreTheTypesWrong = base.createBlock({\n\tabout: {\n\t\tname: \"Are The Types Wrong\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Are The Types Wrong?\",\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{ run: \"pnpm build\" },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trun: \"npx --yes @arethetypeswrong/cli --pack . --ignore-rules cjs-resolves-to-esm --profile esm-only\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;AAGA,MAAa,wBAAwB,KAAK,YAAY;CACrD,OAAO,EACN,MAAM,sBACP;CACA,UAAU;EACT,OAAO,EACN,QAAQ,CACP,qBAAqB,EACpB,MAAM,CACL;GACC,MAAM;GACN,OAAO,CACN,EAAE,KAAK,aAAa,GACpB,EACC,KAAK,iGACN,CACD;EACD,CACD,EACD,CAAC,CACF,EACD;CACD;AACD,CAAC"}
|