create-typescript-app 2.74.2 → 2.74.4
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/dist/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/base.d.mts +1 -3
- package/dist/base.mjs +2 -3
- package/dist/blocks/actions/resolveUses.d.mts +1 -3
- package/dist/blocks/actions/resolveUses.mjs +1 -2
- package/dist/blocks/actions/steps.d.mts +1 -3
- package/dist/blocks/actions/steps.mjs +1 -2
- package/dist/blocks/bin/getPrimaryBin.d.mts +1 -3
- package/dist/blocks/bin/getPrimaryBin.mjs +1 -2
- package/dist/blocks/blockAllContributors.d.mts +1 -3
- package/dist/blocks/blockAllContributors.mjs +5 -6
- package/dist/blocks/blockAreTheTypesWrong.d.mts +1 -3
- package/dist/blocks/blockAreTheTypesWrong.mjs +1 -2
- package/dist/blocks/blockBin.d.mts +1 -3
- package/dist/blocks/blockBin.mjs +2 -3
- package/dist/blocks/blockCSpell.d.mts +1 -3
- package/dist/blocks/blockCSpell.mjs +6 -7
- package/dist/blocks/blockCTATransitions.d.mts +1 -3
- package/dist/blocks/blockCTATransitions.mjs +6 -7
- package/dist/blocks/blockCodecov.d.mts +1 -3
- package/dist/blocks/blockCodecov.mjs +5 -6
- package/dist/blocks/blockContributingDocs.d.mts +1 -3
- package/dist/blocks/blockContributingDocs.mjs +1 -2
- package/dist/blocks/blockContributorCovenant.d.mts +1 -3
- package/dist/blocks/blockContributorCovenant.mjs +2 -3
- package/dist/blocks/blockDevelopmentDocs.d.mts +1 -3
- package/dist/blocks/blockDevelopmentDocs.mjs +1 -2
- package/dist/blocks/blockESLint.d.mts +1 -3
- package/dist/blocks/blockESLint.mjs +10 -11
- package/dist/blocks/blockESLintComments.d.mts +1 -3
- package/dist/blocks/blockESLintComments.mjs +2 -3
- package/dist/blocks/blockESLintJSDoc.d.mts +1 -3
- package/dist/blocks/blockESLintJSDoc.mjs +2 -3
- package/dist/blocks/blockESLintJSONC.d.mts +1 -3
- package/dist/blocks/blockESLintJSONC.mjs +1 -2
- package/dist/blocks/blockESLintMarkdown.d.mts +1 -3
- package/dist/blocks/blockESLintMarkdown.mjs +3 -4
- package/dist/blocks/blockESLintMarkdownLinks.d.mts +1 -3
- package/dist/blocks/blockESLintMarkdownLinks.mjs +1 -2
- package/dist/blocks/blockESLintMoreStyling.d.mts +1 -3
- package/dist/blocks/blockESLintMoreStyling.mjs +2 -3
- package/dist/blocks/blockESLintNode.d.mts +1 -3
- package/dist/blocks/blockESLintNode.mjs +2 -3
- package/dist/blocks/blockESLintPackageJson.d.mts +1 -3
- package/dist/blocks/blockESLintPackageJson.mjs +4 -5
- package/dist/blocks/blockESLintPerfectionist.d.mts +1 -3
- package/dist/blocks/blockESLintPerfectionist.mjs +2 -3
- package/dist/blocks/blockESLintPlugin.d.mts +1 -3
- package/dist/blocks/blockESLintPlugin.mjs +8 -9
- package/dist/blocks/blockESLintRegexp.d.mts +1 -3
- package/dist/blocks/blockESLintRegexp.mjs +2 -3
- package/dist/blocks/blockESLintYML.d.mts +1 -3
- package/dist/blocks/blockESLintYML.mjs +1 -2
- package/dist/blocks/blockExampleFiles.d.mts +1 -3
- package/dist/blocks/blockExampleFiles.mjs +1 -2
- package/dist/blocks/blockExports.d.mts +1 -3
- package/dist/blocks/blockExports.mjs +2 -3
- package/dist/blocks/blockFunding.d.mts +1 -3
- package/dist/blocks/blockFunding.mjs +2 -3
- package/dist/blocks/blockGitHubActionsCI.d.mts +1 -3
- package/dist/blocks/blockGitHubActionsCI.mjs +3 -4
- package/dist/blocks/blockGitHubApps.d.mts +1 -3
- package/dist/blocks/blockGitHubApps.mjs +1 -2
- package/dist/blocks/blockGitHubIssueTemplates.d.mts +1 -3
- package/dist/blocks/blockGitHubIssueTemplates.mjs +1 -2
- package/dist/blocks/blockGitHubPRTemplate.d.mts +1 -3
- package/dist/blocks/blockGitHubPRTemplate.mjs +1 -2
- package/dist/blocks/blockGitignore.d.mts +1 -3
- package/dist/blocks/blockGitignore.mjs +2 -3
- package/dist/blocks/blockKnip.d.mts +1 -3
- package/dist/blocks/blockKnip.mjs +6 -7
- package/dist/blocks/blockMITLicense.d.mts +1 -3
- package/dist/blocks/blockMITLicense.mjs +1 -2
- package/dist/blocks/blockNcc.d.mts +1 -3
- package/dist/blocks/blockNcc.mjs +6 -7
- package/dist/blocks/blockNvmrc.d.mts +1 -3
- package/dist/blocks/blockNvmrc.mjs +1 -2
- package/dist/blocks/blockOctoGuide.d.mts +1 -3
- package/dist/blocks/blockOctoGuide.mjs +3 -4
- package/dist/blocks/blockOctoGuideStrict.d.mts +1 -3
- package/dist/blocks/blockOctoGuideStrict.mjs +1 -2
- package/dist/blocks/blockPackageJson.d.mts +1 -3
- package/dist/blocks/blockPackageJson.mjs +4 -5
- package/dist/blocks/blockPnpmDedupe.d.mts +1 -3
- package/dist/blocks/blockPnpmDedupe.mjs +1 -2
- package/dist/blocks/blockPrettier.d.mts +1 -3
- package/dist/blocks/blockPrettier.mjs +8 -9
- package/dist/blocks/blockPrettierPluginCurly.d.mts +1 -3
- package/dist/blocks/blockPrettierPluginCurly.mjs +1 -2
- package/dist/blocks/blockPrettierPluginPackageJson.d.mts +1 -3
- package/dist/blocks/blockPrettierPluginPackageJson.mjs +1 -2
- package/dist/blocks/blockPrettierPluginPaddingLines.d.mts +1 -3
- package/dist/blocks/blockPrettierPluginPaddingLines.mjs +1 -2
- package/dist/blocks/blockPrettierPluginSentencesPerLine.d.mts +1 -3
- package/dist/blocks/blockPrettierPluginSentencesPerLine.mjs +1 -2
- package/dist/blocks/blockPrettierPluginSh.d.mts +1 -3
- package/dist/blocks/blockPrettierPluginSh.mjs +1 -2
- package/dist/blocks/blockREADME.d.mts +1 -3
- package/dist/blocks/blockREADME.mjs +1 -2
- package/dist/blocks/blockReleaseIt.d.mts +1 -3
- package/dist/blocks/blockReleaseIt.mjs +7 -8
- package/dist/blocks/blockRemoveDependencies.d.mts +1 -3
- package/dist/blocks/blockRemoveDependencies.mjs +1 -2
- package/dist/blocks/blockRemoveFiles.d.mts +1 -3
- package/dist/blocks/blockRemoveFiles.mjs +1 -2
- package/dist/blocks/blockRemoveWorkflows.d.mts +1 -3
- package/dist/blocks/blockRemoveWorkflows.mjs +1 -2
- package/dist/blocks/blockRenovate.d.mts +1 -3
- package/dist/blocks/blockRenovate.mjs +2 -3
- package/dist/blocks/blockRepositoryBranchRuleset.d.mts +1 -3
- package/dist/blocks/blockRepositoryBranchRuleset.mjs +1 -2
- package/dist/blocks/blockRepositoryLabels.d.mts +1 -3
- package/dist/blocks/blockRepositoryLabels.mjs +1 -2
- package/dist/blocks/blockRepositorySecrets.d.mts +1 -3
- package/dist/blocks/blockRepositorySecrets.mjs +1 -2
- package/dist/blocks/blockRepositorySettings.d.mts +1 -3
- package/dist/blocks/blockRepositorySettings.mjs +2 -3
- package/dist/blocks/blockSecurityDocs.d.mts +1 -3
- package/dist/blocks/blockSecurityDocs.mjs +1 -2
- package/dist/blocks/blockSideEffects.d.mts +1 -3
- package/dist/blocks/blockSideEffects.mjs +1 -2
- package/dist/blocks/blockTSDown.d.mts +1 -3
- package/dist/blocks/blockTSDown.mjs +11 -12
- package/dist/blocks/blockTemplatedWith.d.mts +1 -3
- package/dist/blocks/blockTemplatedWith.mjs +1 -2
- package/dist/blocks/blockTypeScript.d.mts +1 -3
- package/dist/blocks/blockTypeScript.mjs +8 -9
- package/dist/blocks/blockVSCode.d.mts +1 -3
- package/dist/blocks/blockVSCode.mjs +2 -3
- package/dist/blocks/blockVitest.d.mts +1 -3
- package/dist/blocks/blockVitest.mjs +11 -12
- package/dist/blocks/blockWebExt.d.mts +1 -3
- package/dist/blocks/blockWebExt.mjs +5 -6
- package/dist/blocks/codecov/findCodecovStep.d.mts +1 -3
- package/dist/blocks/codecov/findCodecovStep.mjs +1 -2
- package/dist/blocks/eslint/blockESLintIntake.d.mts +1 -3
- package/dist/blocks/eslint/blockESLintIntake.mjs +1 -2
- package/dist/blocks/eslint/blockESLintPluginIntake.d.mts +1 -3
- package/dist/blocks/eslint/blockESLintPluginIntake.mjs +1 -2
- package/dist/blocks/eslint/getScriptFileExtension.d.mts +1 -3
- package/dist/blocks/eslint/getScriptFileExtension.mjs +1 -2
- package/dist/blocks/eslint/mergeAllExtensions.d.mts +1 -3
- package/dist/blocks/eslint/mergeAllExtensions.mjs +1 -2
- package/dist/blocks/eslint/schemas.d.mts +1 -3
- package/dist/blocks/eslint/schemas.mjs +1 -2
- package/dist/blocks/files/createJobName.d.mts +1 -3
- package/dist/blocks/files/createJobName.mjs +1 -2
- package/dist/blocks/files/createMultiWorkflowFile.d.mts +1 -3
- package/dist/blocks/files/createMultiWorkflowFile.mjs +1 -2
- package/dist/blocks/files/createSoloWorkflowFile.d.mts +1 -2
- package/dist/blocks/files/createSoloWorkflowFile.mjs +1 -2
- package/dist/blocks/files/formatIgnoreFile.d.mts +1 -3
- package/dist/blocks/files/formatIgnoreFile.mjs +1 -2
- package/dist/blocks/files/formatWorkflowYaml.d.mts +1 -3
- package/dist/blocks/files/formatWorkflowYaml.mjs +1 -2
- package/dist/blocks/files/formatYaml.d.mts +1 -3
- package/dist/blocks/files/formatYaml.mjs +1 -2
- package/dist/blocks/files/removeUsesQuotes.d.mts +1 -3
- package/dist/blocks/files/removeUsesQuotes.mjs +1 -2
- package/dist/blocks/files/withPreviously.d.mts +1 -3
- package/dist/blocks/files/withPreviously.mjs +1 -2
- package/dist/blocks/getInstallationSuggestions.d.mts +1 -3
- package/dist/blocks/getInstallationSuggestions.mjs +1 -2
- package/dist/blocks/index.d.mts +4 -6
- package/dist/blocks/index.mjs +31 -32
- package/dist/blocks/intake/intakeFile.d.mts +1 -3
- package/dist/blocks/intake/intakeFile.mjs +1 -2
- package/dist/blocks/intake/intakeFileAsJson.d.mts +1 -3
- package/dist/blocks/intake/intakeFileAsJson.mjs +1 -2
- package/dist/blocks/intake/intakeFileAsYaml.d.mts +1 -3
- package/dist/blocks/intake/intakeFileAsYaml.mjs +1 -2
- package/dist/blocks/intake/intakeFileDefineConfig.d.mts +1 -3
- package/dist/blocks/intake/intakeFileDefineConfig.mjs +1 -2
- package/dist/blocks/intake/intakeFileExportObject.d.mts +1 -3
- package/dist/blocks/intake/intakeFileExportObject.mjs +1 -2
- package/dist/blocks/options.fakes.d.mts +1 -3
- package/dist/blocks/options.fakes.mjs +1 -2
- package/dist/blocks/outcomeLabels.d.mts +1 -3
- package/dist/blocks/outcomeLabels.mjs +1 -2
- package/dist/blocks/phases.d.mts +1 -3
- package/dist/blocks/phases.mjs +1 -2
- package/dist/constants.d.mts +1 -3
- package/dist/constants.mjs +1 -2
- package/dist/data/contributions.d.mts +1 -3
- package/dist/data/contributions.mjs +1 -2
- package/dist/data/packageData.d.mts +1 -3
- package/dist/data/packageData.mjs +0 -1
- package/dist/index.d.mts +2 -4
- package/dist/index.mjs +3 -4
- package/dist/inputs/inputFromDirectory.d.mts +1 -3
- package/dist/inputs/inputFromDirectory.mjs +1 -2
- package/dist/inputs/inputFromOctokit.d.mts +1 -3
- package/dist/inputs/inputFromOctokit.mjs +1 -2
- package/dist/options/readAccess.d.mts +1 -3
- package/dist/options/readAccess.mjs +1 -2
- package/dist/options/readAllContributors.d.mts +1 -3
- package/dist/options/readAllContributors.mjs +1 -2
- package/dist/options/readAuthor.d.mts +1 -3
- package/dist/options/readAuthor.mjs +1 -2
- package/dist/options/readBin.d.mts +1 -3
- package/dist/options/readBin.mjs +1 -2
- package/dist/options/readBundle.d.mts +1 -3
- package/dist/options/readBundle.mjs +1 -2
- package/dist/options/readCodecovToken.d.mts +1 -3
- package/dist/options/readCodecovToken.mjs +3 -4
- package/dist/options/readDescription.d.mts +1 -3
- package/dist/options/readDescription.mjs +1 -2
- package/dist/options/readDescriptionFromReadme.d.mts +1 -3
- package/dist/options/readDescriptionFromReadme.mjs +1 -2
- package/dist/options/readDevelopmentDocumentation.d.mts +1 -3
- package/dist/options/readDevelopmentDocumentation.mjs +1 -2
- package/dist/options/readDocumentation.d.mts +1 -3
- package/dist/options/readDocumentation.mjs +1 -2
- package/dist/options/readEmailFromCodeOfConduct.d.mts +1 -3
- package/dist/options/readEmailFromCodeOfConduct.mjs +1 -2
- package/dist/options/readEmailFromGit.d.mts +1 -3
- package/dist/options/readEmailFromGit.mjs +1 -2
- package/dist/options/readEmailFromNpm.d.mts +1 -3
- package/dist/options/readEmailFromNpm.mjs +1 -2
- package/dist/options/readEmails.d.mts +1 -3
- package/dist/options/readEmails.mjs +1 -2
- package/dist/options/readEmoji.d.mts +1 -3
- package/dist/options/readEmoji.mjs +1 -2
- package/dist/options/readExistingLabels.d.mts +1 -3
- package/dist/options/readExistingLabels.mjs +1 -2
- package/dist/options/readFileAsJson.d.mts +1 -3
- package/dist/options/readFileAsJson.mjs +1 -2
- package/dist/options/readFileSafe.d.mts +1 -3
- package/dist/options/readFileSafe.mjs +1 -2
- package/dist/options/readFunding.d.mts +1 -3
- package/dist/options/readFunding.mjs +1 -2
- package/dist/options/readGitDefaults.d.mts +1 -3
- package/dist/options/readGitDefaults.mjs +1 -2
- package/dist/options/readGuide.d.mts +1 -3
- package/dist/options/readGuide.mjs +1 -2
- package/dist/options/readKeywords.d.mts +1 -3
- package/dist/options/readKeywords.mjs +1 -2
- package/dist/options/readLogo.d.mts +1 -3
- package/dist/options/readLogo.mjs +1 -2
- package/dist/options/readLogoSizing.d.mts +1 -3
- package/dist/options/readLogoSizing.mjs +1 -2
- package/dist/options/readNode.d.mts +1 -3
- package/dist/options/readNode.mjs +2 -3
- package/dist/options/readNpmDefaults.d.mts +1 -3
- package/dist/options/readNpmDefaults.mjs +1 -2
- package/dist/options/readOwner.d.mts +1 -3
- package/dist/options/readOwner.mjs +1 -2
- package/dist/options/readPackageAuthor.d.mts +1 -3
- package/dist/options/readPackageAuthor.mjs +1 -2
- package/dist/options/readPackageData.d.mts +1 -3
- package/dist/options/readPackageData.mjs +1 -2
- package/dist/options/readPnpm.d.mts +1 -3
- package/dist/options/readPnpm.mjs +1 -2
- package/dist/options/readReadmeAdditional.d.mts +1 -3
- package/dist/options/readReadmeAdditional.mjs +1 -2
- package/dist/options/readReadmeExplainer.d.mts +1 -3
- package/dist/options/readReadmeExplainer.mjs +1 -2
- package/dist/options/readReadmeFootnotes.d.mts +1 -3
- package/dist/options/readReadmeFootnotes.mjs +1 -2
- package/dist/options/readReadmeUsage.d.mts +1 -3
- package/dist/options/readReadmeUsage.mjs +1 -2
- package/dist/options/readRepository.d.mts +1 -3
- package/dist/options/readRepository.mjs +1 -2
- package/dist/options/readRulesetId.d.mts +1 -3
- package/dist/options/readRulesetId.mjs +1 -2
- package/dist/options/readTitle.d.mts +1 -3
- package/dist/options/readTitle.mjs +1 -2
- package/dist/options/readWords.d.mts +1 -3
- package/dist/options/readWords.mjs +1 -2
- package/dist/options/readWorkflowsVersions.d.mts +1 -3
- package/dist/options/readWorkflowsVersions.mjs +2 -3
- package/dist/package.json.d.mts +0 -1
- package/dist/presets/common.d.mts +1 -3
- package/dist/presets/common.mjs +3 -4
- package/dist/presets/everything.d.mts +1 -3
- package/dist/presets/everything.mjs +5 -6
- package/dist/presets/index.d.mts +0 -2
- package/dist/presets/index.mjs +2 -3
- package/dist/presets/minimal.d.mts +1 -3
- package/dist/presets/minimal.mjs +18 -19
- package/dist/schemas.d.mts +1 -3
- package/dist/schemas.mjs +1 -2
- package/dist/template.d.mts +1 -3
- package/dist/template.mjs +4 -5
- package/dist/types.d.mts +1 -2
- package/dist/utils/formatFile.d.mts +1 -3
- package/dist/utils/formatFile.mjs +1 -2
- package/dist/utils/htmlToTextSafe.d.mts +1 -3
- package/dist/utils/htmlToTextSafe.mjs +1 -2
- package/dist/utils/parseDefineConfig.d.mts +1 -3
- package/dist/utils/parseDefineConfig.mjs +1 -2
- package/dist/utils/resolveBin.d.mts +1 -3
- package/dist/utils/resolveBin.mjs +1 -2
- package/dist/utils/resolveEmails.d.mts +1 -3
- package/dist/utils/resolveEmails.mjs +1 -2
- package/dist/utils/swallowError.d.mts +1 -3
- package/dist/utils/swallowError.mjs +1 -2
- package/dist/utils/swallowErrorAsync.d.mts +1 -3
- package/dist/utils/swallowErrorAsync.mjs +1 -2
- package/dist/utils/trimPrecedingSlash.d.mts +1 -3
- package/dist/utils/trimPrecedingSlash.mjs +1 -2
- package/dist/utils/tryCatch.d.mts +1 -3
- package/dist/utils/tryCatch.mjs +1 -2
- package/package.json +13 -13
package/dist/blocks/index.mjs
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
2
|
-
import { blockAreTheTypesWrong } from "./blockAreTheTypesWrong.mjs";
|
|
3
|
-
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
4
|
-
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
5
|
-
import { blockGitHubIssueTemplates } from "./blockGitHubIssueTemplates.mjs";
|
|
6
|
-
import { blockVSCode } from "./blockVSCode.mjs";
|
|
7
|
-
import { blockCSpell } from "./blockCSpell.mjs";
|
|
8
|
-
import { blockCTATransitions } from "./blockCTATransitions.mjs";
|
|
9
|
-
import { blockESLintMoreStyling } from "./blockESLintMoreStyling.mjs";
|
|
10
|
-
import { blockESLint } from "./blockESLint.mjs";
|
|
11
|
-
import { blockREADME } from "./blockREADME.mjs";
|
|
12
|
-
import { blockGitignore } from "./blockGitignore.mjs";
|
|
13
|
-
import { blockKnip } from "./blockKnip.mjs";
|
|
14
|
-
import { blockPrettier } from "./blockPrettier.mjs";
|
|
15
|
-
import { blockReleaseIt } from "./blockReleaseIt.mjs";
|
|
16
|
-
import { blockTSDown } from "./blockTSDown.mjs";
|
|
17
|
-
import { blockVitest } from "./blockVitest.mjs";
|
|
18
|
-
import { blockESLintPlugin } from "./blockESLintPlugin.mjs";
|
|
19
|
-
import { blockTypeScript } from "./blockTypeScript.mjs";
|
|
20
|
-
import { blockNcc } from "./blockNcc.mjs";
|
|
21
|
-
import { blockWebExt } from "./blockWebExt.mjs";
|
|
22
1
|
import { blockAllContributors } from "./blockAllContributors.mjs";
|
|
23
|
-
import {
|
|
24
|
-
import { blockFunding } from "./blockFunding.mjs";
|
|
25
|
-
import { blockOctoGuide } from "./blockOctoGuide.mjs";
|
|
2
|
+
import { blockAreTheTypesWrong } from "./blockAreTheTypesWrong.mjs";
|
|
26
3
|
import { blockBin } from "./blockBin.mjs";
|
|
4
|
+
import { blockCodecov } from "./blockCodecov.mjs";
|
|
27
5
|
import { blockContributingDocs } from "./blockContributingDocs.mjs";
|
|
28
6
|
import { blockContributorCovenant } from "./blockContributorCovenant.mjs";
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { blockSecurityDocs } from "./blockSecurityDocs.mjs";
|
|
33
|
-
import { blockSideEffects } from "./blockSideEffects.mjs";
|
|
34
|
-
import { blockTemplatedWith } from "./blockTemplatedWith.mjs";
|
|
7
|
+
import { blockCSpell } from "./blockCSpell.mjs";
|
|
8
|
+
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
9
|
+
import { blockESLint } from "./blockESLint.mjs";
|
|
35
10
|
import { blockESLintComments } from "./blockESLintComments.mjs";
|
|
36
11
|
import { blockESLintJSDoc } from "./blockESLintJSDoc.mjs";
|
|
37
12
|
import { blockESLintJSONC } from "./blockESLintJSONC.mjs";
|
|
38
13
|
import { blockESLintMarkdown } from "./blockESLintMarkdown.mjs";
|
|
39
14
|
import { blockESLintMarkdownLinks } from "./blockESLintMarkdownLinks.mjs";
|
|
15
|
+
import { blockESLintMoreStyling } from "./blockESLintMoreStyling.mjs";
|
|
40
16
|
import { blockESLintNode } from "./blockESLintNode.mjs";
|
|
41
17
|
import { blockESLintPackageJson } from "./blockESLintPackageJson.mjs";
|
|
42
18
|
import { blockESLintPerfectionist } from "./blockESLintPerfectionist.mjs";
|
|
19
|
+
import { blockESLintPlugin } from "./blockESLintPlugin.mjs";
|
|
43
20
|
import { blockESLintRegexp } from "./blockESLintRegexp.mjs";
|
|
44
21
|
import { blockESLintYML } from "./blockESLintYML.mjs";
|
|
22
|
+
import { blockExports } from "./blockExports.mjs";
|
|
23
|
+
import { blockFunding } from "./blockFunding.mjs";
|
|
24
|
+
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
25
|
+
import { blockGitHubIssueTemplates } from "./blockGitHubIssueTemplates.mjs";
|
|
26
|
+
import { blockGitHubPRTemplate } from "./blockGitHubPRTemplate.mjs";
|
|
27
|
+
import { blockGitignore } from "./blockGitignore.mjs";
|
|
28
|
+
import { blockKnip } from "./blockKnip.mjs";
|
|
29
|
+
import { blockMITLicense } from "./blockMITLicense.mjs";
|
|
30
|
+
import { blockNcc } from "./blockNcc.mjs";
|
|
45
31
|
import { blockNvmrc } from "./blockNvmrc.mjs";
|
|
32
|
+
import { blockOctoGuide } from "./blockOctoGuide.mjs";
|
|
46
33
|
import { blockOctoGuideStrict } from "./blockOctoGuideStrict.mjs";
|
|
34
|
+
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
47
35
|
import { blockPnpmDedupe } from "./blockPnpmDedupe.mjs";
|
|
36
|
+
import { blockPrettier } from "./blockPrettier.mjs";
|
|
48
37
|
import { blockPrettierPluginCurly } from "./blockPrettierPluginCurly.mjs";
|
|
49
38
|
import { blockPrettierPluginPackageJson } from "./blockPrettierPluginPackageJson.mjs";
|
|
50
39
|
import { blockPrettierPluginSentencesPerLine } from "./blockPrettierPluginSentencesPerLine.mjs";
|
|
51
40
|
import { blockPrettierPluginSh } from "./blockPrettierPluginSh.mjs";
|
|
41
|
+
import { blockREADME } from "./blockREADME.mjs";
|
|
42
|
+
import { blockReleaseIt } from "./blockReleaseIt.mjs";
|
|
52
43
|
import { blockRenovate } from "./blockRenovate.mjs";
|
|
53
|
-
|
|
44
|
+
import { blockSecurityDocs } from "./blockSecurityDocs.mjs";
|
|
45
|
+
import { blockSideEffects } from "./blockSideEffects.mjs";
|
|
46
|
+
import { blockTemplatedWith } from "./blockTemplatedWith.mjs";
|
|
47
|
+
import { blockTSDown } from "./blockTSDown.mjs";
|
|
48
|
+
import { blockTypeScript } from "./blockTypeScript.mjs";
|
|
49
|
+
import { blockVitest } from "./blockVitest.mjs";
|
|
50
|
+
import { blockVSCode } from "./blockVSCode.mjs";
|
|
51
|
+
import { blockWebExt } from "./blockWebExt.mjs";
|
|
52
|
+
import { blockCTATransitions } from "./blockCTATransitions.mjs";
|
|
53
|
+
// src/blocks/index.ts
|
|
54
54
|
const blocks = {
|
|
55
55
|
blockAllContributors,
|
|
56
56
|
blockAreTheTypesWrong,
|
|
@@ -104,5 +104,4 @@ const blocks = {
|
|
|
104
104
|
blockVSCode,
|
|
105
105
|
blockWebExt
|
|
106
106
|
};
|
|
107
|
-
//#endregion
|
|
108
107
|
export { blockAllContributors, blockAreTheTypesWrong, blockBin, blockCSpell, blockCTATransitions, blockCodecov, blockContributingDocs, blockContributorCovenant, blockDevelopmentDocs, blockESLint, blockESLintComments, blockESLintJSDoc, blockESLintJSONC, blockESLintMarkdown, blockESLintMarkdownLinks, blockESLintMoreStyling, blockESLintNode, blockESLintPackageJson, blockESLintPerfectionist, blockESLintPlugin, blockESLintRegexp, blockESLintYML, blockExports, blockFunding, blockGitHubActionsCI, blockGitHubIssueTemplates, blockGitHubPRTemplate, blockGitignore, blockKnip, blockMITLicense, blockNcc, blockNvmrc, blockOctoGuide, blockOctoGuideStrict, blockPackageJson, blockPnpmDedupe, blockPrettier, blockPrettierPluginCurly, blockPrettierPluginPackageJson, blockPrettierPluginSentencesPerLine, blockPrettierPluginSh, blockREADME, blockReleaseIt, blockRenovate, blockSecurityDocs, blockSideEffects, blockTSDown, blockTemplatedWith, blockTypeScript, blockVSCode, blockVitest, blockWebExt, blocks };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { IntakeDirectory, IntakeFileEntry } from "bingo-fs";
|
|
2
|
-
|
|
3
|
-
export declare function intakeFile(files: IntakeDirectory, filePath: (string | string[])[]): IntakeFileEntry | undefined;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function intakeFile(files: IntakeDirectory, filePath: (string | string[])[]): IntakeFileEntry | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/blocks/intake/intakeFile.ts
|
|
2
2
|
function intakeFile(files, filePath) {
|
|
3
3
|
if (!filePath.length) return;
|
|
4
4
|
const nextFilePath = (typeof filePath[0] === "string" ? [filePath[0]] : filePath[0]).find((candidate) => candidate in files);
|
|
@@ -7,5 +7,4 @@ function intakeFile(files, filePath) {
|
|
|
7
7
|
if (filePath.length === 1) return Array.isArray(entry) ? entry : void 0;
|
|
8
8
|
return typeof entry === "object" && !Array.isArray(entry) ? intakeFile(entry, filePath.slice(1)) : void 0;
|
|
9
9
|
}
|
|
10
|
-
//#endregion
|
|
11
10
|
export { intakeFile };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { IntakeDirectory } from "bingo-fs";
|
|
2
|
-
|
|
3
|
-
export declare function intakeFileAsJson(files: IntakeDirectory, filePath: string[]): Record<string, unknown> | undefined;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function intakeFileAsJson(files: IntakeDirectory, filePath: string[]): Record<string, unknown> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { intakeFile } from "./intakeFile.mjs";
|
|
2
2
|
import JSON5 from "json5";
|
|
3
|
-
|
|
3
|
+
// src/blocks/intake/intakeFileAsJson.ts
|
|
4
4
|
function intakeFileAsJson(files, filePath) {
|
|
5
5
|
const file = intakeFile(files, filePath);
|
|
6
6
|
try {
|
|
@@ -9,5 +9,4 @@ function intakeFileAsJson(files, filePath) {
|
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
//#endregion
|
|
13
12
|
export { intakeFileAsJson };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { IntakeDirectory } from "bingo-fs";
|
|
2
|
-
//#region src/blocks/intake/intakeFileAsYaml.d.ts
|
|
3
2
|
export declare function intakeFileAsYaml(files: IntakeDirectory, filePath: string[]): unknown;
|
|
4
|
-
export declare function loadYamlSafe(contents: string): unknown;
|
|
5
|
-
//#endregion
|
|
3
|
+
export declare function loadYamlSafe(contents: string): unknown;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { intakeFile } from "./intakeFile.mjs";
|
|
2
2
|
import { load } from "js-yaml";
|
|
3
|
-
|
|
3
|
+
// src/blocks/intake/intakeFileAsYaml.ts
|
|
4
4
|
function intakeFileAsYaml(files, filePath) {
|
|
5
5
|
const file = intakeFile(files, filePath) ?? intakeFile(files, [...filePath.slice(0, filePath.length - 1), filePath[filePath.length - 1].replace(/\.yaml$/i, ".yml")]);
|
|
6
6
|
return file && loadYamlSafe(file[0]);
|
|
@@ -12,5 +12,4 @@ function loadYamlSafe(contents) {
|
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { intakeFileAsYaml, loadYamlSafe };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { IntakeDirectory } from "bingo-fs";
|
|
2
|
-
|
|
3
|
-
export declare function intakeFileDefineConfig(files: IntakeDirectory, filePath: (string | string[])[]): Record<string, unknown> | undefined;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function intakeFileDefineConfig(files: IntakeDirectory, filePath: (string | string[])[]): Record<string, unknown> | undefined;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { parseDefineConfig } from "../../utils/parseDefineConfig.mjs";
|
|
2
2
|
import { intakeFile } from "./intakeFile.mjs";
|
|
3
|
-
|
|
3
|
+
// src/blocks/intake/intakeFileDefineConfig.ts
|
|
4
4
|
function intakeFileDefineConfig(files, filePath) {
|
|
5
5
|
const file = intakeFile(files, filePath);
|
|
6
6
|
return file && parseDefineConfig(file[0]);
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { intakeFileDefineConfig };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { IntakeDirectory } from "bingo-fs";
|
|
2
|
-
|
|
3
|
-
export declare function intakeFileExportObject(files: IntakeDirectory, filePath: (string | string[])[]): Record<string, unknown> | undefined;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function intakeFileExportObject(files: IntakeDirectory, filePath: (string | string[])[]): Record<string, unknown> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { intakeFile } from "./intakeFile.mjs";
|
|
2
2
|
import JSON5 from "json5";
|
|
3
|
-
|
|
3
|
+
// src/blocks/intake/intakeFileExportObject.ts
|
|
4
4
|
function intakeFileExportObject(files, filePath) {
|
|
5
5
|
const file = intakeFile(files, filePath);
|
|
6
6
|
if (!file) return;
|
|
@@ -18,5 +18,4 @@ function tryParseJSON5(text) {
|
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { intakeFileExportObject };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/options.fakes.d.ts
|
|
2
1
|
export declare const optionsBase: {
|
|
3
2
|
access: "public";
|
|
4
3
|
description: string;
|
|
@@ -20,5 +19,4 @@ export declare const optionsBase: {
|
|
|
20
19
|
preset: string;
|
|
21
20
|
repository: string;
|
|
22
21
|
title: string;
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
22
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/blocks/options.fakes.ts
|
|
2
2
|
const optionsBase = {
|
|
3
3
|
access: "public",
|
|
4
4
|
description: "Test description",
|
|
@@ -15,5 +15,4 @@ const optionsBase = {
|
|
|
15
15
|
repository: "test-repository",
|
|
16
16
|
title: "Test Title"
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
export { optionsBase };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/outcomeLabels.d.ts
|
|
2
1
|
export declare const outcomeLabels: ({
|
|
3
2
|
aliases: string[];
|
|
4
3
|
color: string;
|
|
@@ -9,5 +8,4 @@ export declare const outcomeLabels: ({
|
|
|
9
8
|
description: string;
|
|
10
9
|
name: string;
|
|
11
10
|
aliases?: undefined;
|
|
12
|
-
})[];
|
|
13
|
-
//#endregion
|
|
11
|
+
})[];
|
package/dist/blocks/phases.d.mts
CHANGED
package/dist/blocks/phases.mjs
CHANGED
package/dist/constants.d.mts
CHANGED
package/dist/constants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/data/contributions.ts
|
|
2
2
|
const startingOwnerContributions = [
|
|
3
3
|
"code",
|
|
4
4
|
"content",
|
|
@@ -9,5 +9,4 @@ const startingOwnerContributions = [
|
|
|
9
9
|
"projectManagement",
|
|
10
10
|
"tool"
|
|
11
11
|
];
|
|
12
|
-
//#endregion
|
|
13
12
|
export { startingOwnerContributions };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { package_json_d_exports } from "../package.json.mjs";
|
|
2
|
-
//#region src/data/packageData.d.ts
|
|
3
2
|
export declare const packageData: typeof package_json_d_exports;
|
|
4
3
|
export declare function getPackageDependencies(...names: string[]): {
|
|
5
4
|
[k: string]: string;
|
|
6
5
|
};
|
|
7
|
-
export declare function getPackageDependency(name: string): string;
|
|
8
|
-
//#endregion
|
|
6
|
+
export declare function getPackageDependency(name: string): string;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { template } from "./template.mjs";
|
|
2
2
|
import { blockAllContributors } from "./blocks/blockAllContributors.mjs";
|
|
3
3
|
import { blockAreTheTypesWrong } from "./blocks/blockAreTheTypesWrong.mjs";
|
|
4
4
|
import { blockBin } from "./blocks/blockBin.mjs";
|
|
@@ -51,13 +51,12 @@ import { blockTypeScript } from "./blocks/blockTypeScript.mjs";
|
|
|
51
51
|
import { blockVSCode } from "./blocks/blockVSCode.mjs";
|
|
52
52
|
import { blockVitest } from "./blocks/blockVitest.mjs";
|
|
53
53
|
import { blockWebExt } from "./blocks/blockWebExt.mjs";
|
|
54
|
+
import { BaseOptions, base } from "./base.mjs";
|
|
54
55
|
import { blocks } from "./blocks/index.mjs";
|
|
55
|
-
import { template } from "./template.mjs";
|
|
56
56
|
import { presetCommon } from "./presets/common.mjs";
|
|
57
57
|
import { presetEverything } from "./presets/everything.mjs";
|
|
58
58
|
import { presetMinimal } from "./presets/minimal.mjs";
|
|
59
59
|
import { presets } from "./presets/index.mjs";
|
|
60
|
-
//#region src/index.d.ts
|
|
61
60
|
export declare const createConfig: import("bingo").CreateTemplateConfig<import("bingo-stratum").StratumTemplateOptionsShapeFor<{
|
|
62
61
|
access: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"public">, import("zod").ZodLiteral<"restricted">]>;
|
|
63
62
|
author: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -199,5 +198,4 @@ export declare const createConfig: import("bingo").CreateTemplateConfig<import("
|
|
|
199
198
|
pinned?: boolean | undefined;
|
|
200
199
|
}>> | undefined;
|
|
201
200
|
}>>;
|
|
202
|
-
//#endregion
|
|
203
201
|
export { BaseOptions, base, blockAllContributors, blockAreTheTypesWrong, blockBin, blockCSpell, blockCTATransitions, blockCodecov, blockContributingDocs, blockContributorCovenant, blockDevelopmentDocs, blockESLint, blockESLintComments, blockESLintJSDoc, blockESLintJSONC, blockESLintMarkdown, blockESLintMarkdownLinks, blockESLintMoreStyling, blockESLintNode, blockESLintPackageJson, blockESLintPerfectionist, blockESLintPlugin, blockESLintRegexp, blockESLintYML, blockExports, blockFunding, blockGitHubActionsCI, blockGitHubIssueTemplates, blockGitHubPRTemplate, blockGitignore, blockKnip, blockMITLicense, blockNcc, blockNvmrc, blockOctoGuide, blockOctoGuideStrict, blockPackageJson, blockPnpmDedupe, blockPrettier, blockPrettierPluginCurly, blockPrettierPluginPackageJson, blockPrettierPluginSentencesPerLine, blockPrettierPluginSh, blockREADME, blockReleaseIt, blockRenovate, blockSecurityDocs, blockSideEffects, blockTSDown, blockTemplatedWith, blockTypeScript, blockVSCode, blockVitest, blockWebExt, blocks, presetCommon, presetEverything, presetMinimal, presets, template };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { template } from "./template.mjs";
|
|
2
2
|
import { blockGitHubActionsCI } from "./blocks/blockGitHubActionsCI.mjs";
|
|
3
3
|
import { blockAreTheTypesWrong } from "./blocks/blockAreTheTypesWrong.mjs";
|
|
4
4
|
import { blockDevelopmentDocs } from "./blocks/blockDevelopmentDocs.mjs";
|
|
@@ -54,10 +54,9 @@ import { blockPrettierPluginSentencesPerLine } from "./blocks/blockPrettierPlugi
|
|
|
54
54
|
import { blockPrettierPluginSh } from "./blocks/blockPrettierPluginSh.mjs";
|
|
55
55
|
import { blockRenovate } from "./blocks/blockRenovate.mjs";
|
|
56
56
|
import { presetEverything } from "./presets/everything.mjs";
|
|
57
|
-
import {
|
|
57
|
+
import { base } from "./base.mjs";
|
|
58
58
|
import { blocks } from "./blocks/index.mjs";
|
|
59
59
|
import { presets } from "./presets/index.mjs";
|
|
60
|
-
|
|
60
|
+
// src/index.ts
|
|
61
61
|
const { createConfig } = template;
|
|
62
|
-
//#endregion
|
|
63
62
|
export { base, blockAllContributors, blockAreTheTypesWrong, blockBin, blockCSpell, blockCTATransitions, blockCodecov, blockContributingDocs, blockContributorCovenant, blockDevelopmentDocs, blockESLint, blockESLintComments, blockESLintJSDoc, blockESLintJSONC, blockESLintMarkdown, blockESLintMarkdownLinks, blockESLintMoreStyling, blockESLintNode, blockESLintPackageJson, blockESLintPerfectionist, blockESLintPlugin, blockESLintRegexp, blockESLintYML, blockExports, blockFunding, blockGitHubActionsCI, blockGitHubIssueTemplates, blockGitHubPRTemplate, blockGitignore, blockKnip, blockMITLicense, blockNcc, blockNvmrc, blockOctoGuide, blockOctoGuideStrict, blockPackageJson, blockPnpmDedupe, blockPrettier, blockPrettierPluginCurly, blockPrettierPluginPackageJson, blockPrettierPluginSentencesPerLine, blockPrettierPluginSh, blockREADME, blockReleaseIt, blockRenovate, blockSecurityDocs, blockSideEffects, blockTSDown, blockTemplatedWith, blockTypeScript, blockVSCode, blockVitest, blockWebExt, blocks, createConfig, presetCommon, presetEverything, presetMinimal, presets, template };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { createInput } from "bingo";
|
|
3
|
-
|
|
3
|
+
// src/inputs/inputFromDirectory.ts
|
|
4
4
|
const inputFromDirectory = createInput({
|
|
5
5
|
args: { directoryPath: z.string() },
|
|
6
6
|
async produce({ args, fs }) {
|
|
7
7
|
return await fs.readDirectory(args.directoryPath);
|
|
8
8
|
}
|
|
9
9
|
});
|
|
10
|
-
//#endregion
|
|
11
10
|
export { inputFromDirectory };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/inputs/inputFromOctokit.d.ts
|
|
3
2
|
export declare const inputFromOctokit: import("bingo").InputWithArgs<Promise<unknown>, {
|
|
4
3
|
endpoint: z.ZodString;
|
|
5
4
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
|
-
}>;
|
|
7
|
-
//#endregion
|
|
5
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { createInput } from "bingo";
|
|
3
|
-
|
|
3
|
+
// src/inputs/inputFromOctokit.ts
|
|
4
4
|
const inputFromOctokit = createInput({
|
|
5
5
|
args: {
|
|
6
6
|
endpoint: z.string(),
|
|
@@ -19,5 +19,4 @@ const inputFromOctokit = createInput({
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
//#endregion
|
|
23
22
|
export { inputFromOctokit };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { PartialPackageData } from "../types.mjs";
|
|
2
|
-
|
|
3
|
-
export declare function readAccess(getPackageDataFull: () => Promise<PartialPackageData | undefined>): Promise<"public" | "restricted">;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function readAccess(getPackageDataFull: () => Promise<PartialPackageData | undefined>): Promise<"public" | "restricted">;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { AllContributorContributor } from "../types.mjs";
|
|
2
2
|
import { TakeInput } from "bingo";
|
|
3
|
-
|
|
4
|
-
export declare function readAllContributors(take: TakeInput): Promise<AllContributorContributor[] | undefined>;
|
|
5
|
-
//#endregion
|
|
3
|
+
export declare function readAllContributors(take: TakeInput): Promise<AllContributorContributor[] | undefined>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { startingOwnerContributions } from "../data/contributions.mjs";
|
|
2
2
|
import { inputFromOctokit } from "../inputs/inputFromOctokit.mjs";
|
|
3
3
|
import { inputFromFileJSON } from "input-from-file-json";
|
|
4
|
-
|
|
4
|
+
// src/options/readAllContributors.ts
|
|
5
5
|
async function readAllContributors(take) {
|
|
6
6
|
const contributions = await take(inputFromFileJSON, { filePath: ".all-contributorsrc" });
|
|
7
7
|
if (!(contributions instanceof Error)) return contributions.contributors;
|
|
@@ -14,5 +14,4 @@ async function readAllContributors(take) {
|
|
|
14
14
|
profile: user.blog
|
|
15
15
|
}];
|
|
16
16
|
}
|
|
17
|
-
//#endregion
|
|
18
17
|
export { readAllContributors };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { PackageAuthor } from "./readPackageAuthor.mjs";
|
|
2
2
|
import { ExecaError, Result } from "execa";
|
|
3
|
-
//#region src/options/readAuthor.d.ts
|
|
4
3
|
export declare function readAuthor(getPackageAuthor: () => Promise<PackageAuthor>, getNpmDefaults: () => Promise<undefined | {
|
|
5
4
|
name?: string;
|
|
6
|
-
}>, getGitUser: () => Promise<ExecaError | Result | undefined>, owner: string | undefined): Promise<string | undefined>;
|
|
7
|
-
//#endregion
|
|
5
|
+
}>, getGitUser: () => Promise<ExecaError | Result | undefined>, owner: string | undefined): Promise<string | undefined>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// src/options/readAuthor.ts
|
|
2
2
|
async function readAuthor(getPackageAuthor, getNpmDefaults, getGitUser, owner) {
|
|
3
3
|
return (await getPackageAuthor()).name || (await getNpmDefaults())?.name || (await getGitUser())?.stdout?.toString() || owner;
|
|
4
4
|
}
|
|
5
|
-
//#endregion
|
|
6
5
|
export { readAuthor };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { PartialPackageData } from "../types.mjs";
|
|
2
|
-
|
|
3
|
-
export declare function readBin(getPackageData: () => Promise<PartialPackageData>): Promise<string | Record<string, string> | undefined>;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function readBin(getPackageData: () => Promise<PartialPackageData>): Promise<string | Record<string, string> | undefined>;
|
package/dist/options/readBin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { trimPrecedingSlash } from "../utils/trimPrecedingSlash.mjs";
|
|
2
|
-
|
|
2
|
+
// src/options/readBin.ts
|
|
3
3
|
async function readBin(getPackageData) {
|
|
4
4
|
const { bin } = await getPackageData();
|
|
5
5
|
return typeof bin === "object" ? Object.fromEntries(Object.entries(bin).map(([key, value]) => [key, normalizeBin(value)])) : normalizeBin(bin);
|
|
@@ -7,5 +7,4 @@ async function readBin(getPackageData) {
|
|
|
7
7
|
function normalizeBin(bin) {
|
|
8
8
|
return trimPrecedingSlash(bin)?.replace(/^lib\//u, "dist/");
|
|
9
9
|
}
|
|
10
|
-
//#endregion
|
|
11
10
|
export { readBin };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { parseDefineConfig } from "../utils/parseDefineConfig.mjs";
|
|
2
2
|
import { swallowError } from "../utils/swallowError.mjs";
|
|
3
3
|
import { inputFromFile } from "input-from-file";
|
|
4
|
-
|
|
4
|
+
// src/options/readBundle.ts
|
|
5
5
|
async function readBundle(take) {
|
|
6
6
|
const contents = swallowError(await take(inputFromFile, { filePath: "tsdown.config.ts" }));
|
|
7
7
|
if (!contents) return;
|
|
8
8
|
const data = parseDefineConfig(contents);
|
|
9
9
|
return data && data.unbundle !== true;
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { readBundle };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { TakeInput } from "bingo";
|
|
2
|
-
|
|
3
|
-
export declare function readCodecovToken(take: TakeInput): Promise<boolean | undefined>;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function readCodecovToken(take: TakeInput): Promise<boolean | undefined>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { swallowError } from "../utils/swallowError.mjs";
|
|
2
|
-
import { loadYamlSafe } from "../blocks/intake/intakeFileAsYaml.mjs";
|
|
3
1
|
import { getYamlSteps } from "../blocks/actions/steps.mjs";
|
|
4
2
|
import { findCodecovStep } from "../blocks/codecov/findCodecovStep.mjs";
|
|
3
|
+
import { loadYamlSafe } from "../blocks/intake/intakeFileAsYaml.mjs";
|
|
4
|
+
import { swallowError } from "../utils/swallowError.mjs";
|
|
5
5
|
import { inputFromFile } from "input-from-file";
|
|
6
|
-
|
|
6
|
+
// src/options/readCodecovToken.ts
|
|
7
7
|
async function readCodecovToken(take) {
|
|
8
8
|
const steps = await readTestSteps(take);
|
|
9
9
|
const step = steps && findCodecovStep(steps);
|
|
@@ -19,5 +19,4 @@ async function readTestSteps(take) {
|
|
|
19
19
|
]);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { readCodecovToken };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { PartialPackageData } from "../types.mjs";
|
|
2
|
-
|
|
3
|
-
export declare function readDescription(getPackageData: () => Promise<PartialPackageData>, getReadme: () => Promise<string>, getRepository: () => Promise<string | undefined>): Promise<string | undefined>;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function readDescription(getPackageData: () => Promise<PartialPackageData>, getReadme: () => Promise<string>, getRepository: () => Promise<string | undefined>): Promise<string | undefined>;
|
|
@@ -2,7 +2,7 @@ import { packageData } from "../data/packageData.mjs";
|
|
|
2
2
|
import { htmlToTextSafe } from "../utils/htmlToTextSafe.mjs";
|
|
3
3
|
import { readDescriptionFromReadme } from "./readDescriptionFromReadme.mjs";
|
|
4
4
|
import { marked } from "marked";
|
|
5
|
-
|
|
5
|
+
// src/options/readDescription.ts
|
|
6
6
|
async function readDescription(getPackageData, getReadme, getRepository) {
|
|
7
7
|
const { description: fromPackageJson } = await getPackageData();
|
|
8
8
|
if (!fromPackageJson) return;
|
|
@@ -13,5 +13,4 @@ async function readDescription(getPackageData, getReadme, getRepository) {
|
|
|
13
13
|
if (htmlToTextSafe(fromReadme) !== fromPackageJsonNormalized) return await marked.parseInline(fromPackageJson);
|
|
14
14
|
return fromReadme;
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { readDescription };
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function readDescriptionFromReadme(getReadme: () => Promise<string>): Promise<string | undefined>;
|
|
3
|
-
//#endregion
|
|
1
|
+
export declare function readDescriptionFromReadme(getReadme: () => Promise<string>): Promise<string | undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/options/readDescriptionFromReadme.ts
|
|
2
2
|
const paragraphCloser = "</p>";
|
|
3
3
|
const paragraphStarter = `<p align="center">`;
|
|
4
4
|
async function readDescriptionFromReadme(getReadme) {
|
|
@@ -9,5 +9,4 @@ async function readDescriptionFromReadme(getReadme) {
|
|
|
9
9
|
if (paragraphEnd < paragraphStart + paragraphStarter.length + 2) return;
|
|
10
10
|
return readme.slice(paragraphStart + paragraphStarter.length, paragraphEnd).replaceAll(/\s+/gu, " ").trim();
|
|
11
11
|
}
|
|
12
|
-
//#endregion
|
|
13
12
|
export { readDescriptionFromReadme };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { TakeInput } from "bingo";
|
|
2
|
-
|
|
3
|
-
export declare function readDevelopmentDocumentation(take: TakeInput): Promise<string | undefined>;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function readDevelopmentDocumentation(take: TakeInput): Promise<string | undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { swallowError } from "../utils/swallowError.mjs";
|
|
2
2
|
import { inputFromFile } from "input-from-file";
|
|
3
|
-
|
|
3
|
+
// src/options/readDevelopmentDocumentation.ts
|
|
4
4
|
const knownHeadings = /* @__PURE__ */ new Set([
|
|
5
5
|
"building",
|
|
6
6
|
"development",
|
|
@@ -17,5 +17,4 @@ async function readDevelopmentDocumentation(take) {
|
|
|
17
17
|
function parseHeading(section) {
|
|
18
18
|
return section.split("\n")[0].replace(/^#+\s+/, "").trim().toLowerCase();
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { readDevelopmentDocumentation };
|