create-typescript-app 2.45.0 → 2.46.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/base.d.ts +170 -167
- package/lib/base.d.ts.map +1 -0
- package/lib/base.js +132 -204
- package/lib/base.js.map +1 -0
- package/lib/blocks/actions/resolveUses.d.ts +5 -2
- package/lib/blocks/actions/resolveUses.d.ts.map +1 -0
- package/lib/blocks/actions/resolveUses.js +13 -20
- package/lib/blocks/actions/resolveUses.js.map +1 -0
- package/lib/blocks/actions/steps.d.ts +25 -21
- package/lib/blocks/actions/steps.d.ts.map +1 -0
- package/lib/blocks/actions/steps.js +18 -23
- package/lib/blocks/actions/steps.js.map +1 -0
- package/lib/blocks/bin/getPrimaryBin.d.ts +4 -0
- package/lib/blocks/bin/getPrimaryBin.d.ts.map +1 -0
- package/lib/blocks/bin/getPrimaryBin.js +6 -4
- package/lib/blocks/bin/getPrimaryBin.js.map +1 -0
- package/lib/blocks/blockAllContributors.d.ts +70 -67
- package/lib/blocks/blockAllContributors.d.ts.map +1 -0
- package/lib/blocks/blockAllContributors.js +122 -170
- package/lib/blocks/blockAllContributors.js.map +1 -0
- package/lib/blocks/blockAreTheTypesWrong.d.ts +70 -67
- package/lib/blocks/blockAreTheTypesWrong.d.ts.map +1 -0
- package/lib/blocks/blockAreTheTypesWrong.js +13 -25
- package/lib/blocks/blockAreTheTypesWrong.js.map +1 -0
- package/lib/blocks/blockCSpell.d.ts +72 -69
- package/lib/blocks/blockCSpell.d.ts.map +1 -0
- package/lib/blocks/blockCSpell.js +68 -105
- package/lib/blocks/blockCSpell.js.map +1 -0
- package/lib/blocks/blockCTATransitions.d.ts +70 -67
- package/lib/blocks/blockCTATransitions.d.ts.map +1 -0
- package/lib/blocks/blockCTATransitions.js +108 -158
- package/lib/blocks/blockCTATransitions.js.map +1 -0
- package/lib/blocks/blockCodecov.d.ts +71 -68
- package/lib/blocks/blockCodecov.d.ts.map +1 -0
- package/lib/blocks/blockCodecov.js +48 -75
- package/lib/blocks/blockCodecov.js.map +1 -0
- package/lib/blocks/blockContributingDocs.d.ts +70 -67
- package/lib/blocks/blockContributingDocs.d.ts.map +1 -0
- package/lib/blocks/blockContributingDocs.js +14 -21
- package/lib/blocks/blockContributingDocs.js.map +1 -0
- package/lib/blocks/blockContributorCovenant.d.ts +70 -67
- package/lib/blocks/blockContributorCovenant.d.ts.map +1 -0
- package/lib/blocks/blockContributorCovenant.js +23 -37
- package/lib/blocks/blockContributorCovenant.js.map +1 -0
- package/lib/blocks/blockDevelopmentDocs.d.ts +83 -80
- package/lib/blocks/blockDevelopmentDocs.d.ts.map +1 -0
- package/lib/blocks/blockDevelopmentDocs.js +64 -74
- package/lib/blocks/blockDevelopmentDocs.js.map +1 -0
- package/lib/blocks/blockESLint.d.ts +95 -92
- package/lib/blocks/blockESLint.d.ts.map +1 -0
- package/lib/blocks/blockESLint.js +169 -263
- package/lib/blocks/blockESLint.js.map +1 -0
- package/lib/blocks/blockESLintComments.d.ts +70 -67
- package/lib/blocks/blockESLintComments.d.ts.map +1 -0
- package/lib/blocks/blockESLintComments.js +16 -21
- package/lib/blocks/blockESLintComments.js.map +1 -0
- package/lib/blocks/blockESLintJSDoc.d.ts +70 -67
- package/lib/blocks/blockESLintJSDoc.d.ts.map +1 -0
- package/lib/blocks/blockESLintJSDoc.js +20 -20
- package/lib/blocks/blockESLintJSDoc.js.map +1 -0
- package/lib/blocks/blockESLintJSONC.d.ts +70 -67
- package/lib/blocks/blockESLintJSONC.d.ts.map +1 -0
- package/lib/blocks/blockESLintJSONC.js +16 -16
- package/lib/blocks/blockESLintJSONC.js.map +1 -0
- package/lib/blocks/blockESLintMarkdown.d.ts +70 -67
- package/lib/blocks/blockESLintMarkdown.d.ts.map +1 -0
- package/lib/blocks/blockESLintMarkdown.js +17 -22
- package/lib/blocks/blockESLintMarkdown.js.map +1 -0
- package/lib/blocks/blockESLintMoreStyling.d.ts +70 -67
- package/lib/blocks/blockESLintMoreStyling.d.ts.map +1 -0
- package/lib/blocks/blockESLintMoreStyling.js +22 -30
- package/lib/blocks/blockESLintMoreStyling.js.map +1 -0
- package/lib/blocks/blockESLintNode.d.ts +70 -67
- package/lib/blocks/blockESLintNode.d.ts.map +1 -0
- package/lib/blocks/blockESLintNode.js +20 -23
- package/lib/blocks/blockESLintNode.js.map +1 -0
- package/lib/blocks/blockESLintPackageJson.d.ts +70 -67
- package/lib/blocks/blockESLintPackageJson.d.ts.map +1 -0
- package/lib/blocks/blockESLintPackageJson.js +26 -49
- package/lib/blocks/blockESLintPackageJson.js.map +1 -0
- package/lib/blocks/blockESLintPerfectionist.d.ts +70 -67
- package/lib/blocks/blockESLintPerfectionist.d.ts.map +1 -0
- package/lib/blocks/blockESLintPerfectionist.js +20 -27
- package/lib/blocks/blockESLintPerfectionist.js.map +1 -0
- package/lib/blocks/blockESLintPlugin.d.ts +71 -68
- package/lib/blocks/blockESLintPlugin.d.ts.map +1 -0
- package/lib/blocks/blockESLintPlugin.js +89 -137
- package/lib/blocks/blockESLintPlugin.js.map +1 -0
- package/lib/blocks/blockESLintRegexp.d.ts +70 -67
- package/lib/blocks/blockESLintRegexp.d.ts.map +1 -0
- package/lib/blocks/blockESLintRegexp.js +16 -18
- package/lib/blocks/blockESLintRegexp.js.map +1 -0
- package/lib/blocks/blockESLintYML.d.ts +70 -67
- package/lib/blocks/blockESLintYML.d.ts.map +1 -0
- package/lib/blocks/blockESLintYML.js +30 -41
- package/lib/blocks/blockESLintYML.js.map +1 -0
- package/lib/blocks/blockExampleFiles.d.ts +72 -69
- package/lib/blocks/blockExampleFiles.d.ts.map +1 -0
- package/lib/blocks/blockExampleFiles.js +22 -29
- package/lib/blocks/blockExampleFiles.js.map +1 -0
- package/lib/blocks/blockFunding.d.ts +70 -67
- package/lib/blocks/blockFunding.d.ts.map +1 -0
- package/lib/blocks/blockFunding.js +10 -15
- package/lib/blocks/blockFunding.js.map +1 -0
- package/lib/blocks/blockGitHubActionsCI.d.ts +85 -82
- package/lib/blocks/blockGitHubActionsCI.d.ts.map +1 -0
- package/lib/blocks/blockGitHubActionsCI.js +83 -134
- package/lib/blocks/blockGitHubActionsCI.js.map +1 -0
- package/lib/blocks/blockGitHubApps.d.ts +74 -71
- package/lib/blocks/blockGitHubApps.d.ts.map +1 -0
- package/lib/blocks/blockGitHubApps.js +15 -24
- package/lib/blocks/blockGitHubApps.js.map +1 -0
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +70 -67
- package/lib/blocks/blockGitHubIssueTemplates.d.ts.map +1 -0
- package/lib/blocks/blockGitHubIssueTemplates.js +185 -204
- package/lib/blocks/blockGitHubIssueTemplates.js.map +1 -0
- package/lib/blocks/blockGitHubPRTemplate.d.ts +70 -67
- package/lib/blocks/blockGitHubPRTemplate.d.ts.map +1 -0
- package/lib/blocks/blockGitHubPRTemplate.js +11 -16
- package/lib/blocks/blockGitHubPRTemplate.js.map +1 -0
- package/lib/blocks/blockGitignore.d.ts +71 -68
- package/lib/blocks/blockGitignore.d.ts.map +1 -0
- package/lib/blocks/blockGitignore.js +13 -18
- package/lib/blocks/blockGitignore.js.map +1 -0
- package/lib/blocks/blockKnip.d.ts +73 -70
- package/lib/blocks/blockKnip.d.ts.map +1 -0
- package/lib/blocks/blockKnip.js +60 -88
- package/lib/blocks/blockKnip.js.map +1 -0
- package/lib/blocks/blockMITLicense.d.ts +70 -67
- package/lib/blocks/blockMITLicense.d.ts.map +1 -0
- package/lib/blocks/blockMITLicense.js +21 -31
- package/lib/blocks/blockMITLicense.js.map +1 -0
- package/lib/blocks/blockMain.d.ts +72 -69
- package/lib/blocks/blockMain.d.ts.map +1 -0
- package/lib/blocks/blockMain.js +17 -29
- package/lib/blocks/blockMain.js.map +1 -0
- package/lib/blocks/blockMarkdownlint.d.ts +71 -68
- package/lib/blocks/blockMarkdownlint.d.ts.map +1 -0
- package/lib/blocks/blockMarkdownlint.js +55 -94
- package/lib/blocks/blockMarkdownlint.js.map +1 -0
- package/lib/blocks/blockNcc.d.ts +71 -68
- package/lib/blocks/blockNcc.d.ts.map +1 -0
- package/lib/blocks/blockNcc.js +44 -72
- package/lib/blocks/blockNcc.js.map +1 -0
- package/lib/blocks/blockNvmrc.d.ts +70 -67
- package/lib/blocks/blockNvmrc.d.ts.map +1 -0
- package/lib/blocks/blockNvmrc.js +16 -21
- package/lib/blocks/blockNvmrc.js.map +1 -0
- package/lib/blocks/blockOctoGuide.d.ts +71 -68
- package/lib/blocks/blockOctoGuide.d.ts.map +1 -0
- package/lib/blocks/blockOctoGuide.js +65 -93
- package/lib/blocks/blockOctoGuide.js.map +1 -0
- package/lib/blocks/blockOctoGuideStrict.d.ts +70 -67
- package/lib/blocks/blockOctoGuideStrict.d.ts.map +1 -0
- package/lib/blocks/blockOctoGuideStrict.js +10 -15
- package/lib/blocks/blockOctoGuideStrict.js.map +1 -0
- package/lib/blocks/blockPackageJson.d.ts +144 -141
- package/lib/blocks/blockPackageJson.d.ts.map +1 -0
- package/lib/blocks/blockPackageJson.js +82 -113
- package/lib/blocks/blockPackageJson.js.map +1 -0
- package/lib/blocks/blockPnpmDedupe.d.ts +70 -67
- package/lib/blocks/blockPnpmDedupe.d.ts.map +1 -0
- package/lib/blocks/blockPnpmDedupe.js +24 -49
- package/lib/blocks/blockPnpmDedupe.js.map +1 -0
- package/lib/blocks/blockPrettier.d.ts +79 -76
- package/lib/blocks/blockPrettier.d.ts.map +1 -0
- package/lib/blocks/blockPrettier.js +82 -116
- package/lib/blocks/blockPrettier.js.map +1 -0
- package/lib/blocks/blockPrettierPluginCurly.d.ts +70 -67
- package/lib/blocks/blockPrettierPluginCurly.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginCurly.js +10 -15
- package/lib/blocks/blockPrettierPluginCurly.js.map +1 -0
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +70 -67
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginPackageJson.js +10 -15
- package/lib/blocks/blockPrettierPluginPackageJson.js.map +1 -0
- package/lib/blocks/blockPrettierPluginSh.d.ts +70 -67
- package/lib/blocks/blockPrettierPluginSh.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginSh.js +10 -15
- package/lib/blocks/blockPrettierPluginSh.js.map +1 -0
- package/lib/blocks/blockREADME.d.ts +82 -79
- package/lib/blocks/blockREADME.d.ts.map +1 -0
- package/lib/blocks/blockREADME.js +46 -60
- package/lib/blocks/blockREADME.js.map +1 -0
- package/lib/blocks/blockReleaseIt.d.ts +74 -71
- package/lib/blocks/blockReleaseIt.d.ts.map +1 -0
- package/lib/blocks/blockReleaseIt.js +152 -181
- package/lib/blocks/blockReleaseIt.js.map +1 -0
- package/lib/blocks/blockRemoveDependencies.d.ts +71 -68
- package/lib/blocks/blockRemoveDependencies.d.ts.map +1 -0
- package/lib/blocks/blockRemoveDependencies.js +18 -27
- package/lib/blocks/blockRemoveDependencies.js.map +1 -0
- package/lib/blocks/blockRemoveFiles.d.ts +71 -68
- package/lib/blocks/blockRemoveFiles.d.ts.map +1 -0
- package/lib/blocks/blockRemoveFiles.js +19 -28
- package/lib/blocks/blockRemoveFiles.js.map +1 -0
- package/lib/blocks/blockRemoveWorkflows.d.ts +71 -68
- package/lib/blocks/blockRemoveWorkflows.d.ts.map +1 -0
- package/lib/blocks/blockRemoveWorkflows.js +16 -27
- package/lib/blocks/blockRemoveWorkflows.js.map +1 -0
- package/lib/blocks/blockRenovate.d.ts +71 -68
- package/lib/blocks/blockRenovate.d.ts.map +1 -0
- package/lib/blocks/blockRenovate.js +37 -52
- package/lib/blocks/blockRenovate.js.map +1 -0
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +71 -68
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts.map +1 -0
- package/lib/blocks/blockRepositoryBranchRuleset.js +77 -107
- package/lib/blocks/blockRepositoryBranchRuleset.js.map +1 -0
- package/lib/blocks/blockRepositoryLabels.d.ts +70 -67
- package/lib/blocks/blockRepositoryLabels.d.ts.map +1 -0
- package/lib/blocks/blockRepositoryLabels.js +51 -58
- package/lib/blocks/blockRepositoryLabels.js.map +1 -0
- package/lib/blocks/blockRepositorySecrets.d.ts +74 -71
- package/lib/blocks/blockRepositorySecrets.d.ts.map +1 -0
- package/lib/blocks/blockRepositorySecrets.js +15 -26
- package/lib/blocks/blockRepositorySecrets.js.map +1 -0
- package/lib/blocks/blockRepositorySettings.d.ts +70 -67
- package/lib/blocks/blockRepositorySettings.d.ts.map +1 -0
- package/lib/blocks/blockRepositorySettings.js +32 -39
- package/lib/blocks/blockRepositorySettings.js.map +1 -0
- package/lib/blocks/blockSecurityDocs.d.ts +70 -67
- package/lib/blocks/blockSecurityDocs.d.ts.map +1 -0
- package/lib/blocks/blockSecurityDocs.js +11 -16
- package/lib/blocks/blockSecurityDocs.js.map +1 -0
- package/lib/blocks/blockTSDown.d.ts +79 -0
- package/lib/blocks/blockTSDown.d.ts.map +1 -0
- package/lib/blocks/blockTSDown.js +111 -0
- package/lib/blocks/blockTSDown.js.map +1 -0
- package/lib/blocks/blockTemplatedWith.d.ts +70 -67
- package/lib/blocks/blockTemplatedWith.d.ts.map +1 -0
- package/lib/blocks/blockTemplatedWith.js +12 -20
- package/lib/blocks/blockTemplatedWith.js.map +1 -0
- package/lib/blocks/blockTypeScript.d.ts +181 -178
- package/lib/blocks/blockTypeScript.d.ts.map +1 -0
- package/lib/blocks/blockTypeScript.js +94 -127
- package/lib/blocks/blockTypeScript.js.map +1 -0
- package/lib/blocks/blockVSCode.d.ts +78 -75
- package/lib/blocks/blockVSCode.d.ts.map +1 -0
- package/lib/blocks/blockVSCode.js +51 -81
- package/lib/blocks/blockVSCode.js.map +1 -0
- package/lib/blocks/blockVitest.d.ts +86 -83
- package/lib/blocks/blockVitest.d.ts.map +1 -0
- package/lib/blocks/blockVitest.js +115 -168
- package/lib/blocks/blockVitest.js.map +1 -0
- package/lib/blocks/blockWebExt.d.ts +70 -67
- package/lib/blocks/blockWebExt.d.ts.map +1 -0
- package/lib/blocks/blockWebExt.js +59 -83
- package/lib/blocks/blockWebExt.js.map +1 -0
- package/lib/blocks/eslint/blockESLintIntake.d.ts +9 -6
- package/lib/blocks/eslint/blockESLintIntake.d.ts.map +1 -0
- package/lib/blocks/eslint/blockESLintIntake.js +84 -111
- package/lib/blocks/eslint/blockESLintIntake.js.map +1 -0
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts +5 -2
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts.map +1 -0
- package/lib/blocks/eslint/blockESLintPluginIntake.js +26 -44
- package/lib/blocks/eslint/blockESLintPluginIntake.js.map +1 -0
- package/lib/blocks/eslint/schemas.d.ts +77 -73
- package/lib/blocks/eslint/schemas.d.ts.map +1 -0
- package/lib/blocks/eslint/schemas.js +31 -36
- package/lib/blocks/eslint/schemas.js.map +1 -0
- package/lib/blocks/files/createJobName.d.ts +4 -0
- package/lib/blocks/files/createJobName.d.ts.map +1 -0
- package/lib/blocks/files/createJobName.js +6 -4
- package/lib/blocks/files/createJobName.js.map +1 -0
- package/lib/blocks/files/createMultiWorkflowFile.d.ts +21 -14
- package/lib/blocks/files/createMultiWorkflowFile.d.ts.map +1 -0
- package/lib/blocks/files/createMultiWorkflowFile.js +27 -35
- package/lib/blocks/files/createMultiWorkflowFile.js.map +1 -0
- package/lib/blocks/files/createSoloWorkflowFile.d.ts +61 -52
- package/lib/blocks/files/createSoloWorkflowFile.d.ts.map +1 -0
- package/lib/blocks/files/createSoloWorkflowFile.js +19 -25
- package/lib/blocks/files/createSoloWorkflowFile.js.map +1 -0
- package/lib/blocks/files/formatIgnoreFile.d.ts +4 -0
- package/lib/blocks/files/formatIgnoreFile.d.ts.map +1 -0
- package/lib/blocks/files/formatIgnoreFile.js +6 -4
- package/lib/blocks/files/formatIgnoreFile.js.map +1 -0
- package/lib/blocks/files/formatWorkflowYaml.d.ts +4 -0
- package/lib/blocks/files/formatWorkflowYaml.d.ts.map +1 -0
- package/lib/blocks/files/formatWorkflowYaml.js +7 -4
- package/lib/blocks/files/formatWorkflowYaml.js.map +1 -0
- package/lib/blocks/files/formatYaml.d.ts +4 -0
- package/lib/blocks/files/formatYaml.d.ts.map +1 -0
- package/lib/blocks/files/formatYaml.js +16 -21
- package/lib/blocks/files/formatYaml.js.map +1 -0
- package/lib/blocks/files/removeUsesQuotes.d.ts +4 -0
- package/lib/blocks/files/removeUsesQuotes.d.ts.map +1 -0
- package/lib/blocks/files/removeUsesQuotes.js +6 -7
- package/lib/blocks/files/removeUsesQuotes.js.map +1 -0
- package/lib/blocks/getInstallationSuggestions.d.ts +4 -0
- package/lib/blocks/getInstallationSuggestions.d.ts.map +1 -0
- package/lib/blocks/getInstallationSuggestions.js +11 -12
- package/lib/blocks/getInstallationSuggestions.js.map +1 -0
- package/lib/blocks/index.d.ts +3646 -3644
- package/lib/blocks/index.d.ts.map +1 -0
- package/lib/blocks/index.js +83 -177
- package/lib/blocks/index.js.map +1 -0
- package/lib/blocks/intake/intakeFile.d.ts +5 -1
- package/lib/blocks/intake/intakeFile.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFile.js +12 -18
- package/lib/blocks/intake/intakeFile.js.map +1 -0
- package/lib/blocks/intake/intakeFileAsJson.d.ts +5 -1
- package/lib/blocks/intake/intakeFileAsJson.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileAsJson.js +13 -10
- package/lib/blocks/intake/intakeFileAsJson.js.map +1 -0
- package/lib/blocks/intake/intakeFileAsYaml.d.ts +5 -1
- package/lib/blocks/intake/intakeFileAsYaml.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileAsYaml.js +13 -10
- package/lib/blocks/intake/intakeFileAsYaml.js.map +1 -0
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts +5 -1
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileDefineConfig.js +20 -23
- package/lib/blocks/intake/intakeFileDefineConfig.js.map +1 -0
- package/lib/blocks/options.fakes.d.ts +23 -20
- package/lib/blocks/options.fakes.d.ts.map +1 -0
- package/lib/blocks/options.fakes.js +19 -23
- package/lib/blocks/options.fakes.js.map +1 -0
- package/lib/blocks/outcomeLabels.d.ts +12 -9
- package/lib/blocks/outcomeLabels.d.ts.map +1 -0
- package/lib/blocks/outcomeLabels.js +93 -92
- package/lib/blocks/outcomeLabels.js.map +1 -0
- package/lib/blocks/phases.d.ts +9 -6
- package/lib/blocks/phases.d.ts.map +1 -0
- package/lib/blocks/phases.js +10 -8
- package/lib/blocks/phases.js.map +1 -0
- package/lib/constants.d.ts +8 -5
- package/lib/constants.d.ts.map +1 -0
- package/lib/constants.js +9 -9
- package/lib/constants.js.map +1 -0
- package/lib/data/contributions.d.ts +4 -0
- package/lib/data/contributions.d.ts.map +1 -0
- package/lib/data/contributions.js +13 -11
- package/lib/data/contributions.js.map +1 -0
- package/lib/data/packageData.d.ts +7 -166
- package/lib/data/packageData.d.ts.map +1 -0
- package/lib/data/packageData.js +16 -24
- package/lib/data/packageData.js.map +1 -0
- package/lib/index.d.ts +290 -288
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +61 -7
- package/lib/index.js.map +1 -0
- package/lib/inputs/inputFromDirectory.d.ts +8 -4
- package/lib/inputs/inputFromDirectory.d.ts.map +1 -0
- package/lib/inputs/inputFromDirectory.js +11 -10
- package/lib/inputs/inputFromDirectory.js.map +1 -0
- package/lib/inputs/inputFromOctokit.d.ts +9 -5
- package/lib/inputs/inputFromOctokit.d.ts.map +1 -0
- package/lib/inputs/inputFromOctokit.js +23 -24
- package/lib/inputs/inputFromOctokit.js.map +1 -0
- package/lib/options/readAccess.d.ts +5 -1
- package/lib/options/readAccess.d.ts.map +1 -0
- package/lib/options/readAccess.js +6 -4
- package/lib/options/readAccess.js.map +1 -0
- package/lib/options/readAllContributors.d.ts +6 -2
- package/lib/options/readAllContributors.d.ts.map +1 -0
- package/lib/options/readAllContributors.js +17 -22
- package/lib/options/readAllContributors.js.map +1 -0
- package/lib/options/readAuthor.d.ts +6 -3
- package/lib/options/readAuthor.d.ts.map +1 -0
- package/lib/options/readAuthor.js +6 -4
- package/lib/options/readAuthor.js.map +1 -0
- package/lib/options/readBin.d.ts +5 -1
- package/lib/options/readBin.d.ts.map +1 -0
- package/lib/options/readBin.js +8 -10
- package/lib/options/readBin.js.map +1 -0
- package/lib/options/readDescription.d.ts +5 -1
- package/lib/options/readDescription.d.ts.map +1 -0
- package/lib/options/readDescription.js +16 -23
- package/lib/options/readDescription.js.map +1 -0
- package/lib/options/readDescriptionFromReadme.d.ts +4 -0
- package/lib/options/readDescriptionFromReadme.d.ts.map +1 -0
- package/lib/options/readDescriptionFromReadme.js +11 -13
- package/lib/options/readDescriptionFromReadme.js.map +1 -0
- package/lib/options/readDevelopmentDocumentation.d.ts +5 -1
- package/lib/options/readDevelopmentDocumentation.d.ts.map +1 -0
- package/lib/options/readDevelopmentDocumentation.js +18 -21
- package/lib/options/readDevelopmentDocumentation.js.map +1 -0
- package/lib/options/readDocumentation.d.ts +5 -2
- package/lib/options/readDocumentation.d.ts.map +1 -0
- package/lib/options/readDocumentation.js +21 -19
- package/lib/options/readDocumentation.js.map +1 -0
- package/lib/options/readEmailFromCodeOfConduct.d.ts +5 -1
- package/lib/options/readEmailFromCodeOfConduct.d.ts.map +1 -0
- package/lib/options/readEmailFromCodeOfConduct.js +8 -7
- package/lib/options/readEmailFromCodeOfConduct.js.map +1 -0
- package/lib/options/readEmailFromGit.d.ts +5 -1
- package/lib/options/readEmailFromGit.d.ts.map +1 -0
- package/lib/options/readEmailFromGit.js +7 -4
- package/lib/options/readEmailFromGit.js.map +1 -0
- package/lib/options/readEmailFromNpm.d.ts +6 -3
- package/lib/options/readEmailFromNpm.d.ts.map +1 -0
- package/lib/options/readEmailFromNpm.js +6 -4
- package/lib/options/readEmailFromNpm.js.map +1 -0
- package/lib/options/readEmails.d.ts +7 -4
- package/lib/options/readEmails.d.ts.map +1 -0
- package/lib/options/readEmails.js +11 -6
- package/lib/options/readEmails.js.map +1 -0
- package/lib/options/readEmoji.d.ts +4 -0
- package/lib/options/readEmoji.d.ts.map +1 -0
- package/lib/options/readEmoji.js +6 -4
- package/lib/options/readEmoji.js.map +1 -0
- package/lib/options/readExistingLabels.d.ts +8 -4
- package/lib/options/readExistingLabels.d.ts.map +1 -0
- package/lib/options/readExistingLabels.js +21 -20
- package/lib/options/readExistingLabels.js.map +1 -0
- package/lib/options/readFileAsJson.d.ts +4 -0
- package/lib/options/readFileAsJson.d.ts.map +1 -0
- package/lib/options/readFileAsJson.js +11 -11
- package/lib/options/readFileAsJson.js.map +1 -0
- package/lib/options/readFileSafe.d.ts +4 -0
- package/lib/options/readFileSafe.d.ts.map +1 -0
- package/lib/options/readFileSafe.js +11 -8
- package/lib/options/readFileSafe.js.map +1 -0
- package/lib/options/readFunding.d.ts +5 -1
- package/lib/options/readFunding.d.ts.map +1 -0
- package/lib/options/readFunding.js +8 -7
- package/lib/options/readFunding.js.map +1 -0
- package/lib/options/readGitDefaults.d.ts +6 -2
- package/lib/options/readGitDefaults.d.ts.map +1 -0
- package/lib/options/readGitDefaults.js +9 -8
- package/lib/options/readGitDefaults.js.map +1 -0
- package/lib/options/readGuide.d.ts +7 -3
- package/lib/options/readGuide.d.ts.map +1 -0
- package/lib/options/readGuide.js +14 -19
- package/lib/options/readGuide.js.map +1 -0
- package/lib/options/readKeywords.d.ts +5 -1
- package/lib/options/readKeywords.d.ts.map +1 -0
- package/lib/options/readKeywords.js +7 -5
- package/lib/options/readKeywords.js.map +1 -0
- package/lib/options/readLogo.d.ts +8 -4
- package/lib/options/readLogo.d.ts.map +1 -0
- package/lib/options/readLogo.js +19 -22
- package/lib/options/readLogo.js.map +1 -0
- package/lib/options/readLogoSizing.d.ts +7 -3
- package/lib/options/readLogoSizing.d.ts.map +1 -0
- package/lib/options/readLogoSizing.js +26 -22
- package/lib/options/readLogoSizing.js.map +1 -0
- package/lib/options/readNode.d.ts +7 -3
- package/lib/options/readNode.d.ts.map +1 -0
- package/lib/options/readNode.js +12 -9
- package/lib/options/readNode.js.map +1 -0
- package/lib/options/readNpmDefaults.d.ts +7 -3
- package/lib/options/readNpmDefaults.d.ts.map +1 -0
- package/lib/options/readNpmDefaults.js +9 -6
- package/lib/options/readNpmDefaults.js.map +1 -0
- package/lib/options/readOwner.d.ts +7 -4
- package/lib/options/readOwner.d.ts.map +1 -0
- package/lib/options/readOwner.js +7 -6
- package/lib/options/readOwner.js.map +1 -0
- package/lib/options/readPackageAuthor.d.ts +8 -4
- package/lib/options/readPackageAuthor.d.ts.map +1 -0
- package/lib/options/readPackageAuthor.js +12 -12
- package/lib/options/readPackageAuthor.js.map +1 -0
- package/lib/options/readPackageData.d.ts +6 -2
- package/lib/options/readPackageData.d.ts.map +1 -0
- package/lib/options/readPackageData.js +8 -9
- package/lib/options/readPackageData.js.map +1 -0
- package/lib/options/readPnpm.d.ts +5 -1
- package/lib/options/readPnpm.d.ts.map +1 -0
- package/lib/options/readPnpm.js +7 -5
- package/lib/options/readPnpm.js.map +1 -0
- package/lib/options/readReadmeAdditional.d.ts +4 -0
- package/lib/options/readReadmeAdditional.d.ts.map +1 -0
- package/lib/options/readReadmeAdditional.js +15 -22
- package/lib/options/readReadmeAdditional.js.map +1 -0
- package/lib/options/readReadmeExplainer.d.ts +4 -0
- package/lib/options/readReadmeExplainer.d.ts.map +1 -0
- package/lib/options/readReadmeExplainer.js +24 -25
- package/lib/options/readReadmeExplainer.js.map +1 -0
- package/lib/options/readReadmeFootnotes.d.ts +4 -0
- package/lib/options/readReadmeFootnotes.d.ts.map +1 -0
- package/lib/options/readReadmeFootnotes.js +15 -24
- package/lib/options/readReadmeFootnotes.js.map +1 -0
- package/lib/options/readReadmeUsage.d.ts +4 -0
- package/lib/options/readReadmeUsage.d.ts.map +1 -0
- package/lib/options/readReadmeUsage.js +13 -15
- package/lib/options/readReadmeUsage.js.map +1 -0
- package/lib/options/readRepository.d.ts +8 -4
- package/lib/options/readRepository.d.ts.map +1 -0
- package/lib/options/readRepository.js +6 -4
- package/lib/options/readRepository.js.map +1 -0
- package/lib/options/readRulesetId.d.ts +5 -1
- package/lib/options/readRulesetId.d.ts.map +1 -0
- package/lib/options/readRulesetId.js +14 -13
- package/lib/options/readRulesetId.js.map +1 -0
- package/lib/options/readTitle.d.ts +4 -0
- package/lib/options/readTitle.d.ts.map +1 -0
- package/lib/options/readTitle.js +11 -10
- package/lib/options/readTitle.js.map +1 -0
- package/lib/options/readWords.d.ts +5 -1
- package/lib/options/readWords.d.ts.map +1 -0
- package/lib/options/readWords.js +9 -10
- package/lib/options/readWords.js.map +1 -0
- package/lib/options/readWorkflowsVersions.d.ts +6 -3
- package/lib/options/readWorkflowsVersions.d.ts.map +1 -0
- package/lib/options/readWorkflowsVersions.js +45 -63
- package/lib/options/readWorkflowsVersions.js.map +1 -0
- package/lib/presets/common.d.ts +169 -166
- package/lib/presets/common.d.ts.map +1 -0
- package/lib/presets/common.js +21 -18
- package/lib/presets/common.js.map +1 -0
- package/lib/presets/everything.d.ts +169 -166
- package/lib/presets/everything.d.ts.map +1 -0
- package/lib/presets/everything.js +39 -36
- package/lib/presets/everything.js.map +1 -0
- package/lib/presets/index.d.ts +504 -502
- package/lib/presets/index.d.ts.map +1 -0
- package/lib/presets/index.js +10 -13
- package/lib/presets/index.js.map +1 -0
- package/lib/presets/minimal.d.ts +169 -166
- package/lib/presets/minimal.d.ts.map +1 -0
- package/lib/presets/minimal.js +51 -48
- package/lib/presets/minimal.js.map +1 -0
- package/lib/schemas.d.ts +75 -71
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +19 -21
- package/lib/schemas.js.map +1 -0
- package/lib/template.d.ts +169 -166
- package/lib/template.d.ts.map +1 -0
- package/lib/template.js +31 -24
- package/lib/template.js.map +1 -0
- package/lib/types.d.ts +32 -30
- package/lib/types.d.ts.map +1 -0
- package/lib/utils/htmlToTextSafe.d.ts +4 -0
- package/lib/utils/htmlToTextSafe.d.ts.map +1 -0
- package/lib/utils/htmlToTextSafe.js +13 -12
- package/lib/utils/htmlToTextSafe.js.map +1 -0
- package/lib/utils/resolveBin.d.ts +4 -0
- package/lib/utils/resolveBin.d.ts.map +1 -0
- package/lib/utils/resolveBin.js +7 -4
- package/lib/utils/resolveBin.js.map +1 -0
- package/lib/utils/swallowError.d.ts +4 -0
- package/lib/utils/swallowError.d.ts.map +1 -0
- package/lib/utils/swallowError.js +6 -4
- package/lib/utils/swallowError.js.map +1 -0
- package/lib/utils/swallowErrorAsync.d.ts +4 -0
- package/lib/utils/swallowErrorAsync.d.ts.map +1 -0
- package/lib/utils/swallowErrorAsync.js +10 -8
- package/lib/utils/swallowErrorAsync.js.map +1 -0
- package/lib/utils/trimPrecedingSlash.d.ts +4 -0
- package/lib/utils/trimPrecedingSlash.d.ts.map +1 -0
- package/lib/utils/trimPrecedingSlash.js +6 -4
- package/lib/utils/trimPrecedingSlash.js.map +1 -0
- package/lib/utils/tryCatch.d.ts +4 -0
- package/lib/utils/tryCatch.d.ts.map +1 -0
- package/lib/utils/tryCatch.js +10 -8
- package/lib/utils/tryCatch.js.map +1 -0
- package/package.json +3 -3
- package/lib/blocks/blockTSup.d.ts +0 -76
- package/lib/blocks/blockTSup.js +0 -139
|
@@ -1,128 +1,97 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { htmlToTextSafe } from "../utils/htmlToTextSafe.js";
|
|
2
|
+
import { base } from "../base.js";
|
|
3
|
+
import { CommandPhase } from "./phases.js";
|
|
4
|
+
import { blockRemoveFiles } from "./blockRemoveFiles.js";
|
|
5
|
+
import { z } from "zod";
|
|
2
6
|
import semver from "semver";
|
|
7
|
+
import removeUndefinedObjects from "remove-undefined-objects";
|
|
3
8
|
import sortPackageJson from "sort-package-json";
|
|
4
|
-
import { z } from "zod";
|
|
5
9
|
import { PackageJson } from "zod-package-json";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { CommandPhase } from "./phases.js";
|
|
10
|
-
const PackageJsonWithNullableScripts = PackageJson.partial().extend({
|
|
11
|
-
scripts: z.record(z.string(), z.union([z.string(), z.undefined()])).optional()
|
|
12
|
-
});
|
|
10
|
+
|
|
11
|
+
//#region src/blocks/blockPackageJson.ts
|
|
12
|
+
const PackageJsonWithNullableScripts = PackageJson.partial().extend({ scripts: z.record(z.string(), z.union([z.string(), z.undefined()])).optional() });
|
|
13
13
|
const blockPackageJson = base.createBlock({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
)
|
|
72
|
-
)
|
|
73
|
-
},
|
|
74
|
-
scripts: [
|
|
75
|
-
{
|
|
76
|
-
commands: [
|
|
77
|
-
`pnpm install ${offline ? "--offline " : ""}--no-frozen-lockfile`,
|
|
78
|
-
...addons.cleanupCommands
|
|
79
|
-
],
|
|
80
|
-
phase: CommandPhase.Install
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
};
|
|
84
|
-
},
|
|
85
|
-
transition() {
|
|
86
|
-
return {
|
|
87
|
-
addons: [blockRemoveFiles({ files: ["package-lock.json yarn.lock"] })]
|
|
88
|
-
};
|
|
89
|
-
}
|
|
14
|
+
about: { name: "Package JSON" },
|
|
15
|
+
addons: {
|
|
16
|
+
cleanupCommands: z.array(z.string()).default([]),
|
|
17
|
+
properties: PackageJsonWithNullableScripts.default({})
|
|
18
|
+
},
|
|
19
|
+
produce({ addons, offline, options }) {
|
|
20
|
+
const dependencies = useLargerVersions(options.packageData?.dependencies, {
|
|
21
|
+
...options.packageData?.dependencies,
|
|
22
|
+
...addons.properties.dependencies
|
|
23
|
+
});
|
|
24
|
+
const devDependencies = useLargerVersions(options.packageData?.devDependencies, {
|
|
25
|
+
...options.packageData?.devDependencies,
|
|
26
|
+
...addons.properties.devDependencies
|
|
27
|
+
});
|
|
28
|
+
const description = htmlToTextSafe(options.description);
|
|
29
|
+
return {
|
|
30
|
+
files: { "package.json": sortPackageJson(JSON.stringify(removeUndefinedObjects({
|
|
31
|
+
...options.packageData,
|
|
32
|
+
...addons.properties,
|
|
33
|
+
author: {
|
|
34
|
+
email: options.email.npm,
|
|
35
|
+
name: options.author
|
|
36
|
+
},
|
|
37
|
+
bin: options.bin,
|
|
38
|
+
dependencies: Object.keys(dependencies).length ? dependencies : void 0,
|
|
39
|
+
description,
|
|
40
|
+
devDependencies: Object.keys(devDependencies).length ? devDependencies : void 0,
|
|
41
|
+
engines: { node: `>=${options.node.minimum}` },
|
|
42
|
+
...options.pnpm && { packageManager: `pnpm@${options.pnpm}` },
|
|
43
|
+
files: processFiles([
|
|
44
|
+
...collectBinFiles(options.bin),
|
|
45
|
+
...addons.properties.files ?? [],
|
|
46
|
+
"package.json",
|
|
47
|
+
"README.md"
|
|
48
|
+
]),
|
|
49
|
+
keywords: options.keywords,
|
|
50
|
+
name: options.repository,
|
|
51
|
+
repository: {
|
|
52
|
+
type: "git",
|
|
53
|
+
url: `git+https://github.com/${options.owner}/${options.repository}.git`
|
|
54
|
+
},
|
|
55
|
+
scripts: {
|
|
56
|
+
...options.packageData?.scripts,
|
|
57
|
+
...addons.properties.scripts
|
|
58
|
+
},
|
|
59
|
+
type: options.type ?? "module",
|
|
60
|
+
version: options.version ?? "0.0.0"
|
|
61
|
+
}))) },
|
|
62
|
+
scripts: [{
|
|
63
|
+
commands: [`pnpm install ${offline ? "--offline " : ""}--no-frozen-lockfile`, ...addons.cleanupCommands],
|
|
64
|
+
phase: CommandPhase.Install
|
|
65
|
+
}]
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
transition() {
|
|
69
|
+
return { addons: [blockRemoveFiles({ files: ["package-lock.json yarn.lock"] })] };
|
|
70
|
+
}
|
|
90
71
|
});
|
|
91
72
|
function collectBinFiles(bin) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
const files = typeof bin === "object" ? Object.values(bin) : [bin];
|
|
96
|
-
return files.map((file) => file.replace(/^\.\//, ""));
|
|
73
|
+
if (!bin) return [];
|
|
74
|
+
const files = typeof bin === "object" ? Object.values(bin) : [bin];
|
|
75
|
+
return files.map((file) => file.replace(/^\.\//, ""));
|
|
97
76
|
}
|
|
98
77
|
function processFiles(files) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
(file, i) => !sortedByLength.slice(0, i).some((earlier) => earlier.endsWith("/") && file.startsWith(earlier))
|
|
102
|
-
).sort();
|
|
78
|
+
const sortedByLength = files.filter(Boolean).sort((a, b) => a.length - b.length);
|
|
79
|
+
return sortedByLength.filter((file, i) => !sortedByLength.slice(0, i).some((earlier) => earlier.endsWith("/") && file.startsWith(earlier))).sort();
|
|
103
80
|
}
|
|
104
81
|
function removeRangePrefix(version) {
|
|
105
|
-
|
|
106
|
-
|
|
82
|
+
const raw = version.replaceAll(/[\^~><=]/gu, "").split(" ")[0];
|
|
83
|
+
return semver.coerce(raw) ?? raw;
|
|
107
84
|
}
|
|
108
85
|
function useLargerVersion(existing, replacement) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
const existingCoerced = semver.coerce(removeRangePrefix(existing));
|
|
113
|
-
return existingCoerced && semver.gt(existingCoerced, removeRangePrefix(replacement)) ? existing : replacement;
|
|
86
|
+
if (!existing || existing === replacement) return replacement;
|
|
87
|
+
const existingCoerced = semver.coerce(removeRangePrefix(existing));
|
|
88
|
+
return existingCoerced && semver.gt(existingCoerced, removeRangePrefix(replacement)) ? existing : replacement;
|
|
114
89
|
}
|
|
115
90
|
function useLargerVersions(existing, replacements) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
return Object.fromEntries(
|
|
120
|
-
Object.entries(replacements).map(([key, replacement]) => [
|
|
121
|
-
key,
|
|
122
|
-
useLargerVersion(existing[key], replacement)
|
|
123
|
-
])
|
|
124
|
-
);
|
|
91
|
+
if (!existing) return replacements;
|
|
92
|
+
return Object.fromEntries(Object.entries(replacements).map(([key, replacement]) => [key, useLargerVersion(existing[key], replacement)]));
|
|
125
93
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
};
|
|
94
|
+
|
|
95
|
+
//#endregion
|
|
96
|
+
export { blockPackageJson };
|
|
97
|
+
//# sourceMappingURL=blockPackageJson.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockPackageJson.js","names":["bin: Record<string, string> | string | undefined","files: string[]","version: string","existing: string | undefined","replacement: string","existing: Record<string, string | undefined> | undefined","replacements: Record<string, string>"],"sources":["../../src/blocks/blockPackageJson.ts"],"sourcesContent":["import removeUndefinedObjects from \"remove-undefined-objects\";\nimport semver from \"semver\";\nimport sortPackageJson from \"sort-package-json\";\nimport { z } from \"zod\";\nimport { PackageJson } from \"zod-package-json\";\n\nimport { base } from \"../base.js\";\nimport { htmlToTextSafe } from \"../utils/htmlToTextSafe.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nconst PackageJsonWithNullableScripts = PackageJson.partial().extend({\n\tscripts: z\n\t\t.record(z.string(), z.union([z.string(), z.undefined()]))\n\t\t.optional(),\n});\n\nexport const blockPackageJson = base.createBlock({\n\tabout: {\n\t\tname: \"Package JSON\",\n\t},\n\taddons: {\n\t\tcleanupCommands: z.array(z.string()).default([]),\n\t\tproperties: PackageJsonWithNullableScripts.default({}),\n\t},\n\tproduce({ addons, offline, options }) {\n\t\tconst dependencies = useLargerVersions(options.packageData?.dependencies, {\n\t\t\t...options.packageData?.dependencies,\n\t\t\t...addons.properties.dependencies,\n\t\t});\n\t\tconst devDependencies = useLargerVersions(\n\t\t\toptions.packageData?.devDependencies,\n\t\t\t{\n\t\t\t\t...options.packageData?.devDependencies,\n\t\t\t\t...addons.properties.devDependencies,\n\t\t\t},\n\t\t);\n\t\tconst description = htmlToTextSafe(options.description);\n\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\"package.json\": sortPackageJson(\n\t\t\t\t\tJSON.stringify(\n\t\t\t\t\t\tremoveUndefinedObjects({\n\t\t\t\t\t\t\t...options.packageData,\n\t\t\t\t\t\t\t...addons.properties,\n\t\t\t\t\t\t\tauthor: { email: options.email.npm, name: options.author },\n\t\t\t\t\t\t\tbin: options.bin,\n\t\t\t\t\t\t\tdependencies: Object.keys(dependencies).length\n\t\t\t\t\t\t\t\t? dependencies\n\t\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\t\tdescription,\n\t\t\t\t\t\t\tdevDependencies: Object.keys(devDependencies).length\n\t\t\t\t\t\t\t\t? devDependencies\n\t\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\t\tengines: {\n\t\t\t\t\t\t\t\tnode: `>=${options.node.minimum}`,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t...(options.pnpm && {\n\t\t\t\t\t\t\t\tpackageManager: `pnpm@${options.pnpm}`,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tfiles: processFiles([\n\t\t\t\t\t\t\t\t...collectBinFiles(options.bin),\n\t\t\t\t\t\t\t\t...(addons.properties.files ?? []),\n\t\t\t\t\t\t\t\t\"package.json\",\n\t\t\t\t\t\t\t\t\"README.md\",\n\t\t\t\t\t\t\t]),\n\t\t\t\t\t\t\tkeywords: options.keywords,\n\t\t\t\t\t\t\tname: options.repository,\n\t\t\t\t\t\t\trepository: {\n\t\t\t\t\t\t\t\ttype: \"git\",\n\t\t\t\t\t\t\t\turl: `git+https://github.com/${options.owner}/${options.repository}.git`,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\t...options.packageData?.scripts,\n\t\t\t\t\t\t\t\t...addons.properties.scripts,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ttype: options.type ?? \"module\",\n\t\t\t\t\t\t\tversion: options.version ?? \"0.0.0\",\n\t\t\t\t\t\t}),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\n\t\t\t\t\t\t`pnpm install ${offline ? \"--offline \" : \"\"}--no-frozen-lockfile`,\n\t\t\t\t\t\t...addons.cleanupCommands,\n\t\t\t\t\t],\n\t\t\t\t\tphase: CommandPhase.Install,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [blockRemoveFiles({ files: [\"package-lock.json yarn.lock\"] })],\n\t\t};\n\t},\n});\n\nfunction collectBinFiles(bin: Record<string, string> | string | undefined) {\n\tif (!bin) {\n\t\treturn [];\n\t}\n\n\tconst files = typeof bin === \"object\" ? Object.values(bin) : [bin];\n\n\treturn files.map((file) => file.replace(/^\\.\\//, \"\"));\n}\n\nfunction processFiles(files: string[]) {\n\t// First sort so that shorter entries are first (e.g. \"lib/\")...\n\tconst sortedByLength = files\n\t\t.filter(Boolean)\n\t\t.sort((a, b) => a.length - b.length);\n\n\t// ...then remove entries captured by earlier directories (e.g. \"lib/index.js\")\n\treturn sortedByLength\n\t\t.filter(\n\t\t\t(file, i) =>\n\t\t\t\t!sortedByLength\n\t\t\t\t\t.slice(0, i)\n\t\t\t\t\t.some((earlier) => earlier.endsWith(\"/\") && file.startsWith(earlier)),\n\t\t)\n\t\t.sort();\n}\n\nfunction removeRangePrefix(version: string) {\n\tconst raw = version.replaceAll(/[\\^~><=]/gu, \"\").split(\" \")[0];\n\n\treturn semver.coerce(raw) ?? raw;\n}\n\nfunction useLargerVersion(existing: string | undefined, replacement: string) {\n\tif (!existing || existing === replacement) {\n\t\treturn replacement;\n\t}\n\n\tconst existingCoerced = semver.coerce(removeRangePrefix(existing));\n\n\treturn existingCoerced &&\n\t\tsemver.gt(existingCoerced, removeRangePrefix(replacement))\n\t\t? existing\n\t\t: replacement;\n}\n\nfunction useLargerVersions(\n\texisting: Record<string, string | undefined> | undefined,\n\treplacements: Record<string, string>,\n) {\n\tif (!existing) {\n\t\treturn replacements;\n\t}\n\n\treturn Object.fromEntries(\n\t\tObject.entries(replacements).map(([key, replacement]) => [\n\t\t\tkey,\n\t\t\tuseLargerVersion(existing[key], replacement),\n\t\t]),\n\t);\n}\n"],"mappings":"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"}
|
|
@@ -1,72 +1,75 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum317 from "bingo-stratum";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
development?: string | undefined;
|
|
15
|
-
};
|
|
16
|
-
email: {
|
|
17
|
-
github: string;
|
|
18
|
-
npm: string;
|
|
3
|
+
//#region src/blocks/blockPnpmDedupe.d.ts
|
|
4
|
+
declare const blockPnpmDedupe: bingo_stratum317.BlockWithoutAddons<{
|
|
5
|
+
access: "public" | "restricted";
|
|
6
|
+
description: string;
|
|
7
|
+
directory: string;
|
|
8
|
+
documentation: {
|
|
9
|
+
readme: {
|
|
10
|
+
additional?: string | undefined;
|
|
11
|
+
explainer?: string | undefined;
|
|
12
|
+
footnotes?: string | undefined;
|
|
13
|
+
usage?: string | undefined;
|
|
19
14
|
};
|
|
15
|
+
development?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
email: {
|
|
18
|
+
github: string;
|
|
19
|
+
npm: string;
|
|
20
|
+
};
|
|
21
|
+
title: string;
|
|
22
|
+
node: {
|
|
23
|
+
minimum: string;
|
|
24
|
+
pinned?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
owner: string;
|
|
27
|
+
repository: string;
|
|
28
|
+
type?: "commonjs" | "module" | undefined;
|
|
29
|
+
author?: string | undefined;
|
|
30
|
+
bin?: string | Record<string, string> | undefined;
|
|
31
|
+
contributors?: {
|
|
32
|
+
avatar_url: string;
|
|
33
|
+
contributions: string[];
|
|
34
|
+
login: string;
|
|
35
|
+
name: string;
|
|
36
|
+
profile: string;
|
|
37
|
+
}[] | undefined;
|
|
38
|
+
emoji?: string | undefined;
|
|
39
|
+
existingLabels?: {
|
|
40
|
+
name: string;
|
|
41
|
+
description: string;
|
|
42
|
+
color: string;
|
|
43
|
+
}[] | undefined;
|
|
44
|
+
funding?: string | undefined;
|
|
45
|
+
guide?: {
|
|
46
|
+
href: string;
|
|
20
47
|
title: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
guide?: {
|
|
45
|
-
href: string;
|
|
46
|
-
title: string;
|
|
47
|
-
} | undefined;
|
|
48
|
-
keywords?: string[] | undefined;
|
|
49
|
-
logo?: {
|
|
50
|
-
alt: string;
|
|
51
|
-
src: string;
|
|
52
|
-
height?: number | undefined;
|
|
53
|
-
width?: number | undefined;
|
|
54
|
-
} | undefined;
|
|
55
|
-
packageData?: {
|
|
56
|
-
dependencies?: Record<string, string> | undefined;
|
|
57
|
-
devDependencies?: Record<string, string> | undefined;
|
|
58
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
59
|
-
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
60
|
-
scripts?: Record<string, string | undefined> | undefined;
|
|
61
|
-
} | undefined;
|
|
62
|
-
pnpm?: string | undefined;
|
|
63
|
-
rulesetId?: string | undefined;
|
|
64
|
-
version?: string | undefined;
|
|
65
|
-
words?: string[] | undefined;
|
|
66
|
-
workflowsVersions?: Record<string, Record<string, {
|
|
67
|
-
pinned?: boolean | undefined;
|
|
68
|
-
hash?: string | undefined;
|
|
69
|
-
}>> | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
keywords?: string[] | undefined;
|
|
50
|
+
logo?: {
|
|
51
|
+
alt: string;
|
|
52
|
+
src: string;
|
|
53
|
+
height?: number | undefined;
|
|
54
|
+
width?: number | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
packageData?: {
|
|
57
|
+
dependencies?: Record<string, string> | undefined;
|
|
58
|
+
devDependencies?: Record<string, string> | undefined;
|
|
59
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
60
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
61
|
+
scripts?: Record<string, string | undefined> | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
pnpm?: string | undefined;
|
|
64
|
+
rulesetId?: string | undefined;
|
|
65
|
+
version?: string | undefined;
|
|
66
|
+
words?: string[] | undefined;
|
|
67
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
68
|
+
hash?: string | undefined;
|
|
69
|
+
pinned?: boolean | undefined;
|
|
70
|
+
}>> | undefined;
|
|
70
71
|
}>;
|
|
71
|
-
|
|
72
|
+
//# sourceMappingURL=blockPnpmDedupe.d.ts.map
|
|
73
|
+
//#endregion
|
|
72
74
|
export { blockPnpmDedupe };
|
|
75
|
+
//# sourceMappingURL=blockPnpmDedupe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockPnpmDedupe.d.ts","names":[],"sources":["../../src/blocks/blockPnpmDedupe.ts"],"sourcesContent":[],"mappings":";;;cAMa,kCAAe;;;EAAf,SAAA,EAAA,MAAA;EA8CX,aAAA,EAAA;IAAA,MAAA,EAAA;;;;;;;;;IA9C0B,MAAA,EAAA,MAAA;;;;;;;;;;;;iBA8C1B"}
|
|
@@ -1,55 +1,30 @@
|
|
|
1
1
|
import { base } from "../base.js";
|
|
2
|
-
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
|
|
3
2
|
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.js";
|
|
4
3
|
import { blockPackageJson } from "./blockPackageJson.js";
|
|
4
|
+
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
|
|
5
5
|
import { blockRemoveWorkflows } from "./blockRemoveWorkflows.js";
|
|
6
|
+
|
|
7
|
+
//#region src/blocks/blockPnpmDedupe.ts
|
|
6
8
|
const blockPnpmDedupe = base.createBlock({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
blockGitHubActionsCI({
|
|
25
|
-
jobs: [
|
|
26
|
-
{
|
|
27
|
-
name: "Lint Packages",
|
|
28
|
-
steps: [{ run: "pnpm lint:packages" }]
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}),
|
|
32
|
-
blockPackageJson({
|
|
33
|
-
cleanupCommands: ["pnpm dedupe"],
|
|
34
|
-
properties: {
|
|
35
|
-
scripts: {
|
|
36
|
-
"lint:packages": "pnpm dedupe --check"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
})
|
|
40
|
-
]
|
|
41
|
-
};
|
|
42
|
-
},
|
|
43
|
-
transition() {
|
|
44
|
-
return {
|
|
45
|
-
addons: [
|
|
46
|
-
blockRemoveWorkflows({
|
|
47
|
-
workflows: ["lint-packages"]
|
|
48
|
-
})
|
|
49
|
-
]
|
|
50
|
-
};
|
|
51
|
-
}
|
|
9
|
+
about: { name: "pnpm Dedupe" },
|
|
10
|
+
produce() {
|
|
11
|
+
return { addons: [
|
|
12
|
+
blockDevelopmentDocs({ sections: { Linting: { contents: { items: [`- \`pnpm lint:packages\` ([pnpm dedupe --check](https://pnpm.io/cli/dedupe)): Checks for unnecessarily duplicated packages in the \`pnpm-lock.yml\` file`] } } } }),
|
|
13
|
+
blockGitHubActionsCI({ jobs: [{
|
|
14
|
+
name: "Lint Packages",
|
|
15
|
+
steps: [{ run: "pnpm lint:packages" }]
|
|
16
|
+
}] }),
|
|
17
|
+
blockPackageJson({
|
|
18
|
+
cleanupCommands: ["pnpm dedupe"],
|
|
19
|
+
properties: { scripts: { "lint:packages": "pnpm dedupe --check" } }
|
|
20
|
+
})
|
|
21
|
+
] };
|
|
22
|
+
},
|
|
23
|
+
transition() {
|
|
24
|
+
return { addons: [blockRemoveWorkflows({ workflows: ["lint-packages"] })] };
|
|
25
|
+
}
|
|
52
26
|
});
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
};
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export { blockPnpmDedupe };
|
|
30
|
+
//# sourceMappingURL=blockPnpmDedupe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockPnpmDedupe.js","names":[],"sources":["../../src/blocks/blockPnpmDedupe.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\n\nexport const blockPnpmDedupe = base.createBlock({\n\tabout: {\n\t\tname: \"pnpm Dedupe\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tLinting: {\n\t\t\t\t\t\t\tcontents: {\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t`- \\`pnpm lint:packages\\` ([pnpm dedupe --check](https://pnpm.io/cli/dedupe)): Checks for unnecessarily duplicated packages in the \\`pnpm-lock.yml\\` file`,\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\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint Packages\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm lint:packages\" }],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tcleanupCommands: [\"pnpm dedupe\"],\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"lint:packages\": \"pnpm dedupe --check\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveWorkflows({\n\t\t\t\t\tworkflows: [\"lint-packages\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;AAMA,MAAa,kBAAkB,KAAK,YAAY;CAC/C,OAAO,EACN,MAAM,cACN;CACD,UAAU;AACT,SAAO,EACN,QAAQ;GACP,qBAAqB,EACpB,UAAU,EACT,SAAS,EACR,UAAU,EACT,OAAO,EACL,yJACD,EACD,EACD,EACD,EACD,EAAC;GACF,qBAAqB,EACpB,MAAM,CACL;IACC,MAAM;IACN,OAAO,CAAC,EAAE,KAAK,qBAAsB,CAAC;GACtC,CACD,EACD,EAAC;GACF,iBAAiB;IAChB,iBAAiB,CAAC,aAAc;IAChC,YAAY,EACX,SAAS,EACR,iBAAiB,sBACjB,EACD;GACD,EAAC;EACF,EACD;CACD;CACD,aAAa;AACZ,SAAO,EACN,QAAQ,CACP,qBAAqB,EACpB,WAAW,CAAC,eAAgB,EAC5B,EAAC,AACF,EACD;CACD;AACD,EAAC"}
|
|
@@ -1,82 +1,85 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum320 from "bingo-stratum";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}[];
|
|
10
|
-
plugins: string[];
|
|
11
|
-
ignores: string[];
|
|
12
|
-
runBefore: string[];
|
|
13
|
-
}, {
|
|
14
|
-
access: "public" | "restricted";
|
|
15
|
-
description: string;
|
|
16
|
-
directory: string;
|
|
17
|
-
documentation: {
|
|
18
|
-
readme: {
|
|
19
|
-
additional?: string | undefined;
|
|
20
|
-
explainer?: string | undefined;
|
|
21
|
-
footnotes?: string | undefined;
|
|
22
|
-
usage?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
development?: string | undefined;
|
|
3
|
+
//#region src/blocks/blockPrettier.d.ts
|
|
4
|
+
declare const blockPrettier: bingo_stratum320.BlockWithAddons<{
|
|
5
|
+
ignores: string[];
|
|
6
|
+
overrides: {
|
|
7
|
+
options: {
|
|
8
|
+
parser: string;
|
|
25
9
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
10
|
+
files: string;
|
|
11
|
+
}[];
|
|
12
|
+
plugins: string[];
|
|
13
|
+
runBefore: string[];
|
|
14
|
+
}, {
|
|
15
|
+
access: "public" | "restricted";
|
|
16
|
+
description: string;
|
|
17
|
+
directory: string;
|
|
18
|
+
documentation: {
|
|
19
|
+
readme: {
|
|
20
|
+
additional?: string | undefined;
|
|
21
|
+
explainer?: string | undefined;
|
|
22
|
+
footnotes?: string | undefined;
|
|
23
|
+
usage?: string | undefined;
|
|
29
24
|
};
|
|
25
|
+
development?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
email: {
|
|
28
|
+
github: string;
|
|
29
|
+
npm: string;
|
|
30
|
+
};
|
|
31
|
+
title: string;
|
|
32
|
+
node: {
|
|
33
|
+
minimum: string;
|
|
34
|
+
pinned?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
owner: string;
|
|
37
|
+
repository: string;
|
|
38
|
+
type?: "commonjs" | "module" | undefined;
|
|
39
|
+
author?: string | undefined;
|
|
40
|
+
bin?: string | Record<string, string> | undefined;
|
|
41
|
+
contributors?: {
|
|
42
|
+
avatar_url: string;
|
|
43
|
+
contributions: string[];
|
|
44
|
+
login: string;
|
|
45
|
+
name: string;
|
|
46
|
+
profile: string;
|
|
47
|
+
}[] | undefined;
|
|
48
|
+
emoji?: string | undefined;
|
|
49
|
+
existingLabels?: {
|
|
50
|
+
name: string;
|
|
51
|
+
description: string;
|
|
52
|
+
color: string;
|
|
53
|
+
}[] | undefined;
|
|
54
|
+
funding?: string | undefined;
|
|
55
|
+
guide?: {
|
|
56
|
+
href: string;
|
|
30
57
|
title: string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
guide?: {
|
|
55
|
-
href: string;
|
|
56
|
-
title: string;
|
|
57
|
-
} | undefined;
|
|
58
|
-
keywords?: string[] | undefined;
|
|
59
|
-
logo?: {
|
|
60
|
-
alt: string;
|
|
61
|
-
src: string;
|
|
62
|
-
height?: number | undefined;
|
|
63
|
-
width?: number | undefined;
|
|
64
|
-
} | undefined;
|
|
65
|
-
packageData?: {
|
|
66
|
-
dependencies?: Record<string, string> | undefined;
|
|
67
|
-
devDependencies?: Record<string, string> | undefined;
|
|
68
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
69
|
-
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
70
|
-
scripts?: Record<string, string | undefined> | undefined;
|
|
71
|
-
} | undefined;
|
|
72
|
-
pnpm?: string | undefined;
|
|
73
|
-
rulesetId?: string | undefined;
|
|
74
|
-
version?: string | undefined;
|
|
75
|
-
words?: string[] | undefined;
|
|
76
|
-
workflowsVersions?: Record<string, Record<string, {
|
|
77
|
-
pinned?: boolean | undefined;
|
|
78
|
-
hash?: string | undefined;
|
|
79
|
-
}>> | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
keywords?: string[] | undefined;
|
|
60
|
+
logo?: {
|
|
61
|
+
alt: string;
|
|
62
|
+
src: string;
|
|
63
|
+
height?: number | undefined;
|
|
64
|
+
width?: number | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
packageData?: {
|
|
67
|
+
dependencies?: Record<string, string> | undefined;
|
|
68
|
+
devDependencies?: Record<string, string> | undefined;
|
|
69
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
70
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
71
|
+
scripts?: Record<string, string | undefined> | undefined;
|
|
72
|
+
} | undefined;
|
|
73
|
+
pnpm?: string | undefined;
|
|
74
|
+
rulesetId?: string | undefined;
|
|
75
|
+
version?: string | undefined;
|
|
76
|
+
words?: string[] | undefined;
|
|
77
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
78
|
+
hash?: string | undefined;
|
|
79
|
+
pinned?: boolean | undefined;
|
|
80
|
+
}>> | undefined;
|
|
80
81
|
}>;
|
|
81
|
-
|
|
82
|
+
//# sourceMappingURL=blockPrettier.d.ts.map
|
|
83
|
+
//#endregion
|
|
82
84
|
export { blockPrettier };
|
|
85
|
+
//# sourceMappingURL=blockPrettier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockPrettier.d.ts","names":[],"sources":["../../src/blocks/blockPrettier.ts"],"sourcesContent":[],"mappings":";;;cAea,gCAAa;;;IAAb,OAAA,EAAA;MAsHX,MAAA,EAAA,MAAA;IAAA,CAAA;;;;;;;;;EAtHwB,aAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;iBAsHxB"}
|