create-typescript-app 2.50.0 → 2.52.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 +2 -3
- 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 +2 -3
- package/lib/blocks/blockContributingDocs.d.ts.map +1 -1
- package/lib/blocks/blockContributingDocs.js.map +1 -1
- package/lib/blocks/blockContributorCovenant.d.ts +2 -3
- package/lib/blocks/blockContributorCovenant.d.ts.map +1 -1
- package/lib/blocks/blockContributorCovenant.js.map +1 -1
- package/lib/blocks/blockDevelopmentDocs.d.ts +3 -4
- package/lib/blocks/blockDevelopmentDocs.d.ts.map +1 -1
- package/lib/blocks/blockDevelopmentDocs.js.map +1 -1
- package/lib/blocks/blockESLint.d.ts +7 -13
- package/lib/blocks/blockESLint.d.ts.map +1 -1
- package/lib/blocks/blockESLint.js +23 -27
- 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 +6 -2
- 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 +10 -6
- 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 +4 -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 +4 -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 +17 -13
- 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 +6 -2
- 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 +4 -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 +11 -7
- 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 +5 -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 +6 -2
- 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 +3 -4
- 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 +10 -11
- 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 +3 -4
- 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 +3 -4
- 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 +5 -5
- 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/getScriptFileExtension.d.ts +8 -0
- package/lib/blocks/eslint/getScriptFileExtension.d.ts.map +1 -0
- package/lib/blocks/eslint/getScriptFileExtension.js +8 -0
- package/lib/blocks/eslint/getScriptFileExtension.js.map +1 -0
- package/lib/blocks/eslint/mergeAllExtensions.d.ts +18 -0
- package/lib/blocks/eslint/mergeAllExtensions.d.ts.map +1 -0
- package/lib/blocks/eslint/mergeAllExtensions.js +48 -0
- package/lib/blocks/eslint/mergeAllExtensions.js.map +1 -0
- package/lib/blocks/eslint/schemas.d.ts +23 -12
- package/lib/blocks/eslint/schemas.d.ts.map +1 -1
- package/lib/blocks/eslint/schemas.js +5 -3
- 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 +67 -72
- 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,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum2 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockRemoveFiles.d.ts
|
|
4
|
-
declare const blockRemoveFiles:
|
|
4
|
+
declare const blockRemoveFiles: bingo_stratum2.BlockWithAddons<{
|
|
5
5
|
files?: string[] | undefined;
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -71,7 +71,6 @@ declare const blockRemoveFiles: bingo_stratum1071.BlockWithAddons<{
|
|
|
71
71
|
hash?: string | undefined;
|
|
72
72
|
}>> | undefined;
|
|
73
73
|
}>;
|
|
74
|
-
//# sourceMappingURL=blockRemoveFiles.d.ts.map
|
|
75
74
|
//#endregion
|
|
76
75
|
export { blockRemoveFiles };
|
|
77
76
|
//# sourceMappingURL=blockRemoveFiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockRemoveFiles.d.ts","names":[],"sources":["../../src/blocks/blockRemoveFiles.ts"],"sourcesContent":[],"mappings":";;;cAMa,
|
|
1
|
+
{"version":3,"file":"blockRemoveFiles.d.ts","names":[],"sources":["../../src/blocks/blockRemoveFiles.ts"],"sourcesContent":[],"mappings":";;;cAMa,iCAAgB;;;EAAhB,MAAA,EAAA,QAAA,GA2BX,YAAA;;;;;;;;;;IA3B2B,WAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockRemoveFiles.js","names":[],"sources":["../../src/blocks/blockRemoveFiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { resolveBin } from \"../utils/resolveBin.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockRemoveFiles = base.createBlock({\n\tabout: {\n\t\tname: \"Remove Files\",\n\t},\n\taddons: {\n\t\tfiles: z.array(z.string()).optional(),\n\t},\n\t// TODO: Make produce() optional, so this empty-ish produce() can be removed\n\t// https://github.com/JoshuaKGoldberg/bingo/issues/295\n\tproduce() {\n\t\treturn {};\n\t},\n\ttransition({ addons }) {\n\t\treturn {\n\t\t\tscripts: addons.files\n\t\t\t\t? [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcommands: [\n\t\t\t\t\t\t\t\t`node ${resolveBin(\"trash-cli/cli.js\")} ${addons.files.join(\" \")}`,\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tphase: CommandPhase.Migrations,\n\t\t\t\t\t\t\tsilent: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t]\n\t\t\t\t: undefined,\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;AAMA,MAAa,mBAAmB,KAAK,YAAY;CAChD,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockRemoveFiles.js","names":[],"sources":["../../src/blocks/blockRemoveFiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { resolveBin } from \"../utils/resolveBin.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockRemoveFiles = base.createBlock({\n\tabout: {\n\t\tname: \"Remove Files\",\n\t},\n\taddons: {\n\t\tfiles: z.array(z.string()).optional(),\n\t},\n\t// TODO: Make produce() optional, so this empty-ish produce() can be removed\n\t// https://github.com/JoshuaKGoldberg/bingo/issues/295\n\tproduce() {\n\t\treturn {};\n\t},\n\ttransition({ addons }) {\n\t\treturn {\n\t\t\tscripts: addons.files\n\t\t\t\t? [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcommands: [\n\t\t\t\t\t\t\t\t`node ${resolveBin(\"trash-cli/cli.js\")} ${addons.files.join(\" \")}`,\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tphase: CommandPhase.Migrations,\n\t\t\t\t\t\t\tsilent: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t]\n\t\t\t\t: undefined,\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;AAMA,MAAa,mBAAmB,KAAK,YAAY;CAChD,OAAO,EACN,MAAM,gBACN;CACD,QAAQ,EACP,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU,EACrC;CAGD,UAAU;AACT,SAAO,EAAE;;CAEV,WAAW,EAAE,UAAU;AACtB,SAAO,EACN,SAAS,OAAO,QACb,CACA;GACC,UAAU,CACT,QAAQ,WAAW,mBAAmB,CAAC,GAAG,OAAO,MAAM,KAAK,IAAI,GAChE;GACD,OAAO,aAAa;GACpB,QAAQ;GACR,CACD,GACA,QACH;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum3 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockRemoveWorkflows.d.ts
|
|
4
|
-
declare const blockRemoveWorkflows:
|
|
4
|
+
declare const blockRemoveWorkflows: bingo_stratum3.BlockWithAddons<{
|
|
5
5
|
workflows?: string[] | undefined;
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -71,7 +71,6 @@ declare const blockRemoveWorkflows: bingo_stratum1155.BlockWithAddons<{
|
|
|
71
71
|
hash?: string | undefined;
|
|
72
72
|
}>> | undefined;
|
|
73
73
|
}>;
|
|
74
|
-
//# sourceMappingURL=blockRemoveWorkflows.d.ts.map
|
|
75
74
|
//#endregion
|
|
76
75
|
export { blockRemoveWorkflows };
|
|
77
76
|
//# sourceMappingURL=blockRemoveWorkflows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockRemoveWorkflows.d.ts","names":[],"sources":["../../src/blocks/blockRemoveWorkflows.ts"],"sourcesContent":[],"mappings":";;;cAKa,
|
|
1
|
+
{"version":3,"file":"blockRemoveWorkflows.d.ts","names":[],"sources":["../../src/blocks/blockRemoveWorkflows.ts"],"sourcesContent":[],"mappings":";;;cAKa,qCAAoB;;;EAApB,MAAA,EAAA,QAAA,GAAA,YAyBX;;;;;;;;;;IAzB+B,WAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockRemoveWorkflows.js","names":[],"sources":["../../src/blocks/blockRemoveWorkflows.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\n\nexport const blockRemoveWorkflows = base.createBlock({\n\tabout: {\n\t\tname: \"Remove Workflows\",\n\t},\n\taddons: {\n\t\tworkflows: z.array(z.string()).optional(),\n\t},\n\t// TODO: Make produce() optional, so this empty-ish produce() can be removed\n\t// https://github.com/JoshuaKGoldberg/bingo/issues/295\n\tproduce() {\n\t\treturn {};\n\t},\n\ttransition({ addons }) {\n\t\tconst { workflows } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveFiles({\n\t\t\t\t\tfiles: workflows?.map(\n\t\t\t\t\t\t(workflow) => `.github/workflows/${workflow}.yml`,\n\t\t\t\t\t),\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,uBAAuB,KAAK,YAAY;CACpD,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockRemoveWorkflows.js","names":[],"sources":["../../src/blocks/blockRemoveWorkflows.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\n\nexport const blockRemoveWorkflows = base.createBlock({\n\tabout: {\n\t\tname: \"Remove Workflows\",\n\t},\n\taddons: {\n\t\tworkflows: z.array(z.string()).optional(),\n\t},\n\t// TODO: Make produce() optional, so this empty-ish produce() can be removed\n\t// https://github.com/JoshuaKGoldberg/bingo/issues/295\n\tproduce() {\n\t\treturn {};\n\t},\n\ttransition({ addons }) {\n\t\tconst { workflows } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveFiles({\n\t\t\t\t\tfiles: workflows?.map(\n\t\t\t\t\t\t(workflow) => `.github/workflows/${workflow}.yml`,\n\t\t\t\t\t),\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,uBAAuB,KAAK,YAAY;CACpD,OAAO,EACN,MAAM,oBACN;CACD,QAAQ,EACP,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU,EACzC;CAGD,UAAU;AACT,SAAO,EAAE;;CAEV,WAAW,EAAE,UAAU;EACtB,MAAM,EAAE,cAAc;AAEtB,SAAO,EACN,QAAQ,CACP,iBAAiB,EAChB,OAAO,WAAW,KAChB,aAAa,qBAAqB,SAAS,MAC5C,EACD,CAAC,CACF,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum12 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockRenovate.d.ts
|
|
4
|
-
declare const blockRenovate:
|
|
4
|
+
declare const blockRenovate: bingo_stratum12.BlockWithAddons<{
|
|
5
5
|
ignoreDeps: string[];
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -71,7 +71,6 @@ declare const blockRenovate: bingo_stratum1091.BlockWithAddons<{
|
|
|
71
71
|
hash?: string | undefined;
|
|
72
72
|
}>> | undefined;
|
|
73
73
|
}>;
|
|
74
|
-
//# sourceMappingURL=blockRenovate.d.ts.map
|
|
75
74
|
//#endregion
|
|
76
75
|
export { blockRenovate };
|
|
77
76
|
//# sourceMappingURL=blockRenovate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockRenovate.d.ts","names":[],"sources":["../../src/blocks/blockRenovate.ts"],"sourcesContent":[],"mappings":";;;cAQa
|
|
1
|
+
{"version":3,"file":"blockRenovate.d.ts","names":[],"sources":["../../src/blocks/blockRenovate.ts"],"sourcesContent":[],"mappings":";;;cAQa,+BAAa;;;EAAb,MAAA,EAAA,QAkDX,GAAA,YAAA;;;;;;;;;;IAlDwB,WAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockRenovate.js","names":[],"sources":["../../src/blocks/blockRenovate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { blockGitHubApps } from \"./blockGitHubApps.js\";\nimport { intakeFileAsJson } from \"./intake/intakeFileAsJson.js\";\n\nconst zIgnoreDeps = z.array(z.string()).default([]);\n\nexport const blockRenovate = base.createBlock({\n\tabout: {\n\t\tname: \"Renovate\",\n\t},\n\taddons: {\n\t\tignoreDeps: zIgnoreDeps,\n\t},\n\tintake({ files }) {\n\t\tconst raw = intakeFileAsJson(files, [\".github\", \"renovate.json\"]);\n\n\t\treturn {\n\t\t\tignoreDeps: zIgnoreDeps.safeParse(raw?.ignoreDeps).data,\n\t\t};\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignoreDeps } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockGitHubApps({\n\t\t\t\t\tapps: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Renovate\",\n\t\t\t\t\t\t\turl: \"https://github.com/apps/renovate\",\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\".github\": {\n\t\t\t\t\t\"renovate.json\": JSON.stringify({\n\t\t\t\t\t\t$schema: \"https://docs.renovatebot.com/renovate-schema.json\",\n\t\t\t\t\t\tautomerge: true,\n\t\t\t\t\t\textends: [\n\t\t\t\t\t\t\t\":preserveSemverRanges\",\n\t\t\t\t\t\t\t\"config:best-practices\",\n\t\t\t\t\t\t\t\"replacements:all\",\n\t\t\t\t\t\t],\n\t\t\t\t\t\tignoreDeps: Array.from(\n\t\t\t\t\t\t\tnew Set([\"codecov/codecov-action\", ...ignoreDeps]),\n\t\t\t\t\t\t).sort(),\n\t\t\t\t\t\tlabels: [\"dependencies\"],\n\t\t\t\t\t\tminimumReleaseAge: \"7 days\",\n\t\t\t\t\t\tpatch: { enabled: false },\n\t\t\t\t\t\tpostUpdateOptions: [\"pnpmDedupe\"],\n\t\t\t\t\t}),\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;AAMA,MAAM,cAAc,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"blockRenovate.js","names":[],"sources":["../../src/blocks/blockRenovate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { blockGitHubApps } from \"./blockGitHubApps.js\";\nimport { intakeFileAsJson } from \"./intake/intakeFileAsJson.js\";\n\nconst zIgnoreDeps = z.array(z.string()).default([]);\n\nexport const blockRenovate = base.createBlock({\n\tabout: {\n\t\tname: \"Renovate\",\n\t},\n\taddons: {\n\t\tignoreDeps: zIgnoreDeps,\n\t},\n\tintake({ files }) {\n\t\tconst raw = intakeFileAsJson(files, [\".github\", \"renovate.json\"]);\n\n\t\treturn {\n\t\t\tignoreDeps: zIgnoreDeps.safeParse(raw?.ignoreDeps).data,\n\t\t};\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignoreDeps } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockGitHubApps({\n\t\t\t\t\tapps: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Renovate\",\n\t\t\t\t\t\t\turl: \"https://github.com/apps/renovate\",\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\".github\": {\n\t\t\t\t\t\"renovate.json\": JSON.stringify({\n\t\t\t\t\t\t$schema: \"https://docs.renovatebot.com/renovate-schema.json\",\n\t\t\t\t\t\tautomerge: true,\n\t\t\t\t\t\textends: [\n\t\t\t\t\t\t\t\":preserveSemverRanges\",\n\t\t\t\t\t\t\t\"config:best-practices\",\n\t\t\t\t\t\t\t\"replacements:all\",\n\t\t\t\t\t\t],\n\t\t\t\t\t\tignoreDeps: Array.from(\n\t\t\t\t\t\t\tnew Set([\"codecov/codecov-action\", ...ignoreDeps]),\n\t\t\t\t\t\t).sort(),\n\t\t\t\t\t\tlabels: [\"dependencies\"],\n\t\t\t\t\t\tminimumReleaseAge: \"7 days\",\n\t\t\t\t\t\tpatch: { enabled: false },\n\t\t\t\t\t\tpostUpdateOptions: [\"pnpmDedupe\"],\n\t\t\t\t\t}),\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;AAMA,MAAM,cAAc,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;AAEnD,MAAa,gBAAgB,KAAK,YAAY;CAC7C,OAAO,EACN,MAAM,YACN;CACD,QAAQ,EACP,YAAY,aACZ;CACD,OAAO,EAAE,SAAS;EACjB,MAAM,MAAM,iBAAiB,OAAO,CAAC,WAAW,gBAAgB,CAAC;AAEjE,SAAO,EACN,YAAY,YAAY,UAAU,KAAK,WAAW,CAAC,MACnD;;CAEF,QAAQ,EAAE,UAAU;EACnB,MAAM,EAAE,eAAe;AAEvB,SAAO;GACN,QAAQ,CACP,gBAAgB,EACf,MAAM,CACL;IACC,MAAM;IACN,KAAK;IACL,CACD,EACD,CAAC,CACF;GACD,OAAO,EACN,WAAW,EACV,iBAAiB,KAAK,UAAU;IAC/B,SAAS;IACT,WAAW;IACX,SAAS;KACR;KACA;KACA;KACA;IACD,YAAY,MAAM,KACjB,IAAI,IAAI,CAAC,0BAA0B,GAAG,WAAW,CAAC,CAClD,CAAC,MAAM;IACR,QAAQ,CAAC,eAAe;IACxB,mBAAmB;IACnB,OAAO,EAAE,SAAS,OAAO;IACzB,mBAAmB,CAAC,aAAa;IACjC,CAAC,EACF,EACD;GACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum11 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockRepositoryBranchRuleset.d.ts
|
|
4
|
-
declare const blockRepositoryBranchRuleset:
|
|
4
|
+
declare const blockRepositoryBranchRuleset: bingo_stratum11.BlockWithAddons<{
|
|
5
5
|
requiredStatusChecks?: string[] | undefined;
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -71,7 +71,6 @@ declare const blockRepositoryBranchRuleset: bingo_stratum1093.BlockWithAddons<{
|
|
|
71
71
|
hash?: string | undefined;
|
|
72
72
|
}>> | undefined;
|
|
73
73
|
}>;
|
|
74
|
-
//# sourceMappingURL=blockRepositoryBranchRuleset.d.ts.map
|
|
75
74
|
//#endregion
|
|
76
75
|
export { blockRepositoryBranchRuleset };
|
|
77
76
|
//# sourceMappingURL=blockRepositoryBranchRuleset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockRepositoryBranchRuleset.d.ts","names":[],"sources":["../../src/blocks/blockRepositoryBranchRuleset.ts"],"sourcesContent":[],"mappings":";;;cAMa,
|
|
1
|
+
{"version":3,"file":"blockRepositoryBranchRuleset.d.ts","names":[],"sources":["../../src/blocks/blockRepositoryBranchRuleset.ts"],"sourcesContent":[],"mappings":";;;cAMa,8CAA4B;;;EAA5B,MAAA,EAAA,QAAA,GAAA,YA4DX;;;;;;;;;;IA5DuC,WAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockRepositoryBranchRuleset.js","names":[
|
|
1
|
+
{"version":3,"file":"blockRepositoryBranchRuleset.js","names":[],"sources":["../../src/blocks/blockRepositoryBranchRuleset.ts"],"sourcesContent":["import type { CreatedOctokitRequest } from \"bingo-requests\";\n\nimport { z } from \"zod\";\n\nimport { base, BaseOptions } from \"../base.js\";\n\nexport const blockRepositoryBranchRuleset = base.createBlock({\n\tabout: {\n\t\tname: \"Repository Branch Ruleset\",\n\t},\n\taddons: {\n\t\trequiredStatusChecks: z.array(z.string()).optional(),\n\t},\n\tsetup({ addons, options }) {\n\t\treturn {\n\t\t\trequests: [\n\t\t\t\t{\n\t\t\t\t\tendpoint: \"POST /repos/{owner}/{repo}/rulesets\",\n\t\t\t\t\tparameters: createRulesetParameters(\n\t\t\t\t\t\taddons.requiredStatusChecks,\n\t\t\t\t\t\toptions,\n\t\t\t\t\t),\n\t\t\t\t\ttype: \"octokit\",\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\ttransition({ addons, options }) {\n\t\treturn {\n\t\t\trequests: [\n\t\t\t\t{\n\t\t\t\t\tendpoint: \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection\",\n\t\t\t\t\tparameters: {\n\t\t\t\t\t\tbranch: \"main\",\n\t\t\t\t\t\towner: options.owner,\n\t\t\t\t\t\trepo: options.repository,\n\t\t\t\t\t},\n\t\t\t\t\tsilent: true,\n\t\t\t\t\ttype: \"octokit\",\n\t\t\t\t},\n\t\t\t\toptions.rulesetId\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tendpoint: \"PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}\",\n\t\t\t\t\t\t\tparameters: createRulesetParameters(\n\t\t\t\t\t\t\t\taddons.requiredStatusChecks,\n\t\t\t\t\t\t\t\toptions,\n\t\t\t\t\t\t\t\toptions.rulesetId,\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\ttype: \"octokit\",\n\t\t\t\t\t\t}\n\t\t\t\t\t: {\n\t\t\t\t\t\t\tendpoint: \"POST /repos/{owner}/{repo}/rulesets\",\n\t\t\t\t\t\t\tparameters: createRulesetParameters(\n\t\t\t\t\t\t\t\taddons.requiredStatusChecks,\n\t\t\t\t\t\t\t\toptions,\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\ttype: \"octokit\",\n\t\t\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\t// TODO: Make produce() optional, so this empty-ish produce() can be removed\n\t// https://github.com/JoshuaKGoldberg/bingo/issues/295\n\tproduce() {\n\t\treturn {};\n\t},\n});\n\nfunction createRulesetParameters(\n\tcontexts: string[] | undefined,\n\toptions: BaseOptions,\n\trulesetId?: string,\n) {\n\treturn {\n\t\tbypass_actors: [\n\t\t\t{\n\t\t\t\t// This *seems* to be the Repository Admin role always?\n\t\t\t\t// https://github.com/github/rest-api-description/issues/4406\n\t\t\t\tactor_id: 5,\n\t\t\t\tactor_type: \"RepositoryRole\",\n\t\t\t\tbypass_mode: \"always\",\n\t\t\t},\n\t\t],\n\t\tconditions: {\n\t\t\tref_name: {\n\t\t\t\texclude: [],\n\t\t\t\tinclude: [\"refs/heads/main\"],\n\t\t\t},\n\t\t},\n\t\tenforcement: \"active\",\n\t\tname: \"Branch protection for main\",\n\t\towner: options.owner,\n\t\trepo: options.repository,\n\t\trules: [\n\t\t\t{ type: \"deletion\" },\n\t\t\t{\n\t\t\t\tparameters: {\n\t\t\t\t\tallowed_merge_methods: [\"squash\"],\n\t\t\t\t\tdismiss_stale_reviews_on_push: false,\n\t\t\t\t\trequire_code_owner_review: false,\n\t\t\t\t\trequire_last_push_approval: false,\n\t\t\t\t\trequired_approving_review_count: 0,\n\t\t\t\t\trequired_review_thread_resolution: false,\n\t\t\t\t},\n\t\t\t\ttype: \"pull_request\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tparameters: {\n\t\t\t\t\trequired_status_checks:\n\t\t\t\t\t\tcontexts?.map((context) => ({\n\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t})) ?? [],\n\t\t\t\t\tstrict_required_status_checks_policy: false,\n\t\t\t\t},\n\t\t\t\ttype: \"required_status_checks\",\n\t\t\t},\n\t\t],\n\t\truleset_id: rulesetId === undefined ? rulesetId : Number(rulesetId),\n\t\ttarget: \"branch\",\n\t} satisfies CreatedOctokitRequest[\"parameters\"];\n}\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,KAAK,YAAY;CAC5D,OAAO,EACN,MAAM,6BACN;CACD,QAAQ,EACP,sBAAsB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU,EACpD;CACD,MAAM,EAAE,QAAQ,WAAW;AAC1B,SAAO,EACN,UAAU,CACT;GACC,UAAU;GACV,YAAY,wBACX,OAAO,sBACP,QACA;GACD,MAAM;GACN,CACD,EACD;;CAEF,WAAW,EAAE,QAAQ,WAAW;AAC/B,SAAO,EACN,UAAU,CACT;GACC,UAAU;GACV,YAAY;IACX,QAAQ;IACR,OAAO,QAAQ;IACf,MAAM,QAAQ;IACd;GACD,QAAQ;GACR,MAAM;GACN,EACD,QAAQ,YACL;GACA,UAAU;GACV,YAAY,wBACX,OAAO,sBACP,SACA,QAAQ,UACR;GACD,MAAM;GACN,GACA;GACA,UAAU;GACV,YAAY,wBACX,OAAO,sBACP,QACA;GACD,MAAM;GACN,CACH,EACD;;CAIF,UAAU;AACT,SAAO,EAAE;;CAEV,CAAC;AAEF,SAAS,wBACR,UACA,SACA,WACC;AACD,QAAO;EACN,eAAe,CACd;GAGC,UAAU;GACV,YAAY;GACZ,aAAa;GACb,CACD;EACD,YAAY,EACX,UAAU;GACT,SAAS,EAAE;GACX,SAAS,CAAC,kBAAkB;GAC5B,EACD;EACD,aAAa;EACb,MAAM;EACN,OAAO,QAAQ;EACf,MAAM,QAAQ;EACd,OAAO;GACN,EAAE,MAAM,YAAY;GACpB;IACC,YAAY;KACX,uBAAuB,CAAC,SAAS;KACjC,+BAA+B;KAC/B,2BAA2B;KAC3B,4BAA4B;KAC5B,iCAAiC;KACjC,mCAAmC;KACnC;IACD,MAAM;IACN;GACD;IACC,YAAY;KACX,wBACC,UAAU,KAAK,aAAa,EAC3B,SACA,EAAE,IAAI,EAAE;KACV,sCAAsC;KACtC;IACD,MAAM;IACN;GACD;EACD,YAAY,cAAc,SAAY,YAAY,OAAO,UAAU;EACnE,QAAQ;EACR"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum13 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockRepositoryLabels.d.ts
|
|
4
|
-
declare const blockRepositoryLabels:
|
|
4
|
+
declare const blockRepositoryLabels: bingo_stratum13.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -69,7 +69,6 @@ declare const blockRepositoryLabels: bingo_stratum1096.BlockWithoutAddons<{
|
|
|
69
69
|
hash?: string | undefined;
|
|
70
70
|
}>> | undefined;
|
|
71
71
|
}>;
|
|
72
|
-
//# sourceMappingURL=blockRepositoryLabels.d.ts.map
|
|
73
72
|
//#endregion
|
|
74
73
|
export { blockRepositoryLabels };
|
|
75
74
|
//# sourceMappingURL=blockRepositoryLabels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockRepositoryLabels.d.ts","names":[],"sources":["../../src/blocks/blockRepositoryLabels.ts"],"sourcesContent":[],"mappings":";;;cAKa,
|
|
1
|
+
{"version":3,"file":"blockRepositoryLabels.d.ts","names":[],"sources":["../../src/blocks/blockRepositoryLabels.ts"],"sourcesContent":[],"mappings":";;;cAKa,uCAAqB;;;EAArB,SAAA,EAAA,MAAA;;;;;;;;;;EAAqB,KAAA,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockRepositoryLabels.js","names":[],"sources":["../../src/blocks/blockRepositoryLabels.ts"],"sourcesContent":["import { determineLabelChanges } from \"set-github-repository-labels\";\n\nimport { base } from \"../base.js\";\nimport { outcomeLabels } from \"./outcomeLabels.js\";\n\nexport const blockRepositoryLabels = base.createBlock({\n\tabout: {\n\t\tname: \"Repository Labels\",\n\t},\n\tproduce({ options }) {\n\t\tconst changes = determineLabelChanges(\n\t\t\toptions.existingLabels ?? [],\n\t\t\toutcomeLabels,\n\t\t);\n\t\tconst requestData = {\n\t\t\towner: options.owner,\n\t\t\trepo: options.repository,\n\t\t};\n\n\t\treturn {\n\t\t\trequests: changes.map((change) => {\n\t\t\t\tswitch (change.type) {\n\t\t\t\t\tcase \"delete\":\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tendpoint: \"DELETE /repos/{owner}/{repo}/labels/{name}\",\n\t\t\t\t\t\t\tid: `delete label '${change.name}'`,\n\t\t\t\t\t\t\tparameters: {\n\t\t\t\t\t\t\t\t...requestData,\n\t\t\t\t\t\t\t\tname: change.name,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ttype: \"octokit\",\n\t\t\t\t\t\t};\n\t\t\t\t\tcase \"patch\":\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tendpoint: \"PATCH /repos/{owner}/{repo}/labels/{name}\",\n\t\t\t\t\t\t\tid: `patch label '${change.originalName}'`,\n\t\t\t\t\t\t\tparameters: {\n\t\t\t\t\t\t\t\t...requestData,\n\t\t\t\t\t\t\t\tcolor: change.color,\n\t\t\t\t\t\t\t\tdescription: change.description,\n\t\t\t\t\t\t\t\tname: change.originalName,\n\t\t\t\t\t\t\t\tnew_name: change.newName,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ttype: \"octokit\",\n\t\t\t\t\t\t};\n\t\t\t\t\tcase \"post\":\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tendpoint: \"POST /repos/{owner}/{repo}/labels\",\n\t\t\t\t\t\t\tid: `post label '${change.name}'`,\n\t\t\t\t\t\t\tparameters: {\n\t\t\t\t\t\t\t\t...requestData,\n\t\t\t\t\t\t\t\tcolor: change.color,\n\t\t\t\t\t\t\t\tdescription: change.description,\n\t\t\t\t\t\t\t\tname: change.name,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ttype: \"octokit\",\n\t\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}),\n\t\t};\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,wBAAwB,KAAK,YAAY;CACrD,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockRepositoryLabels.js","names":[],"sources":["../../src/blocks/blockRepositoryLabels.ts"],"sourcesContent":["import { determineLabelChanges } from \"set-github-repository-labels\";\n\nimport { base } from \"../base.js\";\nimport { outcomeLabels } from \"./outcomeLabels.js\";\n\nexport const blockRepositoryLabels = base.createBlock({\n\tabout: {\n\t\tname: \"Repository Labels\",\n\t},\n\tproduce({ options }) {\n\t\tconst changes = determineLabelChanges(\n\t\t\toptions.existingLabels ?? [],\n\t\t\toutcomeLabels,\n\t\t);\n\t\tconst requestData = {\n\t\t\towner: options.owner,\n\t\t\trepo: options.repository,\n\t\t};\n\n\t\treturn {\n\t\t\trequests: changes.map((change) => {\n\t\t\t\tswitch (change.type) {\n\t\t\t\t\tcase \"delete\":\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tendpoint: \"DELETE /repos/{owner}/{repo}/labels/{name}\",\n\t\t\t\t\t\t\tid: `delete label '${change.name}'`,\n\t\t\t\t\t\t\tparameters: {\n\t\t\t\t\t\t\t\t...requestData,\n\t\t\t\t\t\t\t\tname: change.name,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ttype: \"octokit\",\n\t\t\t\t\t\t};\n\t\t\t\t\tcase \"patch\":\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tendpoint: \"PATCH /repos/{owner}/{repo}/labels/{name}\",\n\t\t\t\t\t\t\tid: `patch label '${change.originalName}'`,\n\t\t\t\t\t\t\tparameters: {\n\t\t\t\t\t\t\t\t...requestData,\n\t\t\t\t\t\t\t\tcolor: change.color,\n\t\t\t\t\t\t\t\tdescription: change.description,\n\t\t\t\t\t\t\t\tname: change.originalName,\n\t\t\t\t\t\t\t\tnew_name: change.newName,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ttype: \"octokit\",\n\t\t\t\t\t\t};\n\t\t\t\t\tcase \"post\":\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tendpoint: \"POST /repos/{owner}/{repo}/labels\",\n\t\t\t\t\t\t\tid: `post label '${change.name}'`,\n\t\t\t\t\t\t\tparameters: {\n\t\t\t\t\t\t\t\t...requestData,\n\t\t\t\t\t\t\t\tcolor: change.color,\n\t\t\t\t\t\t\t\tdescription: change.description,\n\t\t\t\t\t\t\t\tname: change.name,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ttype: \"octokit\",\n\t\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}),\n\t\t};\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,wBAAwB,KAAK,YAAY;CACrD,OAAO,EACN,MAAM,qBACN;CACD,QAAQ,EAAE,WAAW;EACpB,MAAM,UAAU,sBACf,QAAQ,kBAAkB,EAAE,EAC5B,cACA;EACD,MAAM,cAAc;GACnB,OAAO,QAAQ;GACf,MAAM,QAAQ;GACd;AAED,SAAO,EACN,UAAU,QAAQ,KAAK,WAAW;AACjC,WAAQ,OAAO,MAAf;IACC,KAAK,SACJ,QAAO;KACN,UAAU;KACV,IAAI,iBAAiB,OAAO,KAAK;KACjC,YAAY;MACX,GAAG;MACH,MAAM,OAAO;MACb;KACD,MAAM;KACN;IACF,KAAK,QACJ,QAAO;KACN,UAAU;KACV,IAAI,gBAAgB,OAAO,aAAa;KACxC,YAAY;MACX,GAAG;MACH,OAAO,OAAO;MACd,aAAa,OAAO;MACpB,MAAM,OAAO;MACb,UAAU,OAAO;MACjB;KACD,MAAM;KACN;IACF,KAAK,OACJ,QAAO;KACN,UAAU;KACV,IAAI,eAAe,OAAO,KAAK;KAC/B,YAAY;MACX,GAAG;MACH,OAAO,OAAO;MACd,aAAa,OAAO;MACpB,MAAM,OAAO;MACb;KACD,MAAM;KACN;;IAEF,EACF;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum14 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockRepositorySecrets.d.ts
|
|
4
|
-
declare const blockRepositorySecrets:
|
|
4
|
+
declare const blockRepositorySecrets: bingo_stratum14.BlockWithAddons<{
|
|
5
5
|
secrets: {
|
|
6
6
|
name: string;
|
|
7
7
|
description: string;
|
|
@@ -74,7 +74,6 @@ declare const blockRepositorySecrets: bingo_stratum1098.BlockWithAddons<{
|
|
|
74
74
|
hash?: string | undefined;
|
|
75
75
|
}>> | undefined;
|
|
76
76
|
}>;
|
|
77
|
-
//# sourceMappingURL=blockRepositorySecrets.d.ts.map
|
|
78
77
|
//#endregion
|
|
79
78
|
export { blockRepositorySecrets };
|
|
80
79
|
//# sourceMappingURL=blockRepositorySecrets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockRepositorySecrets.d.ts","names":[],"sources":["../../src/blocks/blockRepositorySecrets.ts"],"sourcesContent":[],"mappings":";;;cAKa,
|
|
1
|
+
{"version":3,"file":"blockRepositorySecrets.d.ts","names":[],"sources":["../../src/blocks/blockRepositorySecrets.ts"],"sourcesContent":[],"mappings":";;;cAKa,wCAAsB;;;IAAtB,WAAA,EAAA,MAAA;;;;;;;;;eAAsB,CAAA,EAAA,MAAA,GAAA,SAAA;MAAA,SAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockRepositorySecrets.js","names":[],"sources":["../../src/blocks/blockRepositorySecrets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getInstallationSuggestions } from \"./getInstallationSuggestions.js\";\n\nexport const blockRepositorySecrets = base.createBlock({\n\tabout: {\n\t\tname: \"Repository Secrets\",\n\t},\n\taddons: {\n\t\tsecrets: z\n\t\t\t.array(\n\t\t\t\tz.object({\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.default([]),\n\t},\n\tproduce({ addons, options }) {\n\t\treturn {\n\t\t\tsuggestions: getInstallationSuggestions(\n\t\t\t\t\"populate the secret\",\n\t\t\t\taddons.secrets.map(\n\t\t\t\t\t(secret) => `${secret.name} (${secret.description})`,\n\t\t\t\t),\n\t\t\t\t`https://github.com/${options.owner}/${options.repository}/settings/secrets/actions`,\n\t\t\t),\n\t\t};\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,yBAAyB,KAAK,YAAY;CACtD,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockRepositorySecrets.js","names":[],"sources":["../../src/blocks/blockRepositorySecrets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getInstallationSuggestions } from \"./getInstallationSuggestions.js\";\n\nexport const blockRepositorySecrets = base.createBlock({\n\tabout: {\n\t\tname: \"Repository Secrets\",\n\t},\n\taddons: {\n\t\tsecrets: z\n\t\t\t.array(\n\t\t\t\tz.object({\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.default([]),\n\t},\n\tproduce({ addons, options }) {\n\t\treturn {\n\t\t\tsuggestions: getInstallationSuggestions(\n\t\t\t\t\"populate the secret\",\n\t\t\t\taddons.secrets.map(\n\t\t\t\t\t(secret) => `${secret.name} (${secret.description})`,\n\t\t\t\t),\n\t\t\t\t`https://github.com/${options.owner}/${options.repository}/settings/secrets/actions`,\n\t\t\t),\n\t\t};\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,yBAAyB,KAAK,YAAY;CACtD,OAAO,EACN,MAAM,sBACN;CACD,QAAQ,EACP,SAAS,EACP,MACA,EAAE,OAAO;EACR,aAAa,EAAE,QAAQ;EACvB,MAAM,EAAE,QAAQ;EAChB,CAAC,CACF,CACA,QAAQ,EAAE,CAAC,EACb;CACD,QAAQ,EAAE,QAAQ,WAAW;AAC5B,SAAO,EACN,aAAa,2BACZ,uBACA,OAAO,QAAQ,KACb,WAAW,GAAG,OAAO,KAAK,IAAI,OAAO,YAAY,GAClD,EACD,sBAAsB,QAAQ,MAAM,GAAG,QAAQ,WAAW,2BAC1D,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum4 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockRepositorySettings.d.ts
|
|
4
|
-
declare const blockRepositorySettings:
|
|
4
|
+
declare const blockRepositorySettings: bingo_stratum4.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -69,7 +69,6 @@ declare const blockRepositorySettings: bingo_stratum1100.BlockWithoutAddons<{
|
|
|
69
69
|
hash?: string | undefined;
|
|
70
70
|
}>> | undefined;
|
|
71
71
|
}>;
|
|
72
|
-
//# sourceMappingURL=blockRepositorySettings.d.ts.map
|
|
73
72
|
//#endregion
|
|
74
73
|
export { blockRepositorySettings };
|
|
75
74
|
//# sourceMappingURL=blockRepositorySettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockRepositorySettings.d.ts","names":[],"sources":["../../src/blocks/blockRepositorySettings.ts"],"sourcesContent":[],"mappings":";;;cAGa,
|
|
1
|
+
{"version":3,"file":"blockRepositorySettings.d.ts","names":[],"sources":["../../src/blocks/blockRepositorySettings.ts"],"sourcesContent":[],"mappings":";;;cAGa,wCAAuB;;;EAAvB,SAAA,EAAA,MAAA;;;;;;;;;;EAAuB,KAAA,EAAA"}
|
|
@@ -5,7 +5,6 @@ import { base } from "../base.js";
|
|
|
5
5
|
const blockRepositorySettings = base.createBlock({
|
|
6
6
|
about: { name: "Repository Settings" },
|
|
7
7
|
produce({ options }) {
|
|
8
|
-
const description = htmlToTextSafe(options.description);
|
|
9
8
|
return { requests: [{
|
|
10
9
|
endpoint: "PATCH /repos/{owner}/{repo}",
|
|
11
10
|
parameters: {
|
|
@@ -14,7 +13,7 @@ const blockRepositorySettings = base.createBlock({
|
|
|
14
13
|
allow_rebase_merge: false,
|
|
15
14
|
allow_squash_merge: true,
|
|
16
15
|
delete_branch_on_merge: true,
|
|
17
|
-
description,
|
|
16
|
+
description: htmlToTextSafe(options.description),
|
|
18
17
|
has_wiki: false,
|
|
19
18
|
owner: options.owner,
|
|
20
19
|
repo: options.repository,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockRepositorySettings.js","names":[],"sources":["../../src/blocks/blockRepositorySettings.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { htmlToTextSafe } from \"../utils/htmlToTextSafe.js\";\n\nexport const blockRepositorySettings = base.createBlock({\n\tabout: {\n\t\tname: \"Repository Settings\",\n\t},\n\tproduce({ options }) {\n\t\tconst description = htmlToTextSafe(options.description);\n\n\t\treturn {\n\t\t\trequests: [\n\t\t\t\t{\n\t\t\t\t\tendpoint: \"PATCH /repos/{owner}/{repo}\",\n\t\t\t\t\tparameters: {\n\t\t\t\t\t\tallow_auto_merge: true,\n\t\t\t\t\t\tallow_merge_commit: false,\n\t\t\t\t\t\tallow_rebase_merge: false,\n\t\t\t\t\t\tallow_squash_merge: true,\n\t\t\t\t\t\tdelete_branch_on_merge: true,\n\t\t\t\t\t\tdescription,\n\t\t\t\t\t\thas_wiki: false,\n\t\t\t\t\t\towner: options.owner,\n\t\t\t\t\t\trepo: options.repository,\n\t\t\t\t\t\tsecurity_and_analysis: {\n\t\t\t\t\t\t\tsecret_scanning: {\n\t\t\t\t\t\t\t\tstatus: \"enabled\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsecret_scanning_push_protection: {\n\t\t\t\t\t\t\t\tstatus: \"enabled\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tsquash_merge_commit_message: \"PR_BODY\",\n\t\t\t\t\t\tsquash_merge_commit_title: \"PR_TITLE\",\n\t\t\t\t\t},\n\t\t\t\t\ttype: \"octokit\",\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,0BAA0B,KAAK,YAAY;CACvD,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockRepositorySettings.js","names":[],"sources":["../../src/blocks/blockRepositorySettings.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { htmlToTextSafe } from \"../utils/htmlToTextSafe.js\";\n\nexport const blockRepositorySettings = base.createBlock({\n\tabout: {\n\t\tname: \"Repository Settings\",\n\t},\n\tproduce({ options }) {\n\t\tconst description = htmlToTextSafe(options.description);\n\n\t\treturn {\n\t\t\trequests: [\n\t\t\t\t{\n\t\t\t\t\tendpoint: \"PATCH /repos/{owner}/{repo}\",\n\t\t\t\t\tparameters: {\n\t\t\t\t\t\tallow_auto_merge: true,\n\t\t\t\t\t\tallow_merge_commit: false,\n\t\t\t\t\t\tallow_rebase_merge: false,\n\t\t\t\t\t\tallow_squash_merge: true,\n\t\t\t\t\t\tdelete_branch_on_merge: true,\n\t\t\t\t\t\tdescription,\n\t\t\t\t\t\thas_wiki: false,\n\t\t\t\t\t\towner: options.owner,\n\t\t\t\t\t\trepo: options.repository,\n\t\t\t\t\t\tsecurity_and_analysis: {\n\t\t\t\t\t\t\tsecret_scanning: {\n\t\t\t\t\t\t\t\tstatus: \"enabled\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsecret_scanning_push_protection: {\n\t\t\t\t\t\t\t\tstatus: \"enabled\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tsquash_merge_commit_message: \"PR_BODY\",\n\t\t\t\t\t\tsquash_merge_commit_title: \"PR_TITLE\",\n\t\t\t\t\t},\n\t\t\t\t\ttype: \"octokit\",\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,0BAA0B,KAAK,YAAY;CACvD,OAAO,EACN,MAAM,uBACN;CACD,QAAQ,EAAE,WAAW;AAGpB,SAAO,EACN,UAAU,CACT;GACC,UAAU;GACV,YAAY;IACX,kBAAkB;IAClB,oBAAoB;IACpB,oBAAoB;IACpB,oBAAoB;IACpB,wBAAwB;IACxB,aAZgB,eAAe,QAAQ,YAAY;IAanD,UAAU;IACV,OAAO,QAAQ;IACf,MAAM,QAAQ;IACd,uBAAuB;KACtB,iBAAiB,EAChB,QAAQ,WACR;KACD,iCAAiC,EAChC,QAAQ,WACR;KACD;IACD,6BAA6B;IAC7B,2BAA2B;IAC3B;GACD,MAAM;GACN,CACD,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum5 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockSecurityDocs.d.ts
|
|
4
|
-
declare const blockSecurityDocs:
|
|
4
|
+
declare const blockSecurityDocs: bingo_stratum5.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -69,7 +69,6 @@ declare const blockSecurityDocs: bingo_stratum1101.BlockWithoutAddons<{
|
|
|
69
69
|
hash?: string | undefined;
|
|
70
70
|
}>> | undefined;
|
|
71
71
|
}>;
|
|
72
|
-
//# sourceMappingURL=blockSecurityDocs.d.ts.map
|
|
73
72
|
//#endregion
|
|
74
73
|
export { blockSecurityDocs };
|
|
75
74
|
//# sourceMappingURL=blockSecurityDocs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockSecurityDocs.d.ts","names":[],"sources":["../../src/blocks/blockSecurityDocs.ts"],"sourcesContent":[],"mappings":";;;cAEa,
|
|
1
|
+
{"version":3,"file":"blockSecurityDocs.d.ts","names":[],"sources":["../../src/blocks/blockSecurityDocs.ts"],"sourcesContent":[],"mappings":";;;cAEa,kCAAiB;;;EAAjB,SAAA,EAAA,MAAA;;;;;;;;;;EAAiB,KAAA,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockSecurityDocs.js","names":[],"sources":["../../src/blocks/blockSecurityDocs.ts"],"sourcesContent":["import { base } from \"../base.js\";\n\nexport const blockSecurityDocs = base.createBlock({\n\tabout: {\n\t\tname: \"Security Docs\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"SECURITY.md\": `# Security Policy\n\nWe take all security vulnerabilities seriously.\nIf you have a vulnerability or other security issues to disclose:\n\n- Thank you very much, please do!\n- Please send them to us by emailing \\`${options.email.github}\\`\n\nWe appreciate your efforts and responsible disclosure and will make every effort to acknowledge your contributions.\n`,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;AAEA,MAAa,oBAAoB,KAAK,YAAY;CACjD,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockSecurityDocs.js","names":[],"sources":["../../src/blocks/blockSecurityDocs.ts"],"sourcesContent":["import { base } from \"../base.js\";\n\nexport const blockSecurityDocs = base.createBlock({\n\tabout: {\n\t\tname: \"Security Docs\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"SECURITY.md\": `# Security Policy\n\nWe take all security vulnerabilities seriously.\nIf you have a vulnerability or other security issues to disclose:\n\n- Thank you very much, please do!\n- Please send them to us by emailing \\`${options.email.github}\\`\n\nWe appreciate your efforts and responsible disclosure and will make every effort to acknowledge your contributions.\n`,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;AAEA,MAAa,oBAAoB,KAAK,YAAY;CACjD,OAAO,EACN,MAAM,iBACN;CACD,QAAQ,EAAE,WAAW;AACpB,SAAO,EACN,OAAO,EACN,WAAW,EACV,eAAe;;;;;;yCAMqB,QAAQ,MAAM,OAAO;;;GAIzD,EACD,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum6 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockTSDown.d.ts
|
|
4
|
-
declare const blockTSDown:
|
|
4
|
+
declare const blockTSDown: bingo_stratum6.BlockWithAddons<{
|
|
5
5
|
properties: Record<string, unknown>;
|
|
6
6
|
entry: string[];
|
|
7
7
|
runInCI: string[];
|
|
@@ -73,7 +73,6 @@ declare const blockTSDown: bingo_stratum1151.BlockWithAddons<{
|
|
|
73
73
|
hash?: string | undefined;
|
|
74
74
|
}>> | undefined;
|
|
75
75
|
}>;
|
|
76
|
-
//# sourceMappingURL=blockTSDown.d.ts.map
|
|
77
76
|
//#endregion
|
|
78
77
|
export { blockTSDown };
|
|
79
78
|
//# sourceMappingURL=blockTSDown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockTSDown.d.ts","names":[],"sources":["../../src/blocks/blockTSDown.ts"],"sourcesContent":[],"mappings":";;;cAoBa
|
|
1
|
+
{"version":3,"file":"blockTSDown.d.ts","names":[],"sources":["../../src/blocks/blockTSDown.ts"],"sourcesContent":[],"mappings":";;;cAoBa,4BAAW;;;EAAX,OAAA,EAAA,MA0IX,EAAA;;;;;;;;;;WA1IsB,CAAA,EAAA,MAAA,GAAA,SAAA;IAAA,CAAA"}
|
|
@@ -26,8 +26,8 @@ const blockTSDown = base.createBlock({
|
|
|
26
26
|
},
|
|
27
27
|
intake({ files }) {
|
|
28
28
|
const rawData = intakeFileDefineConfig(files, ["tsdown.config.ts"]) ?? intakeFileDefineConfig(files, ["tsup.config.ts"]);
|
|
29
|
-
if (!rawData) return
|
|
30
|
-
const { entry: rawEntry
|
|
29
|
+
if (!rawData) return;
|
|
30
|
+
const { entry: rawEntry, ...rest } = rawData;
|
|
31
31
|
return {
|
|
32
32
|
entry: zEntry.safeParse(rawEntry).data,
|
|
33
33
|
properties: removeUndefinedObjects({
|
|
@@ -75,6 +75,7 @@ pnpm build --watch
|
|
|
75
75
|
export default defineConfig(${JSON.stringify({
|
|
76
76
|
dts: true,
|
|
77
77
|
entry: Array.from(new Set(["src/**/*.ts", ...entry])),
|
|
78
|
+
fixedExtension: false,
|
|
78
79
|
outDir: "lib",
|
|
79
80
|
unbundle: true,
|
|
80
81
|
...properties
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockTSDown.js","names":[],"sources":["../../src/blocks/blockTSDown.ts"],"sourcesContent":["import removeUndefinedObjects from \"remove-undefined-objects\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockESLint } from \"./blockESLint.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockKnip } from \"./blockKnip.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockReleaseIt } from \"./blockReleaseIt.js\";\nimport { blockRemoveDependencies } from \"./blockRemoveDependencies.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\nimport { intakeFileDefineConfig } from \"./intake/intakeFileDefineConfig.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nconst zEntry = z.array(z.string());\nconst zProperties = z.record(z.unknown());\n\nexport const blockTSDown = base.createBlock({\n\tabout: {\n\t\tname: \"TSDown\",\n\t},\n\taddons: {\n\t\tentry: zEntry.default([]),\n\t\tproperties: zProperties.default({}),\n\t\trunInCI: z.array(z.string()).default([]),\n\t},\n\tintake({ files }) {\n\t\tconst rawData =\n\t\t\tintakeFileDefineConfig(files, [\"tsdown.config.ts\"]) ??\n\t\t\tintakeFileDefineConfig(files, [\"tsup.config.ts\"]);\n\t\tif (!rawData) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tconst { entry: rawEntry, ...rest } = rawData;\n\n\t\treturn {\n\t\t\tentry: zEntry.safeParse(rawEntry).data,\n\t\t\tproperties: removeUndefinedObjects({\n\t\t\t\t...zProperties.safeParse(rest).data,\n\n\t\t\t\t// In case of a tsup.config.ts migrated to tsdown.config.ts\n\t\t\t\tbundle: undefined,\n\t\t\t\tclean: rest.clean === false ? false : undefined,\n\t\t\t\tformat: rest.format === \"esm\" ? undefined : rest.format,\n\t\t\t}),\n\t\t};\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { entry, properties, runInCI } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tBuilding: {\n\t\t\t\t\t\t\tcontents: `\nRun [**tsdown**](https://tsdown.dev) locally to build source files from \\`src/\\` into output files in \\`lib/\\`:\n\n\\`\\`\\`shell\npnpm build\n\\`\\`\\`\n\nAdd \\`--watch\\` to run the builder in a watch mode that continuously cleans and recreates \\`lib/\\` as you save files:\n\n\\`\\`\\`shell\npnpm build --watch\n\\`\\`\\`\n`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockESLint({\n\t\t\t\t\tbeforeLint: `Note that you'll need to run \\`pnpm build\\` before \\`pnpm lint\\` so that lint rules which check the file system can pick up on any built files.`,\n\t\t\t\t}),\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: \"Build\",\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...runInCI.map((run) => ({ run })),\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\tblockKnip({\n\t\t\t\t\tentry: [\"src/index.ts\"],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"tsdown\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\tbuild: \"tsdown\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockReleaseIt({\n\t\t\t\t\tbuilders: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\torder: 0,\n\t\t\t\t\t\t\trun: \"pnpm build\",\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\"tsdown.config.ts\": `import { defineConfig } from \"tsdown\";\n\nexport default defineConfig(${JSON.stringify({\n\t\t\t\t\tdts: true,\n\t\t\t\t\tentry: Array.from(new Set([\"src/**/*.ts\", ...entry])),\n\t\t\t\t\toutDir: \"lib\",\n\t\t\t\t\tunbundle: true,\n\t\t\t\t\t...properties,\n\t\t\t\t})});\n`,\n\t\t\t},\n\t\t\tscripts: options.bin\n\t\t\t\t? [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcommands: [\"pnpm build\"],\n\t\t\t\t\t\t\tphase: CommandPhase.Build,\n\t\t\t\t\t\t},\n\t\t\t\t\t]\n\t\t\t\t: undefined,\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveDependencies({\n\t\t\t\t\tdependencies: [\n\t\t\t\t\t\t\"@babel/cli\",\n\t\t\t\t\t\t\"@babel/core\",\n\t\t\t\t\t\t\"@babel/preset-typescript\",\n\t\t\t\t\t\t\"babel\",\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockRemoveFiles({\n\t\t\t\t\tfiles: [\n\t\t\t\t\t\t\".babelrc*\",\n\t\t\t\t\t\t\"babel.config.*\",\n\t\t\t\t\t\t\"dist\",\n\t\t\t\t\t\t\"lib\",\n\t\t\t\t\t\t\"tsup.config.*\",\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockRemoveWorkflows({\n\t\t\t\t\tworkflows: [\"build\", \"tsup\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,MAAM,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC;AAClC,MAAM,cAAc,EAAE,OAAO,EAAE,SAAS,CAAC;AAEzC,MAAa,cAAc,KAAK,YAAY;CAC3C,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockTSDown.js","names":[],"sources":["../../src/blocks/blockTSDown.ts"],"sourcesContent":["import removeUndefinedObjects from \"remove-undefined-objects\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockESLint } from \"./blockESLint.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockKnip } from \"./blockKnip.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockReleaseIt } from \"./blockReleaseIt.js\";\nimport { blockRemoveDependencies } from \"./blockRemoveDependencies.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\nimport { intakeFileDefineConfig } from \"./intake/intakeFileDefineConfig.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nconst zEntry = z.array(z.string());\nconst zProperties = z.record(z.unknown());\n\nexport const blockTSDown = base.createBlock({\n\tabout: {\n\t\tname: \"TSDown\",\n\t},\n\taddons: {\n\t\tentry: zEntry.default([]),\n\t\tproperties: zProperties.default({}),\n\t\trunInCI: z.array(z.string()).default([]),\n\t},\n\tintake({ files }) {\n\t\tconst rawData =\n\t\t\tintakeFileDefineConfig(files, [\"tsdown.config.ts\"]) ??\n\t\t\tintakeFileDefineConfig(files, [\"tsup.config.ts\"]);\n\t\tif (!rawData) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tconst { entry: rawEntry, ...rest } = rawData;\n\n\t\treturn {\n\t\t\tentry: zEntry.safeParse(rawEntry).data,\n\t\t\tproperties: removeUndefinedObjects({\n\t\t\t\t...zProperties.safeParse(rest).data,\n\n\t\t\t\t// In case of a tsup.config.ts migrated to tsdown.config.ts\n\t\t\t\tbundle: undefined,\n\t\t\t\tclean: rest.clean === false ? false : undefined,\n\t\t\t\tformat: rest.format === \"esm\" ? undefined : rest.format,\n\t\t\t}),\n\t\t};\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { entry, properties, runInCI } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tBuilding: {\n\t\t\t\t\t\t\tcontents: `\nRun [**tsdown**](https://tsdown.dev) locally to build source files from \\`src/\\` into output files in \\`lib/\\`:\n\n\\`\\`\\`shell\npnpm build\n\\`\\`\\`\n\nAdd \\`--watch\\` to run the builder in a watch mode that continuously cleans and recreates \\`lib/\\` as you save files:\n\n\\`\\`\\`shell\npnpm build --watch\n\\`\\`\\`\n`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockESLint({\n\t\t\t\t\tbeforeLint: `Note that you'll need to run \\`pnpm build\\` before \\`pnpm lint\\` so that lint rules which check the file system can pick up on any built files.`,\n\t\t\t\t}),\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: \"Build\",\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...runInCI.map((run) => ({ run })),\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\tblockKnip({\n\t\t\t\t\tentry: [\"src/index.ts\"],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"tsdown\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\tbuild: \"tsdown\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockReleaseIt({\n\t\t\t\t\tbuilders: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\torder: 0,\n\t\t\t\t\t\t\trun: \"pnpm build\",\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\"tsdown.config.ts\": `import { defineConfig } from \"tsdown\";\n\nexport default defineConfig(${JSON.stringify({\n\t\t\t\t\tdts: true,\n\t\t\t\t\tentry: Array.from(new Set([\"src/**/*.ts\", ...entry])),\n\t\t\t\t\tfixedExtension: false,\n\t\t\t\t\toutDir: \"lib\",\n\t\t\t\t\tunbundle: true,\n\t\t\t\t\t...properties,\n\t\t\t\t})});\n`,\n\t\t\t},\n\t\t\tscripts: options.bin\n\t\t\t\t? [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcommands: [\"pnpm build\"],\n\t\t\t\t\t\t\tphase: CommandPhase.Build,\n\t\t\t\t\t\t},\n\t\t\t\t\t]\n\t\t\t\t: undefined,\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveDependencies({\n\t\t\t\t\tdependencies: [\n\t\t\t\t\t\t\"@babel/cli\",\n\t\t\t\t\t\t\"@babel/core\",\n\t\t\t\t\t\t\"@babel/preset-typescript\",\n\t\t\t\t\t\t\"babel\",\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockRemoveFiles({\n\t\t\t\t\tfiles: [\n\t\t\t\t\t\t\".babelrc*\",\n\t\t\t\t\t\t\"babel.config.*\",\n\t\t\t\t\t\t\"dist\",\n\t\t\t\t\t\t\"lib\",\n\t\t\t\t\t\t\"tsup.config.*\",\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockRemoveWorkflows({\n\t\t\t\t\tworkflows: [\"build\", \"tsup\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,MAAM,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC;AAClC,MAAM,cAAc,EAAE,OAAO,EAAE,SAAS,CAAC;AAEzC,MAAa,cAAc,KAAK,YAAY;CAC3C,OAAO,EACN,MAAM,UACN;CACD,QAAQ;EACP,OAAO,OAAO,QAAQ,EAAE,CAAC;EACzB,YAAY,YAAY,QAAQ,EAAE,CAAC;EACnC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;EACxC;CACD,OAAO,EAAE,SAAS;EACjB,MAAM,UACL,uBAAuB,OAAO,CAAC,mBAAmB,CAAC,IACnD,uBAAuB,OAAO,CAAC,iBAAiB,CAAC;AAClD,MAAI,CAAC,QACJ;EAGD,MAAM,EAAE,OAAO,UAAU,GAAG,SAAS;AAErC,SAAO;GACN,OAAO,OAAO,UAAU,SAAS,CAAC;GAClC,YAAY,uBAAuB;IAClC,GAAG,YAAY,UAAU,KAAK,CAAC;IAG/B,QAAQ;IACR,OAAO,KAAK,UAAU,QAAQ,QAAQ;IACtC,QAAQ,KAAK,WAAW,QAAQ,SAAY,KAAK;IACjD,CAAC;GACF;;CAEF,QAAQ,EAAE,QAAQ,WAAW;EAC5B,MAAM,EAAE,OAAO,YAAY,YAAY;AAEvC,SAAO;GACN,QAAQ;IACP,qBAAqB,EACpB,UAAU,EACT,UAAU,EACT,UAAU;;;;;;;;;;;;GAaV,EACD,EACD,CAAC;IACF,YAAY,EACX,YAAY,mJACZ,CAAC;IACF,qBAAqB,EACpB,MAAM,CACL;KACC,MAAM;KACN,OAAO,CACN,EAAE,KAAK,cAAc,EACrB,GAAG,QAAQ,KAAK,SAAS,EAAE,KAAK,EAAE,CAClC;KACD,CACD,EACD,CAAC;IACF,UAAU,EACT,OAAO,CAAC,eAAe,EACvB,CAAC;IACF,iBAAiB,EAChB,YAAY;KACX,iBAAiB,uBAAuB,SAAS;KACjD,SAAS,EACR,OAAO,UACP;KACD,EACD,CAAC;IACF,eAAe,EACd,UAAU,CACT;KACC,OAAO;KACP,KAAK;KACL,CACD,EACD,CAAC;IACF;GACD,OAAO,EACN,oBAAoB;;8BAEM,KAAK,UAAU;IACxC,KAAK;IACL,OAAO,MAAM,KAAK,IAAI,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,CAAC;IACrD,gBAAgB;IAChB,QAAQ;IACR,UAAU;IACV,GAAG;IACH,CAAC,CAAC;GAEH;GACD,SAAS,QAAQ,MACd,CACA;IACC,UAAU,CAAC,aAAa;IACxB,OAAO,aAAa;IACpB,CACD,GACA;GACH;;CAEF,aAAa;AACZ,SAAO,EACN,QAAQ;GACP,wBAAwB,EACvB,cAAc;IACb;IACA;IACA;IACA;IACA,EACD,CAAC;GACF,iBAAiB,EAChB,OAAO;IACN;IACA;IACA;IACA;IACA;IACA,EACD,CAAC;GACF,qBAAqB,EACpB,WAAW,CAAC,SAAS,OAAO,EAC5B,CAAC;GACF,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum7 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockTemplatedWith.d.ts
|
|
4
|
-
declare const blockTemplatedWith:
|
|
4
|
+
declare const blockTemplatedWith: bingo_stratum7.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -69,7 +69,6 @@ declare const blockTemplatedWith: bingo_stratum1153.BlockWithoutAddons<{
|
|
|
69
69
|
hash?: string | undefined;
|
|
70
70
|
}>> | undefined;
|
|
71
71
|
}>;
|
|
72
|
-
//# sourceMappingURL=blockTemplatedWith.d.ts.map
|
|
73
72
|
//#endregion
|
|
74
73
|
export { blockTemplatedWith };
|
|
75
74
|
//# sourceMappingURL=blockTemplatedWith.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockTemplatedWith.d.ts","names":[],"sources":["../../src/blocks/blockTemplatedWith.ts"],"sourcesContent":[],"mappings":";;;cAGa,
|
|
1
|
+
{"version":3,"file":"blockTemplatedWith.d.ts","names":[],"sources":["../../src/blocks/blockTemplatedWith.ts"],"sourcesContent":[],"mappings":";;;cAGa,mCAAkB;;;EAAlB,SAAA,EAAA,MAAA;;;;;;;;;;EAAkB,KAAA,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockTemplatedWith.js","names":[],"sources":["../../src/blocks/blockTemplatedWith.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockREADME } from \"./blockREADME.js\";\n\nexport const blockTemplatedWith = base.createBlock({\n\tabout: {\n\t\tname: \"Templated With\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockREADME({\n\t\t\t\t\tnotices: [\n\t\t\t\t\t\toptions.owner !== \"JoshuaKGoldberg\" &&\n\t\t\t\t\t\t\t`\n<!-- You can remove this notice if you don't want it 🙂 no worries! -->`,\n\t\t\t\t\t\t`> 💝 This package was templated with [\\`create-typescript-app\\`](https://github.com/JoshuaKGoldberg/create-typescript-app) using the [Bingo framework](https://create.bingo).\n`,\n\t\t\t\t\t].filter((notice) => typeof notice === \"string\"),\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,qBAAqB,KAAK,YAAY;CAClD,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockTemplatedWith.js","names":[],"sources":["../../src/blocks/blockTemplatedWith.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockREADME } from \"./blockREADME.js\";\n\nexport const blockTemplatedWith = base.createBlock({\n\tabout: {\n\t\tname: \"Templated With\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockREADME({\n\t\t\t\t\tnotices: [\n\t\t\t\t\t\toptions.owner !== \"JoshuaKGoldberg\" &&\n\t\t\t\t\t\t\t`\n<!-- You can remove this notice if you don't want it 🙂 no worries! -->`,\n\t\t\t\t\t\t`> 💝 This package was templated with [\\`create-typescript-app\\`](https://github.com/JoshuaKGoldberg/create-typescript-app) using the [Bingo framework](https://create.bingo).\n`,\n\t\t\t\t\t].filter((notice) => typeof notice === \"string\"),\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,qBAAqB,KAAK,YAAY;CAClD,OAAO,EACN,MAAM,kBACN;CACD,QAAQ,EAAE,WAAW;AACpB,SAAO,EACN,QAAQ,CACP,YAAY,EACX,SAAS,CACR,QAAQ,UAAU,qBACjB;0EAED;EAEA,CAAC,QAAQ,WAAW,OAAO,WAAW,SAAS,EAChD,CAAC,CACF,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum8 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockTypeScript.d.ts
|
|
4
|
-
declare const blockTypeScript:
|
|
4
|
+
declare const blockTypeScript: bingo_stratum8.BlockWithAddons<{
|
|
5
5
|
compilerOptions?: {
|
|
6
6
|
allowArbitraryExtensions?: boolean | undefined;
|
|
7
7
|
allowImportingTsExtensions?: boolean | undefined;
|
|
@@ -181,7 +181,6 @@ declare const blockTypeScript: bingo_stratum1154.BlockWithAddons<{
|
|
|
181
181
|
hash?: string | undefined;
|
|
182
182
|
}>> | undefined;
|
|
183
183
|
}>;
|
|
184
|
-
//# sourceMappingURL=blockTypeScript.d.ts.map
|
|
185
184
|
//#endregion
|
|
186
185
|
export { blockTypeScript };
|
|
187
186
|
//# sourceMappingURL=blockTypeScript.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockTypeScript.d.ts","names":[],"sources":["../../src/blocks/blockTypeScript.ts"],"sourcesContent":[],"mappings":";;;cAkBa,
|
|
1
|
+
{"version":3,"file":"blockTypeScript.d.ts","names":[],"sources":["../../src/blocks/blockTypeScript.ts"],"sourcesContent":[],"mappings":";;;cAkBa,gCAAe;;;IAAf,0BA+JX,CAAA,EAAA,OAAA,GAAA,SAAA;;;;;;;;;;oBA/J0B,CAAA,EAAA,MAAA,EAAA,GAAA,SAAA;IAAA,WAAA,CAAA,EAAA,OAAA,GAAA,SAAA"}
|
|
@@ -22,7 +22,7 @@ const blockTypeScript = base.createBlock({
|
|
|
22
22
|
intake({ files }) {
|
|
23
23
|
const raw = intakeFileAsJson(files, ["tsconfig.json"]);
|
|
24
24
|
const { data } = CompilerOptionsSchema.safeParse(raw?.compilerOptions);
|
|
25
|
-
if (!data) return
|
|
25
|
+
if (!data) return;
|
|
26
26
|
return { compilerOptions: data };
|
|
27
27
|
},
|
|
28
28
|
produce({ addons, options }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockTypeScript.js","names":[],"sources":["../../src/blocks/blockTypeScript.ts"],"sourcesContent":["import sortKeys from \"sort-keys\";\nimport { CompilerOptionsSchema } from \"zod-tsconfig\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { getPrimaryBin } from \"./bin/getPrimaryBin.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockExampleFiles } from \"./blockExampleFiles.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockGitignore } from \"./blockGitignore.js\";\nimport { blockKnip } from \"./blockKnip.js\";\nimport { blockMarkdownlint } from \"./blockMarkdownlint.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\nimport { blockVitest } from \"./blockVitest.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { intakeFileAsJson } from \"./intake/intakeFileAsJson.js\";\n\nexport const blockTypeScript = base.createBlock({\n\tabout: {\n\t\tname: \"TypeScript\",\n\t},\n\taddons: {\n\t\tcompilerOptions: CompilerOptionsSchema.optional(),\n\t},\n\tintake({ files }) {\n\t\tconst raw = intakeFileAsJson(files, [\"tsconfig.json\"]);\n\t\tconst { data } = CompilerOptionsSchema.safeParse(raw?.compilerOptions);\n\t\tif (!data) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn {\n\t\t\tcompilerOptions: data,\n\t\t};\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { compilerOptions } = addons;\n\t\tconst primaryBin = getPrimaryBin(options.bin, options.repository);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\t\"Type Checking\": {\n\t\t\t\t\t\t\tcontents: `\nYou should be able to see suggestions from [TypeScript](https://typescriptlang.org) in your editor for all open files.\n\nHowever, it can be useful to run the TypeScript command-line (\\`tsc\\`) to type check all files in \\`src/\\`:\n\n\\`\\`\\`shell\npnpm tsc\n\\`\\`\\`\n\nAdd \\`--watch\\` to keep the type checker running in a watch mode that updates the display as you save files:\n\n\\`\\`\\`shell\npnpm tsc --watch\n\\`\\`\\`\n`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockExampleFiles({\n\t\t\t\t\tfiles: {\n\t\t\t\t\t\t\"greet.ts\": `import { GreetOptions } from \"./types.js\";\n\t\n\texport function greet(options: GreetOptions | string) {\n\t\tconst {\n\t\t\tlogger = console.log.bind(console),\n\t\t\tmessage,\n\t\t\ttimes = 1,\n\t\t} = typeof options === \"string\" ? { message: options } : options;\n\t\n\t\tfor (let i = 0; i < times; i += 1) {\n\t\t\tlogger(message);\n\t\t}\n\t}\n\t`,\n\t\t\t\t\t\t\"index.ts\": `export * from \"./greet.js\";\nexport * from \"./types.js\";\n`,\n\t\t\t\t\t\t\"types.ts\": `export interface GreetOptions {\n\t\tlogger?: (message: string) => void;\n\t\tmessage: string;\n\t\ttimes?: number;\n\t}\n\t`,\n\t\t\t\t\t},\n\t\t\t\t\tusage: [\n\t\t\t\t\t\t`\\`\\`\\`shell\nnpm i ${options.repository}\n\\`\\`\\`\n\\`\\`\\`ts\nimport { greet } from \"${options.repository}\";\n\ngreet(\"Hello, world! ${options.emoji}\");\n\\`\\`\\``,\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockGitignore({\n\t\t\t\t\tignores: [\"/lib\"],\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [{ name: \"Type Check\", steps: [{ run: \"pnpm tsc\" }] }],\n\t\t\t\t}),\n\t\t\t\tblockKnip({\n\t\t\t\t\tproject: [\"src/**/*.ts\"],\n\t\t\t\t}),\n\t\t\t\tblockMarkdownlint({\n\t\t\t\t\tignores: [\"lib/\"],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"typescript\"),\n\t\t\t\t\t\tfiles: [\"lib/\"],\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\ttsc: \"tsc\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVitest({ coverage: { include: [\"src\"] }, exclude: [\"lib\"] }),\n\t\t\t\tblockVSCode({\n\t\t\t\t\tdebuggers: primaryBin\n\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: \"Debug Program\",\n\t\t\t\t\t\t\t\t\tpreLaunchTask: \"build\",\n\t\t\t\t\t\t\t\t\tprogram: primaryBin,\n\t\t\t\t\t\t\t\t\trequest: \"launch\",\n\t\t\t\t\t\t\t\t\tskipFiles: [\"<node_internals>/**\"],\n\t\t\t\t\t\t\t\t\ttype: \"node\",\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\tsettings: {\n\t\t\t\t\t\t\"typescript.tsdk\": \"node_modules/typescript/lib\",\n\t\t\t\t\t},\n\t\t\t\t\ttasks: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdetail: \"Build the project\",\n\t\t\t\t\t\t\tlabel: \"build\",\n\t\t\t\t\t\t\tscript: \"build\",\n\t\t\t\t\t\t\ttype: \"npm\",\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\"tsconfig.json\": JSON.stringify({\n\t\t\t\t\tcompilerOptions: sortKeys({\n\t\t\t\t\t\tdeclaration: true,\n\t\t\t\t\t\tdeclarationMap: true,\n\t\t\t\t\t\tesModuleInterop: true,\n\t\t\t\t\t\tmodule: \"NodeNext\",\n\t\t\t\t\t\tmoduleResolution: \"NodeNext\",\n\t\t\t\t\t\tnoEmit: true,\n\t\t\t\t\t\tresolveJsonModule: true,\n\t\t\t\t\t\tskipLibCheck: true,\n\t\t\t\t\t\tstrict: true,\n\t\t\t\t\t\ttarget: \"ES2022\",\n\t\t\t\t\t\t...compilerOptions,\n\t\t\t\t\t}),\n\t\t\t\t\tinclude: [\"src\"],\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveWorkflows({\n\t\t\t\t\tworkflows: [\"tsc\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,MAAa,kBAAkB,KAAK,YAAY;CAC/C,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockTypeScript.js","names":[],"sources":["../../src/blocks/blockTypeScript.ts"],"sourcesContent":["import sortKeys from \"sort-keys\";\nimport { CompilerOptionsSchema } from \"zod-tsconfig\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { getPrimaryBin } from \"./bin/getPrimaryBin.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockExampleFiles } from \"./blockExampleFiles.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockGitignore } from \"./blockGitignore.js\";\nimport { blockKnip } from \"./blockKnip.js\";\nimport { blockMarkdownlint } from \"./blockMarkdownlint.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\nimport { blockVitest } from \"./blockVitest.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { intakeFileAsJson } from \"./intake/intakeFileAsJson.js\";\n\nexport const blockTypeScript = base.createBlock({\n\tabout: {\n\t\tname: \"TypeScript\",\n\t},\n\taddons: {\n\t\tcompilerOptions: CompilerOptionsSchema.optional(),\n\t},\n\tintake({ files }) {\n\t\tconst raw = intakeFileAsJson(files, [\"tsconfig.json\"]);\n\t\tconst { data } = CompilerOptionsSchema.safeParse(raw?.compilerOptions);\n\t\tif (!data) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn {\n\t\t\tcompilerOptions: data,\n\t\t};\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { compilerOptions } = addons;\n\t\tconst primaryBin = getPrimaryBin(options.bin, options.repository);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\t\"Type Checking\": {\n\t\t\t\t\t\t\tcontents: `\nYou should be able to see suggestions from [TypeScript](https://typescriptlang.org) in your editor for all open files.\n\nHowever, it can be useful to run the TypeScript command-line (\\`tsc\\`) to type check all files in \\`src/\\`:\n\n\\`\\`\\`shell\npnpm tsc\n\\`\\`\\`\n\nAdd \\`--watch\\` to keep the type checker running in a watch mode that updates the display as you save files:\n\n\\`\\`\\`shell\npnpm tsc --watch\n\\`\\`\\`\n`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockExampleFiles({\n\t\t\t\t\tfiles: {\n\t\t\t\t\t\t\"greet.ts\": `import { GreetOptions } from \"./types.js\";\n\t\n\texport function greet(options: GreetOptions | string) {\n\t\tconst {\n\t\t\tlogger = console.log.bind(console),\n\t\t\tmessage,\n\t\t\ttimes = 1,\n\t\t} = typeof options === \"string\" ? { message: options } : options;\n\t\n\t\tfor (let i = 0; i < times; i += 1) {\n\t\t\tlogger(message);\n\t\t}\n\t}\n\t`,\n\t\t\t\t\t\t\"index.ts\": `export * from \"./greet.js\";\nexport * from \"./types.js\";\n`,\n\t\t\t\t\t\t\"types.ts\": `export interface GreetOptions {\n\t\tlogger?: (message: string) => void;\n\t\tmessage: string;\n\t\ttimes?: number;\n\t}\n\t`,\n\t\t\t\t\t},\n\t\t\t\t\tusage: [\n\t\t\t\t\t\t`\\`\\`\\`shell\nnpm i ${options.repository}\n\\`\\`\\`\n\\`\\`\\`ts\nimport { greet } from \"${options.repository}\";\n\ngreet(\"Hello, world! ${options.emoji}\");\n\\`\\`\\``,\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockGitignore({\n\t\t\t\t\tignores: [\"/lib\"],\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [{ name: \"Type Check\", steps: [{ run: \"pnpm tsc\" }] }],\n\t\t\t\t}),\n\t\t\t\tblockKnip({\n\t\t\t\t\tproject: [\"src/**/*.ts\"],\n\t\t\t\t}),\n\t\t\t\tblockMarkdownlint({\n\t\t\t\t\tignores: [\"lib/\"],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"typescript\"),\n\t\t\t\t\t\tfiles: [\"lib/\"],\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\ttsc: \"tsc\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVitest({ coverage: { include: [\"src\"] }, exclude: [\"lib\"] }),\n\t\t\t\tblockVSCode({\n\t\t\t\t\tdebuggers: primaryBin\n\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: \"Debug Program\",\n\t\t\t\t\t\t\t\t\tpreLaunchTask: \"build\",\n\t\t\t\t\t\t\t\t\tprogram: primaryBin,\n\t\t\t\t\t\t\t\t\trequest: \"launch\",\n\t\t\t\t\t\t\t\t\tskipFiles: [\"<node_internals>/**\"],\n\t\t\t\t\t\t\t\t\ttype: \"node\",\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\tsettings: {\n\t\t\t\t\t\t\"typescript.tsdk\": \"node_modules/typescript/lib\",\n\t\t\t\t\t},\n\t\t\t\t\ttasks: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdetail: \"Build the project\",\n\t\t\t\t\t\t\tlabel: \"build\",\n\t\t\t\t\t\t\tscript: \"build\",\n\t\t\t\t\t\t\ttype: \"npm\",\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\"tsconfig.json\": JSON.stringify({\n\t\t\t\t\tcompilerOptions: sortKeys({\n\t\t\t\t\t\tdeclaration: true,\n\t\t\t\t\t\tdeclarationMap: true,\n\t\t\t\t\t\tesModuleInterop: true,\n\t\t\t\t\t\tmodule: \"NodeNext\",\n\t\t\t\t\t\tmoduleResolution: \"NodeNext\",\n\t\t\t\t\t\tnoEmit: true,\n\t\t\t\t\t\tresolveJsonModule: true,\n\t\t\t\t\t\tskipLibCheck: true,\n\t\t\t\t\t\tstrict: true,\n\t\t\t\t\t\ttarget: \"ES2022\",\n\t\t\t\t\t\t...compilerOptions,\n\t\t\t\t\t}),\n\t\t\t\t\tinclude: [\"src\"],\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveWorkflows({\n\t\t\t\t\tworkflows: [\"tsc\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,MAAa,kBAAkB,KAAK,YAAY;CAC/C,OAAO,EACN,MAAM,cACN;CACD,QAAQ,EACP,iBAAiB,sBAAsB,UAAU,EACjD;CACD,OAAO,EAAE,SAAS;EACjB,MAAM,MAAM,iBAAiB,OAAO,CAAC,gBAAgB,CAAC;EACtD,MAAM,EAAE,SAAS,sBAAsB,UAAU,KAAK,gBAAgB;AACtE,MAAI,CAAC,KACJ;AAGD,SAAO,EACN,iBAAiB,MACjB;;CAEF,QAAQ,EAAE,QAAQ,WAAW;EAC5B,MAAM,EAAE,oBAAoB;EAC5B,MAAM,aAAa,cAAc,QAAQ,KAAK,QAAQ,WAAW;AAEjE,SAAO;GACN,QAAQ;IACP,qBAAqB,EACpB,UAAU,EACT,iBAAiB,EAChB,UAAU;;;;;;;;;;;;;;GAeV,EACD,EACD,CAAC;IACF,kBAAkB;KACjB,OAAO;MACN,YAAY;;;;;;;;;;;;;;MAcZ,YAAY;;;MAGZ,YAAY;;;;;;MAMZ;KACD,OAAO,CACN;QACE,QAAQ,WAAW;;;yBAGF,QAAQ,WAAW;;uBAErB,QAAQ,MAAM;QAE/B;KACD,CAAC;IACF,eAAe,EACd,SAAS,CAAC,OAAO,EACjB,CAAC;IACF,qBAAqB,EACpB,MAAM,CAAC;KAAE,MAAM;KAAc,OAAO,CAAC,EAAE,KAAK,YAAY,CAAC;KAAE,CAAC,EAC5D,CAAC;IACF,UAAU,EACT,SAAS,CAAC,cAAc,EACxB,CAAC;IACF,kBAAkB,EACjB,SAAS,CAAC,OAAO,EACjB,CAAC;IACF,iBAAiB,EAChB,YAAY;KACX,iBAAiB,uBAAuB,aAAa;KACrD,OAAO,CAAC,OAAO;KACf,SAAS,EACR,KAAK,OACL;KACD,EACD,CAAC;IACF,YAAY;KAAE,UAAU,EAAE,SAAS,CAAC,MAAM,EAAE;KAAE,SAAS,CAAC,MAAM;KAAE,CAAC;IACjE,YAAY;KACX,WAAW,aACR,CACA;MACC,MAAM;MACN,eAAe;MACf,SAAS;MACT,SAAS;MACT,WAAW,CAAC,sBAAsB;MAClC,MAAM;MACN,CACD,GACA,EAAE;KACL,UAAU,EACT,mBAAmB,+BACnB;KACD,OAAO,CACN;MACC,QAAQ;MACR,OAAO;MACP,QAAQ;MACR,MAAM;MACN,CACD;KACD,CAAC;IACF;GACD,OAAO,EACN,iBAAiB,KAAK,UAAU;IAC/B,iBAAiB,SAAS;KACzB,aAAa;KACb,gBAAgB;KAChB,iBAAiB;KACjB,QAAQ;KACR,kBAAkB;KAClB,QAAQ;KACR,mBAAmB;KACnB,cAAc;KACd,QAAQ;KACR,QAAQ;KACR,GAAG;KACH,CAAC;IACF,SAAS,CAAC,MAAM;IAChB,CAAC,EACF;GACD;;CAEF,aAAa;AACZ,SAAO,EACN,QAAQ,CACP,qBAAqB,EACpB,WAAW,CAAC,MAAM,EAClB,CAAC,CACF,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum9 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockVSCode.d.ts
|
|
4
|
-
declare const blockVSCode:
|
|
4
|
+
declare const blockVSCode: bingo_stratum9.BlockWithAddons<{
|
|
5
5
|
settings: Record<string, unknown>;
|
|
6
6
|
debuggers?: (Record<string, unknown> & {
|
|
7
7
|
name: string;
|
|
@@ -78,7 +78,6 @@ declare const blockVSCode: bingo_stratum1088.BlockWithAddons<{
|
|
|
78
78
|
hash?: string | undefined;
|
|
79
79
|
}>> | undefined;
|
|
80
80
|
}>;
|
|
81
|
-
//# sourceMappingURL=blockVSCode.d.ts.map
|
|
82
81
|
//#endregion
|
|
83
82
|
export { blockVSCode };
|
|
84
83
|
//# sourceMappingURL=blockVSCode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockVSCode.d.ts","names":[],"sources":["../../src/blocks/blockVSCode.ts"],"sourcesContent":[],"mappings":";;;cAOa
|
|
1
|
+
{"version":3,"file":"blockVSCode.d.ts","names":[],"sources":["../../src/blocks/blockVSCode.ts"],"sourcesContent":[],"mappings":";;;cAOa,4BAAW;;;IAAX,IAAA,EAAA,MAgGX;;;;;;;;;;;;gBAhGsB,CAAA,EAAA,MAAA,GAAA,SAAA;MAAA,SAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockVSCode.js","names":[],"sources":["../../src/blocks/blockVSCode.ts"],"sourcesContent":["import sortKeys from \"sort-keys\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPrimaryBin } from \"./bin/getPrimaryBin.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\n\nexport const blockVSCode = base.createBlock({\n\tabout: {\n\t\tname: \"VS Code\",\n\t},\n\taddons: {\n\t\tdebuggers: z\n\t\t\t.array(\n\t\t\t\tz.intersection(\n\t\t\t\t\tz.record(z.string(), z.unknown()),\n\t\t\t\t\tz.object({ name: z.string() }),\n\t\t\t\t),\n\t\t\t)\n\t\t\t.optional(),\n\t\textensions: z.array(z.string()).optional(),\n\t\tsettings: z.record(z.string(), z.unknown()).default({}),\n\t\ttasks: z\n\t\t\t.array(\n\t\t\t\tz.intersection(\n\t\t\t\t\tz.object({ detail: z.string() }),\n\t\t\t\t\tz.record(z.string(), z.unknown()),\n\t\t\t\t),\n\t\t\t)\n\t\t\t.optional(),\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { debuggers, extensions, settings, tasks } = addons;\n\t\tconst primaryBin = getPrimaryBin(options.bin, options.repository);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\thints: [\n\t\t\t\t\t\t`> This repository includes a list of suggested VS Code extensions.`,\n\t\t\t\t\t\t`> It's a good idea to use [VS Code](https://code.visualstudio.com) and accept its suggestion to install them, as they'll help with development.`,\n\t\t\t\t\t],\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tBuilding: {\n\t\t\t\t\t\t\tinnerSections: primaryBin\n\t\t\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tcontents: `\nThis repository includes a [VS Code launch configuration](https://code.visualstudio.com/docs/editor/debugging) for debugging.\nTo debug a \\`bin\\` app, add a breakpoint to your code, then run _Debug Program_ from the VS Code Debug panel (or press F5).\nVS Code will automatically run the \\`build\\` task in the background before running \\`${primaryBin}\\`.\n`,\n\t\t\t\t\t\t\t\t\t\t\theading: \"Built App Debugging\",\n\t\t\t\t\t\t\t\t\t\t},\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},\n\t\t\t\t\t\tTesting: {\n\t\t\t\t\t\t\tinnerSections: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcontents: `\nThis repository includes a [VS Code launch configuration](https://code.visualstudio.com/docs/editor/debugging) for debugging unit tests.\nTo launch it, open a test file, then run _Debug Current Test File_ from the VS Code Debug panel (or press F5).\n`,\n\t\t\t\t\t\t\t\t\theading: \"Debugging Tests\",\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\tfiles: {\n\t\t\t\t\".vscode\": {\n\t\t\t\t\t\"extensions.json\": extensions?.length\n\t\t\t\t\t\t? JSON.stringify({\n\t\t\t\t\t\t\t\trecommendations: [...extensions].sort(),\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\"launch.json\": debuggers?.length\n\t\t\t\t\t\t? JSON.stringify({\n\t\t\t\t\t\t\t\tconfigurations: [...debuggers].sort((a, b) =>\n\t\t\t\t\t\t\t\t\ta.name.localeCompare(b.name),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tversion: \"0.2.0\",\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\"settings.json\": JSON.stringify(\n\t\t\t\t\t\tsortKeys({\n\t\t\t\t\t\t\t\"editor.formatOnSave\": true,\n\t\t\t\t\t\t\t\"editor.rulers\": [80],\n\t\t\t\t\t\t\t...settings,\n\t\t\t\t\t\t}),\n\t\t\t\t\t),\n\t\t\t\t\t\"tasks.json\": tasks?.length\n\t\t\t\t\t\t? JSON.stringify({\n\t\t\t\t\t\t\t\ttasks: tasks.sort((a, b) => a.detail.localeCompare(b.detail)),\n\t\t\t\t\t\t\t\tversion: \"2.0.0\",\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: undefined,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;AAOA,MAAa,cAAc,KAAK,YAAY;CAC3C,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockVSCode.js","names":[],"sources":["../../src/blocks/blockVSCode.ts"],"sourcesContent":["import sortKeys from \"sort-keys\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPrimaryBin } from \"./bin/getPrimaryBin.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\n\nexport const blockVSCode = base.createBlock({\n\tabout: {\n\t\tname: \"VS Code\",\n\t},\n\taddons: {\n\t\tdebuggers: z\n\t\t\t.array(\n\t\t\t\tz.intersection(\n\t\t\t\t\tz.record(z.string(), z.unknown()),\n\t\t\t\t\tz.object({ name: z.string() }),\n\t\t\t\t),\n\t\t\t)\n\t\t\t.optional(),\n\t\textensions: z.array(z.string()).optional(),\n\t\tsettings: z.record(z.string(), z.unknown()).default({}),\n\t\ttasks: z\n\t\t\t.array(\n\t\t\t\tz.intersection(\n\t\t\t\t\tz.object({ detail: z.string() }),\n\t\t\t\t\tz.record(z.string(), z.unknown()),\n\t\t\t\t),\n\t\t\t)\n\t\t\t.optional(),\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { debuggers, extensions, settings, tasks } = addons;\n\t\tconst primaryBin = getPrimaryBin(options.bin, options.repository);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\thints: [\n\t\t\t\t\t\t`> This repository includes a list of suggested VS Code extensions.`,\n\t\t\t\t\t\t`> It's a good idea to use [VS Code](https://code.visualstudio.com) and accept its suggestion to install them, as they'll help with development.`,\n\t\t\t\t\t],\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tBuilding: {\n\t\t\t\t\t\t\tinnerSections: primaryBin\n\t\t\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tcontents: `\nThis repository includes a [VS Code launch configuration](https://code.visualstudio.com/docs/editor/debugging) for debugging.\nTo debug a \\`bin\\` app, add a breakpoint to your code, then run _Debug Program_ from the VS Code Debug panel (or press F5).\nVS Code will automatically run the \\`build\\` task in the background before running \\`${primaryBin}\\`.\n`,\n\t\t\t\t\t\t\t\t\t\t\theading: \"Built App Debugging\",\n\t\t\t\t\t\t\t\t\t\t},\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},\n\t\t\t\t\t\tTesting: {\n\t\t\t\t\t\t\tinnerSections: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcontents: `\nThis repository includes a [VS Code launch configuration](https://code.visualstudio.com/docs/editor/debugging) for debugging unit tests.\nTo launch it, open a test file, then run _Debug Current Test File_ from the VS Code Debug panel (or press F5).\n`,\n\t\t\t\t\t\t\t\t\theading: \"Debugging Tests\",\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\tfiles: {\n\t\t\t\t\".vscode\": {\n\t\t\t\t\t\"extensions.json\": extensions?.length\n\t\t\t\t\t\t? JSON.stringify({\n\t\t\t\t\t\t\t\trecommendations: [...extensions].sort(),\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\"launch.json\": debuggers?.length\n\t\t\t\t\t\t? JSON.stringify({\n\t\t\t\t\t\t\t\tconfigurations: [...debuggers].sort((a, b) =>\n\t\t\t\t\t\t\t\t\ta.name.localeCompare(b.name),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tversion: \"0.2.0\",\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\"settings.json\": JSON.stringify(\n\t\t\t\t\t\tsortKeys({\n\t\t\t\t\t\t\t\"editor.formatOnSave\": true,\n\t\t\t\t\t\t\t\"editor.rulers\": [80],\n\t\t\t\t\t\t\t...settings,\n\t\t\t\t\t\t}),\n\t\t\t\t\t),\n\t\t\t\t\t\"tasks.json\": tasks?.length\n\t\t\t\t\t\t? JSON.stringify({\n\t\t\t\t\t\t\t\ttasks: tasks.sort((a, b) => a.detail.localeCompare(b.detail)),\n\t\t\t\t\t\t\t\tversion: \"2.0.0\",\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: undefined,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;AAOA,MAAa,cAAc,KAAK,YAAY;CAC3C,OAAO,EACN,MAAM,WACN;CACD,QAAQ;EACP,WAAW,EACT,MACA,EAAE,aACD,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,EACjC,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAC9B,CACD,CACA,UAAU;EACZ,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU;EAC1C,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC;EACvD,OAAO,EACL,MACA,EAAE,aACD,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAChC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,CACjC,CACD,CACA,UAAU;EACZ;CACD,QAAQ,EAAE,QAAQ,WAAW;EAC5B,MAAM,EAAE,WAAW,YAAY,UAAU,UAAU;EACnD,MAAM,aAAa,cAAc,QAAQ,KAAK,QAAQ,WAAW;AAEjE,SAAO;GACN,QAAQ,CACP,qBAAqB;IACpB,OAAO,CACN,sEACA,kJACA;IACD,UAAU;KACT,UAAU,EACT,eAAe,aACZ,CACA;MACC,UAAU;;;uFAGkE,WAAW;;MAEvF,SAAS;MACT,CACD,GACA,EAAE,EACL;KACD,SAAS,EACR,eAAe,CACd;MACC,UAAU;;;;MAIV,SAAS;MACT,CACD,EACD;KACD;IACD,CAAC,CACF;GACD,OAAO,EACN,WAAW;IACV,mBAAmB,YAAY,SAC5B,KAAK,UAAU,EACf,iBAAiB,CAAC,GAAG,WAAW,CAAC,MAAM,EACvC,CAAC,GACD;IACH,eAAe,WAAW,SACvB,KAAK,UAAU;KACf,gBAAgB,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,MACvC,EAAE,KAAK,cAAc,EAAE,KAAK,CAC5B;KACD,SAAS;KACT,CAAC,GACD;IACH,iBAAiB,KAAK,UACrB,SAAS;KACR,uBAAuB;KACvB,iBAAiB,CAAC,GAAG;KACrB,GAAG;KACH,CAAC,CACF;IACD,cAAc,OAAO,SAClB,KAAK,UAAU;KACf,OAAO,MAAM,MAAM,GAAG,MAAM,EAAE,OAAO,cAAc,EAAE,OAAO,CAAC;KAC7D,SAAS;KACT,CAAC,GACD;IACH,EACD;GACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum10 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockVitest.d.ts
|
|
4
|
-
declare const blockVitest:
|
|
4
|
+
declare const blockVitest: bingo_stratum10.BlockWithAddons<{
|
|
5
5
|
exclude: string[];
|
|
6
6
|
actionSteps: ({
|
|
7
7
|
env?: Record<string, string> | undefined;
|
|
@@ -86,7 +86,6 @@ declare const blockVitest: bingo_stratum1095.BlockWithAddons<{
|
|
|
86
86
|
hash?: string | undefined;
|
|
87
87
|
}>> | undefined;
|
|
88
88
|
}>;
|
|
89
|
-
//# sourceMappingURL=blockVitest.d.ts.map
|
|
90
89
|
//#endregion
|
|
91
90
|
export { blockVitest };
|
|
92
91
|
//# sourceMappingURL=blockVitest.d.ts.map
|