create-typescript-app 2.0.0-beta.9 → 2.0.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.
Files changed (112) hide show
  1. package/README.md +14 -15
  2. package/bin/index.js +3 -13
  3. package/lib/base.d.ts +4 -3
  4. package/lib/base.js +25 -15
  5. package/lib/base.js.map +1 -1
  6. package/lib/blocks/blockAllContributors.d.ts +5 -4
  7. package/lib/blocks/blockAllContributors.js +3 -2
  8. package/lib/blocks/blockAllContributors.js.map +1 -1
  9. package/lib/blocks/blockAreTheTypesWrong.d.ts +5 -4
  10. package/lib/blocks/blockCSpell.d.ts +5 -4
  11. package/lib/blocks/blockCSpell.js +13 -13
  12. package/lib/blocks/blockCSpell.js.map +1 -1
  13. package/lib/blocks/blockCodecov.d.ts +5 -4
  14. package/lib/blocks/blockCodecov.js +11 -11
  15. package/lib/blocks/blockCodecov.js.map +1 -1
  16. package/lib/blocks/blockContributingDocs.d.ts +5 -4
  17. package/lib/blocks/blockContributingDocs.js +11 -11
  18. package/lib/blocks/blockContributingDocs.js.map +1 -1
  19. package/lib/blocks/blockContributorCovenant.d.ts +5 -4
  20. package/lib/blocks/blockContributorCovenant.js +11 -11
  21. package/lib/blocks/blockContributorCovenant.js.map +1 -1
  22. package/lib/blocks/blockDevelopmentDocs.d.ts +5 -4
  23. package/lib/blocks/blockDevelopmentDocs.js +11 -11
  24. package/lib/blocks/blockDevelopmentDocs.js.map +1 -1
  25. package/lib/blocks/blockESLint.d.ts +5 -4
  26. package/lib/blocks/blockESLint.js +11 -11
  27. package/lib/blocks/blockESLint.js.map +1 -1
  28. package/lib/blocks/blockESLintComments.d.ts +5 -4
  29. package/lib/blocks/blockESLintJSDoc.d.ts +5 -4
  30. package/lib/blocks/blockESLintJSONC.d.ts +5 -4
  31. package/lib/blocks/blockESLintMarkdown.d.ts +5 -4
  32. package/lib/blocks/blockESLintMoreStyling.d.ts +5 -4
  33. package/lib/blocks/blockESLintNode.d.ts +5 -4
  34. package/lib/blocks/blockESLintPackageJson.d.ts +5 -4
  35. package/lib/blocks/blockESLintPerfectionist.d.ts +5 -4
  36. package/lib/blocks/blockESLintRegexp.d.ts +5 -4
  37. package/lib/blocks/blockESLintYML.d.ts +5 -4
  38. package/lib/blocks/blockExampleFiles.d.ts +5 -4
  39. package/lib/blocks/blockExampleFiles.js +3 -2
  40. package/lib/blocks/blockExampleFiles.js.map +1 -1
  41. package/lib/blocks/blockFunding.d.ts +5 -4
  42. package/lib/blocks/blockGitHubActionsCI.d.ts +5 -4
  43. package/lib/blocks/blockGitHubActionsCI.js +11 -11
  44. package/lib/blocks/blockGitHubActionsCI.js.map +1 -1
  45. package/lib/blocks/blockGitHubApps.d.ts +5 -4
  46. package/lib/blocks/blockGitHubIssueTemplates.d.ts +5 -4
  47. package/lib/blocks/blockGitHubPRTemplate.d.ts +5 -4
  48. package/lib/blocks/blockGitignore.d.ts +5 -4
  49. package/lib/blocks/blockKnip.d.ts +5 -4
  50. package/lib/blocks/blockKnip.js +11 -11
  51. package/lib/blocks/blockKnip.js.map +1 -1
  52. package/lib/blocks/blockMITLicense.d.ts +5 -4
  53. package/lib/blocks/blockMarkdownlint.d.ts +5 -4
  54. package/lib/blocks/blockNvmrc.d.ts +5 -4
  55. package/lib/blocks/blockPRCompliance.d.ts +5 -4
  56. package/lib/blocks/blockPackageJson.d.ts +5 -4
  57. package/lib/blocks/blockPackageJson.js +11 -11
  58. package/lib/blocks/blockPackageJson.js.map +1 -1
  59. package/lib/blocks/blockPnpmDedupe.d.ts +5 -4
  60. package/lib/blocks/blockPrettier.d.ts +5 -4
  61. package/lib/blocks/blockPrettier.js +11 -10
  62. package/lib/blocks/blockPrettier.js.map +1 -1
  63. package/lib/blocks/blockPrettierPluginCurly.d.ts +5 -4
  64. package/lib/blocks/blockPrettierPluginPackageJson.d.ts +5 -4
  65. package/lib/blocks/blockPrettierPluginSh.d.ts +5 -4
  66. package/lib/blocks/blockREADME.d.ts +5 -4
  67. package/lib/blocks/blockReleaseIt.d.ts +5 -4
  68. package/lib/blocks/blockReleaseIt.js +0 -1
  69. package/lib/blocks/blockReleaseIt.js.map +1 -1
  70. package/lib/blocks/blockRenovate.d.ts +5 -4
  71. package/lib/blocks/blockRepositoryBranchRuleset.d.ts +5 -4
  72. package/lib/blocks/blockRepositoryBranchRuleset.js +78 -54
  73. package/lib/blocks/blockRepositoryBranchRuleset.js.map +1 -1
  74. package/lib/blocks/blockRepositoryLabels.d.ts +5 -4
  75. package/lib/blocks/blockRepositorySecrets.d.ts +6 -5
  76. package/lib/blocks/blockRepositorySettings.d.ts +5 -4
  77. package/lib/blocks/blockSecurityDocs.d.ts +5 -4
  78. package/lib/blocks/blockTSup.d.ts +5 -4
  79. package/lib/blocks/blockTSup.js +18 -18
  80. package/lib/blocks/blockTSup.js.map +1 -1
  81. package/lib/blocks/blockTemplatedWith.d.ts +5 -4
  82. package/lib/blocks/blockTemplatedWith.js +2 -2
  83. package/lib/blocks/blockTemplatedWith.js.map +1 -1
  84. package/lib/blocks/blockTypeScript.d.ts +5 -4
  85. package/lib/blocks/blockVSCode.d.ts +5 -4
  86. package/lib/blocks/blockVitest.d.ts +5 -4
  87. package/lib/blocks/blockVitest.js +17 -17
  88. package/lib/blocks/blockVitest.js.map +1 -1
  89. package/lib/blocks/index.d.ts +173 -130
  90. package/lib/data/contributions.d.ts +3 -0
  91. package/lib/data/contributions.js +14 -0
  92. package/lib/data/contributions.js.map +1 -0
  93. package/lib/data/packageData.d.ts +39 -43
  94. package/lib/index.d.ts +155 -3
  95. package/lib/index.js +4 -2
  96. package/lib/index.js.map +1 -1
  97. package/lib/inputs/inputFromOctokit.d.ts +9 -0
  98. package/lib/inputs/inputFromOctokit.js +28 -0
  99. package/lib/inputs/inputFromOctokit.js.map +1 -0
  100. package/lib/options/readAllContributors.d.ts +6 -0
  101. package/lib/options/readAllContributors.js +27 -0
  102. package/lib/options/readAllContributors.js.map +1 -0
  103. package/lib/options/readDocumentation.d.ts +1 -1
  104. package/lib/options/readDocumentation.js.map +1 -1
  105. package/lib/presets/common.d.ts +5 -4
  106. package/lib/presets/everything.d.ts +5 -4
  107. package/lib/presets/index.d.ts +13 -10
  108. package/lib/presets/minimal.d.ts +5 -4
  109. package/lib/template.d.ts +6 -5
  110. package/lib/template.js +6 -4
  111. package/lib/template.js.map +1 -1
  112. package/package.json +37 -39
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/blocks/blockKnip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport {\n\tgetPackageDependencies,\n\tgetPackageDependency,\n} from \"../data/packageData.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockKnip = base.createBlock({\n\tabout: {\n\t\tname: \"Knip\",\n\t},\n\taddons: {\n\t\tignoreDependencies: z.array(z.string()).optional(),\n\t},\n\tmigrate() {\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"rm .knip* knip.*\"],\n\t\t\t\t\tphase: CommandPhase.Migrations,\n\t\t\t\t\tsilent: true,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignoreDependencies } = addons;\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:knip\\` ([knip](https://github.com/webpro/knip)): Detects unused files, dependencies, and code exports`,\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 Knip\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm lint:knip\" }],\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\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"knip\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"lint:knip\": \"knip\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\"knip.json\": JSON.stringify({\n\t\t\t\t\t$schema: `https://unpkg.com/knip@${getPackageDependency(\"knip\")}/schema.json`,\n\t\t\t\t\tentry: [\"src/index.ts\", \"src/**/*.test.*\"],\n\t\t\t\t\tignoreDependencies,\n\t\t\t\t\tignoreExportsUsedInFile: {\n\t\t\t\t\t\tinterface: true,\n\t\t\t\t\t\ttype: true,\n\t\t\t\t\t},\n\t\t\t\t\tproject: [\"src/**/*.ts\"],\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB;AAAA,EACC;AAAA,EACA;AAAA,OACM;AACP,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AACrC,SAAS,wBAAwB;AACjC,SAAS,oBAAoB;AAEtB,MAAM,YAAY,KAAK,YAAY;AAAA,EACzC,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,EAClD;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,kBAAkB;AAAA,UAC7B,OAAO,aAAa;AAAA,UACpB,QAAQ;AAAA,QACT;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,QAAQ,EAAE,OAAO,GAAG;AACnB,UAAM,EAAE,mBAAmB,IAAI;AAC/B,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,qBAAqB;AAAA,UACpB,UAAU;AAAA,YACT,SAAS;AAAA,cACR,UAAU;AAAA,gBACT,OAAO;AAAA,kBACN;AAAA,gBACD;AAAA,cACD;AAAA,YACD;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,qBAAqB;AAAA,UACpB,MAAM;AAAA,YACL;AAAA,cACC,MAAM;AAAA,cACN,OAAO,CAAC,EAAE,KAAK,iBAAiB,CAAC;AAAA,YAClC;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,iBAAiB;AAAA,UAChB,YAAY;AAAA,YACX,iBAAiB,uBAAuB,MAAM;AAAA,YAC9C,SAAS;AAAA,cACR,aAAa;AAAA,YACd;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACN,aAAa,KAAK,UAAU;AAAA,UAC3B,SAAS,0BAA0B,qBAAqB,MAAM,CAAC;AAAA,UAC/D,OAAO,CAAC,gBAAgB,iBAAiB;AAAA,UACzC;AAAA,UACA,yBAAyB;AAAA,YACxB,WAAW;AAAA,YACX,MAAM;AAAA,UACP;AAAA,UACA,SAAS,CAAC,aAAa;AAAA,QACxB,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/blocks/blockKnip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport {\n\tgetPackageDependencies,\n\tgetPackageDependency,\n} from \"../data/packageData.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockKnip = base.createBlock({\n\tabout: {\n\t\tname: \"Knip\",\n\t},\n\taddons: {\n\t\tignoreDependencies: z.array(z.string()).optional(),\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignoreDependencies } = addons;\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:knip\\` ([knip](https://github.com/webpro/knip)): Detects unused files, dependencies, and code exports`,\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 Knip\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm lint:knip\" }],\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\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"knip\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"lint:knip\": \"knip\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\"knip.json\": JSON.stringify({\n\t\t\t\t\t$schema: `https://unpkg.com/knip@${getPackageDependency(\"knip\")}/schema.json`,\n\t\t\t\t\tentry: [\"src/index.ts\", \"src/**/*.test.*\"],\n\t\t\t\t\tignoreDependencies,\n\t\t\t\t\tignoreExportsUsedInFile: {\n\t\t\t\t\t\tinterface: true,\n\t\t\t\t\t\ttype: true,\n\t\t\t\t\t},\n\t\t\t\t\tproject: [\"src/**/*.ts\"],\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands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,UACP;AAAA,UACA,SAAS,CAAC,aAAa;AAAA,QACxB,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AAAA,EACA,aAAa;AACZ,WAAO;AAAA,MACN,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,kBAAkB;AAAA,UAC7B,OAAO,aAAa;AAAA,UACpB,QAAQ;AAAA,QACT;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
@@ -1,8 +1,8 @@
1
- import * as create from 'create';
1
+ import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockMITLicense: create.BlockWithoutAddons<{
4
- description: string;
3
+ declare const blockMITLicense: bingo_stratum.BlockWithoutAddons<{
5
4
  access: "public" | "restricted";
5
+ description: string;
6
6
  directory: string;
7
7
  email: {
8
8
  github: string;
@@ -14,10 +14,10 @@ declare const blockMITLicense: create.BlockWithoutAddons<{
14
14
  author?: string | undefined;
15
15
  bin?: string | undefined;
16
16
  contributors?: {
17
- name: string;
18
17
  avatar_url: string;
19
18
  contributions: string[];
20
19
  login: string;
20
+ name: string;
21
21
  profile: string;
22
22
  }[] | undefined;
23
23
  documentation?: string | undefined;
@@ -43,6 +43,7 @@ declare const blockMITLicense: create.BlockWithoutAddons<{
43
43
  devDependencies?: Record<string, string> | undefined;
44
44
  scripts?: Record<string, string> | undefined;
45
45
  } | undefined;
46
+ rulesetId?: string | undefined;
46
47
  usage?: string | undefined;
47
48
  version?: string | undefined;
48
49
  }>;
@@ -1,10 +1,10 @@
1
- import * as create from 'create';
1
+ import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockMarkdownlint: create.BlockWithAddons<{
3
+ declare const blockMarkdownlint: bingo_stratum.BlockWithAddons<{
4
4
  ignores: string[];
5
5
  }, {
6
- description: string;
7
6
  access: "public" | "restricted";
7
+ description: string;
8
8
  directory: string;
9
9
  email: {
10
10
  github: string;
@@ -16,10 +16,10 @@ declare const blockMarkdownlint: create.BlockWithAddons<{
16
16
  author?: string | undefined;
17
17
  bin?: string | undefined;
18
18
  contributors?: {
19
- name: string;
20
19
  avatar_url: string;
21
20
  contributions: string[];
22
21
  login: string;
22
+ name: string;
23
23
  profile: string;
24
24
  }[] | undefined;
25
25
  documentation?: string | undefined;
@@ -45,6 +45,7 @@ declare const blockMarkdownlint: create.BlockWithAddons<{
45
45
  devDependencies?: Record<string, string> | undefined;
46
46
  scripts?: Record<string, string> | undefined;
47
47
  } | undefined;
48
+ rulesetId?: string | undefined;
48
49
  usage?: string | undefined;
49
50
  version?: string | undefined;
50
51
  }>;
@@ -1,8 +1,8 @@
1
- import * as create from 'create';
1
+ import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockNvmrc: create.BlockWithoutAddons<{
4
- description: string;
3
+ declare const blockNvmrc: bingo_stratum.BlockWithoutAddons<{
5
4
  access: "public" | "restricted";
5
+ description: string;
6
6
  directory: string;
7
7
  email: {
8
8
  github: string;
@@ -14,10 +14,10 @@ declare const blockNvmrc: create.BlockWithoutAddons<{
14
14
  author?: string | undefined;
15
15
  bin?: string | undefined;
16
16
  contributors?: {
17
- name: string;
18
17
  avatar_url: string;
19
18
  contributions: string[];
20
19
  login: string;
20
+ name: string;
21
21
  profile: string;
22
22
  }[] | undefined;
23
23
  documentation?: string | undefined;
@@ -43,6 +43,7 @@ declare const blockNvmrc: create.BlockWithoutAddons<{
43
43
  devDependencies?: Record<string, string> | undefined;
44
44
  scripts?: Record<string, string> | undefined;
45
45
  } | undefined;
46
+ rulesetId?: string | undefined;
46
47
  usage?: string | undefined;
47
48
  version?: string | undefined;
48
49
  }>;
@@ -1,8 +1,8 @@
1
- import * as create from 'create';
1
+ import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockPRCompliance: create.BlockWithoutAddons<{
4
- description: string;
3
+ declare const blockPRCompliance: bingo_stratum.BlockWithoutAddons<{
5
4
  access: "public" | "restricted";
5
+ description: string;
6
6
  directory: string;
7
7
  email: {
8
8
  github: string;
@@ -14,10 +14,10 @@ declare const blockPRCompliance: create.BlockWithoutAddons<{
14
14
  author?: string | undefined;
15
15
  bin?: string | undefined;
16
16
  contributors?: {
17
- name: string;
18
17
  avatar_url: string;
19
18
  contributions: string[];
20
19
  login: string;
20
+ name: string;
21
21
  profile: string;
22
22
  }[] | undefined;
23
23
  documentation?: string | undefined;
@@ -43,6 +43,7 @@ declare const blockPRCompliance: create.BlockWithoutAddons<{
43
43
  devDependencies?: Record<string, string> | undefined;
44
44
  scripts?: Record<string, string> | undefined;
45
45
  } | undefined;
46
+ rulesetId?: string | undefined;
46
47
  usage?: string | undefined;
47
48
  version?: string | undefined;
48
49
  }>;
@@ -1,6 +1,6 @@
1
- import * as create from 'create';
1
+ import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockPackageJson: create.BlockWithAddons<{
3
+ declare const blockPackageJson: bingo_stratum.BlockWithAddons<{
4
4
  properties: {
5
5
  dependencies?: Record<string, string> | undefined;
6
6
  devDependencies?: Record<string, string> | undefined;
@@ -10,8 +10,8 @@ declare const blockPackageJson: create.BlockWithAddons<{
10
10
  } & Record<string, unknown>;
11
11
  cleanupCommands: string[];
12
12
  }, {
13
- description: string;
14
13
  access: "public" | "restricted";
14
+ description: string;
15
15
  directory: string;
16
16
  email: {
17
17
  github: string;
@@ -23,10 +23,10 @@ declare const blockPackageJson: create.BlockWithAddons<{
23
23
  author?: string | undefined;
24
24
  bin?: string | undefined;
25
25
  contributors?: {
26
- name: string;
27
26
  avatar_url: string;
28
27
  contributions: string[];
29
28
  login: string;
29
+ name: string;
30
30
  profile: string;
31
31
  }[] | undefined;
32
32
  documentation?: string | undefined;
@@ -52,6 +52,7 @@ declare const blockPackageJson: create.BlockWithAddons<{
52
52
  devDependencies?: Record<string, string> | undefined;
53
53
  scripts?: Record<string, string> | undefined;
54
54
  } | undefined;
55
+ rulesetId?: string | undefined;
55
56
  usage?: string | undefined;
56
57
  version?: string | undefined;
57
58
  }>;
@@ -22,17 +22,6 @@ const blockPackageJson = base.createBlock({
22
22
  z.record(z.string(), z.unknown())
23
23
  ).default({})
24
24
  },
25
- migrate() {
26
- return {
27
- scripts: [
28
- {
29
- commands: ["rm package-lock.json yarn.lock"],
30
- phase: CommandPhase.Migrations,
31
- silent: true
32
- }
33
- ]
34
- };
35
- },
36
25
  produce({ addons, offline, options }) {
37
26
  const dependencies = {
38
27
  ...options.packageData?.dependencies,
@@ -97,6 +86,17 @@ const blockPackageJson = base.createBlock({
97
86
  }
98
87
  ]
99
88
  };
89
+ },
90
+ transition() {
91
+ return {
92
+ scripts: [
93
+ {
94
+ commands: ["rm package-lock.json yarn.lock"],
95
+ phase: CommandPhase.Migrations,
96
+ silent: true
97
+ }
98
+ ]
99
+ };
100
100
  }
101
101
  });
102
102
  export {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/blocks/blockPackageJson.ts"],"sourcesContent":["import * as htmlToText from \"html-to-text\";\nimport removeUndefinedObjects from \"remove-undefined-objects\";\nimport sortPackageJson from \"sort-package-json\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { CommandPhase } from \"./phases.js\";\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\t// TODO: Find a zod package for this?\n\t\tproperties: z\n\t\t\t.intersection(\n\t\t\t\tz.object({\n\t\t\t\t\tdependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tdevDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tfiles: z.array(z.string()).optional(),\n\t\t\t\t\tpeerDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tscripts: z.record(z.string(), z.string()).optional(),\n\t\t\t\t}),\n\t\t\t\tz.record(z.string(), z.unknown()),\n\t\t\t)\n\t\t\t.default({}),\n\t},\n\tmigrate() {\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"rm package-lock.json yarn.lock\"],\n\t\t\t\t\tphase: CommandPhase.Migrations,\n\t\t\t\t\tsilent: true,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\tproduce({ addons, offline, options }) {\n\t\tconst dependencies = {\n\t\t\t...options.packageData?.dependencies,\n\t\t\t...addons.properties.dependencies,\n\t\t};\n\t\tconst devDependencies = {\n\t\t\t...options.packageData?.devDependencies,\n\t\t\t...addons.properties.devDependencies,\n\t\t};\n\t\tconst description = htmlToText.convert(options.description, {\n\t\t\twordwrap: false,\n\t\t});\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...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\t...(options.node && {\n\t\t\t\t\t\t\t\tengines: {\n\t\t\t\t\t\t\t\t\tnode: `>=${options.node.minimum}`,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tfiles: [\n\t\t\t\t\t\t\t\toptions.bin?.replace(/^\\.\\//, \"\"),\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\t\t.filter(Boolean)\n\t\t\t\t\t\t\t\t.sort(),\n\t\t\t\t\t\t\tkeywords: options.keywords?.flatMap((keyword) =>\n\t\t\t\t\t\t\t\tkeyword.split(/ /),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tlicense: \"MIT\",\n\t\t\t\t\t\t\tmain: \"lib/index.js\",\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: \"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\toffline ? \"pnpm install --offline\" : \"pnpm install\",\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});\n"],"mappings":"AAAA,YAAY,gBAAgB;AAC5B,OAAO,4BAA4B;AACnC,OAAO,qBAAqB;AAC5B,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,oBAAoB;AAEtB,MAAM,mBAAmB,KAAK,YAAY;AAAA,EAChD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA;AAAA,IAE/C,YAAY,EACV;AAAA,MACA,EAAE,OAAO;AAAA,QACR,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,QACxD,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAAE,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AAK,QAAQ,KAAK,OAAO;AAAA,gBAChC;AAAA,cACD;AAAA,cACA,OAAO;AAAA,gBACN,QAAQ,KAAK,QAAQ,SAAS,EAAE;AAAA,gBAChC,GAAI,OAAO,WAAW,SAAS,CAAC;AAAA,gBAChC;AAAA,gBACA;AAAA,cACD,EACE,OAAO,OAAO,EACd,KAAK;AAAA,cACP,UAAU,QAAQ,UAAU;AAAA,gBAAQ,CAAC,YACpC,QAAQ,MAAM,GAAG;AAAA,cAClB;AAAA,cACA,SAAS;AAAA,cACT,MAAM;AAAA,cACN,MAAM,QAAQ;AAAA,cACd,YAAY;AAAA,gBACX,MAAM;AAAA,gBACN,KAAK,0BAA0B,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA,cACnE;AAAA,cACA,SAAS;AAAA,gBACR,GAAG,QAAQ,aAAa;AAAA,gBACxB,GAAG,OAAO,WAAW;AAAA,cACtB;AAAA,cACA,MAAM;AAAA,cACN,SAAS,QAAQ,WAAW;AAAA,YAC7B,CAAC;AAAA,UACF;AAAA,QACD;AAAA,MACD;AAAA,MACA,SAAS;AAAA,QACR;AAAA,UACC,UAAU;AAAA,YACT,UAAU,2BAA2B;AAAA,YACrC,GAAG,OAAO;AAAA,UACX;AAAA,UACA,OAAO,aAAa;AAAA,QACrB;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/blocks/blockPackageJson.ts"],"sourcesContent":["import * as htmlToText from \"html-to-text\";\nimport removeUndefinedObjects from \"remove-undefined-objects\";\nimport sortPackageJson from \"sort-package-json\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { CommandPhase } from \"./phases.js\";\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\t// TODO: Find a zod package for this?\n\t\tproperties: z\n\t\t\t.intersection(\n\t\t\t\tz.object({\n\t\t\t\t\tdependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tdevDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tfiles: z.array(z.string()).optional(),\n\t\t\t\t\tpeerDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tscripts: z.record(z.string(), z.string()).optional(),\n\t\t\t\t}),\n\t\t\t\tz.record(z.string(), z.unknown()),\n\t\t\t)\n\t\t\t.default({}),\n\t},\n\tproduce({ addons, offline, options }) {\n\t\tconst dependencies = {\n\t\t\t...options.packageData?.dependencies,\n\t\t\t...addons.properties.dependencies,\n\t\t};\n\t\tconst devDependencies = {\n\t\t\t...options.packageData?.devDependencies,\n\t\t\t...addons.properties.devDependencies,\n\t\t};\n\t\tconst description = htmlToText.convert(options.description, {\n\t\t\twordwrap: false,\n\t\t});\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...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\t...(options.node && {\n\t\t\t\t\t\t\t\tengines: {\n\t\t\t\t\t\t\t\t\tnode: `>=${options.node.minimum}`,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tfiles: [\n\t\t\t\t\t\t\t\toptions.bin?.replace(/^\\.\\//, \"\"),\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\t\t.filter(Boolean)\n\t\t\t\t\t\t\t\t.sort(),\n\t\t\t\t\t\t\tkeywords: options.keywords?.flatMap((keyword) =>\n\t\t\t\t\t\t\t\tkeyword.split(/ /),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tlicense: \"MIT\",\n\t\t\t\t\t\t\tmain: \"lib/index.js\",\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: \"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\toffline ? \"pnpm install --offline\" : \"pnpm install\",\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\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"rm package-lock.json yarn.lock\"],\n\t\t\t\t\tphase: CommandPhase.Migrations,\n\t\t\t\t\tsilent: true,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,YAAY,gBAAgB;AAC5B,OAAO,4BAA4B;AACnC,OAAO,qBAAqB;AAC5B,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,oBAAoB;AAEtB,MAAM,m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1
- import * as create from 'create';
1
+ import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockPnpmDedupe: create.BlockWithoutAddons<{
4
- description: string;
3
+ declare const blockPnpmDedupe: bingo_stratum.BlockWithoutAddons<{
5
4
  access: "public" | "restricted";
5
+ description: string;
6
6
  directory: string;
7
7
  email: {
8
8
  github: string;
@@ -14,10 +14,10 @@ declare const blockPnpmDedupe: create.BlockWithoutAddons<{
14
14
  author?: string | undefined;
15
15
  bin?: string | undefined;
16
16
  contributors?: {
17
- name: string;
18
17
  avatar_url: string;
19
18
  contributions: string[];
20
19
  login: string;
20
+ name: string;
21
21
  profile: string;
22
22
  }[] | undefined;
23
23
  documentation?: string | undefined;
@@ -43,6 +43,7 @@ declare const blockPnpmDedupe: create.BlockWithoutAddons<{
43
43
  devDependencies?: Record<string, string> | undefined;
44
44
  scripts?: Record<string, string> | undefined;
45
45
  } | undefined;
46
+ rulesetId?: string | undefined;
46
47
  usage?: string | undefined;
47
48
  version?: string | undefined;
48
49
  }>;
@@ -1,6 +1,6 @@
1
- import * as create from 'create';
1
+ import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockPrettier: create.BlockWithAddons<{
3
+ declare const blockPrettier: bingo_stratum.BlockWithAddons<{
4
4
  ignores: string[];
5
5
  plugins: string[];
6
6
  overrides: {
@@ -10,8 +10,8 @@ declare const blockPrettier: create.BlockWithAddons<{
10
10
  files: string;
11
11
  }[];
12
12
  }, {
13
- description: string;
14
13
  access: "public" | "restricted";
14
+ description: string;
15
15
  directory: string;
16
16
  email: {
17
17
  github: string;
@@ -23,10 +23,10 @@ declare const blockPrettier: create.BlockWithAddons<{
23
23
  author?: string | undefined;
24
24
  bin?: string | undefined;
25
25
  contributors?: {
26
- name: string;
27
26
  avatar_url: string;
28
27
  contributions: string[];
29
28
  login: string;
29
+ name: string;
30
30
  profile: string;
31
31
  }[] | undefined;
32
32
  documentation?: string | undefined;
@@ -52,6 +52,7 @@ declare const blockPrettier: create.BlockWithAddons<{
52
52
  devDependencies?: Record<string, string> | undefined;
53
53
  scripts?: Record<string, string> | undefined;
54
54
  } | undefined;
55
+ rulesetId?: string | undefined;
55
56
  usage?: string | undefined;
56
57
  version?: string | undefined;
57
58
  }>;
@@ -24,16 +24,6 @@ const blockPrettier = base.createBlock({
24
24
  ).default([]),
25
25
  plugins: z.array(z.string()).default([])
26
26
  },
27
- migrate() {
28
- return {
29
- scripts: [
30
- {
31
- commands: ["rm .prettierrc* prettier.config*"],
32
- phase: CommandPhase.Migrations
33
- }
34
- ]
35
- };
36
- },
37
27
  produce({ addons }) {
38
28
  const { ignores, overrides, plugins } = addons;
39
29
  return {
@@ -109,6 +99,17 @@ pnpm format --write
109
99
  }
110
100
  ]
111
101
  };
102
+ },
103
+ transition() {
104
+ return {
105
+ scripts: [
106
+ {
107
+ commands: ["rm .prettierrc* prettier.config*"],
108
+ phase: CommandPhase.Migrations,
109
+ silent: true
110
+ }
111
+ ]
112
+ };
112
113
  }
113
114
  });
114
115
  export {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/blocks/blockPrettier.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { formatIgnoreFile } from \"./files/formatIgnoreFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockPrettier = base.createBlock({\n\tabout: {\n\t\tname: \"Prettier\",\n\t},\n\taddons: {\n\t\tignores: z.array(z.string()).default([]),\n\t\toverrides: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tfiles: z.string(),\n\t\t\t\t\toptions: z.object({\n\t\t\t\t\t\tparser: z.string(),\n\t\t\t\t\t}),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.default([]),\n\t\tplugins: z.array(z.string()).default([]),\n\t},\n\tmigrate() {\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"rm .prettierrc* prettier.config*\"],\n\t\t\t\t\tphase: CommandPhase.Migrations,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignores, overrides, plugins } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\tignores: [\".all-contributorsrc\"],\n\t\t\t\t}),\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tFormatting: {\n\t\t\t\t\t\t\tcontents: `\n[Prettier](https://prettier.io) is used to format code.\nIt should be applied automatically when you save files in VS Code or make a Git commit.\n\nTo manually reformat all files, you can run:\n\n\\`\\`\\`shell\npnpm format --write\n\\`\\`\\`\n`,\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: \"Prettier\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm format --list-different\" }],\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\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\n\t\t\t\t\t\t\t...plugins,\n\t\t\t\t\t\t\t\"husky\",\n\t\t\t\t\t\t\t\"lint-staged\",\n\t\t\t\t\t\t\t\"prettier\",\n\t\t\t\t\t\t),\n\t\t\t\t\t\t\"lint-staged\": {\n\t\t\t\t\t\t\t\"*\": \"prettier --ignore-unknown --write\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\tformat: \"prettier .\",\n\t\t\t\t\t\t\tprepare: \"husky\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVSCode({\n\t\t\t\t\textensions: [\"esbenp.prettier-vscode\"],\n\t\t\t\t\tsettings: { \"editor.defaultFormatter\": \"esbenp.prettier-vscode\" },\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".husky\": {\n\t\t\t\t\t\".gitignore\": \"_\\n\",\n\t\t\t\t\t\"pre-commit\": [\"npx lint-staged\\n\", { executable: true }],\n\t\t\t\t},\n\t\t\t\t\".prettierignore\": formatIgnoreFile(\n\t\t\t\t\t[\"/.husky\", \"/lib\", \"/pnpm-lock.yaml\", ...ignores].sort(),\n\t\t\t\t),\n\t\t\t\t\".prettierrc.json\": JSON.stringify({\n\t\t\t\t\t$schema: \"http://json.schemastore.org/prettierrc\",\n\t\t\t\t\t...(overrides.length && { overrides: overrides.sort() }),\n\t\t\t\t\t...(plugins.length && { plugins: plugins.sort() }),\n\t\t\t\t\tuseTabs: true,\n\t\t\t\t}),\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"pnpm format --write\"],\n\t\t\t\t\tphase: CommandPhase.Format,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,8BAA8B;AACvC,SAAS,mBAAmB;AAC5B,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AACrC,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,wBAAwB;AACjC,SAAS,oBAAoB;AAEtB,MAAM,gBAAgB,KAAK,YAAY;AAAA,EAC7C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,IACvC,WAAW,EACT;AAAA,MACA,EAAE,OAAO;AAAA,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AAAA,QACjE,CAAC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACN,UAAU;AAAA,UACT,cAAc;AAAA,UACd,cAAc,CAAC,qBAAqB,EAAE,YAAY,KAAK,CAAC;AAAA,QACzD;AAAA,QACA,mBAAmB;AAAA,UAClB,CAAC,WAAW,QAAQ,mBAAmB,GAAG,OAAO,EAAE,KAAK;AAAA,QACzD;AAAA,QACA,oBAAoB,KAAK,UAAU;AAAA,UAClC,SAAS;AAAA,UACT,GAAI,UAAU,UAAU,EAAE,WAAW,UAAU,KAAK,EAAE;AAAA,UACtD,GAAI,QAAQ,UAAU,EAAE,SAAS,QAAQ,KAAK,EAAE;AAAA,UAChD,SAAS;AAAA,QACV,CAAC;AAAA,MACF;AAAA,MACA,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,qBAAqB;AAAA,UAChC,OAAO,aAAa;AAAA,QACrB;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/blocks/blockPrettier.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { formatIgnoreFile } from \"./files/formatIgnoreFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockPrettier = base.createBlock({\n\tabout: {\n\t\tname: \"Prettier\",\n\t},\n\taddons: {\n\t\tignores: z.array(z.string()).default([]),\n\t\toverrides: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tfiles: z.string(),\n\t\t\t\t\toptions: z.object({\n\t\t\t\t\t\tparser: z.string(),\n\t\t\t\t\t}),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.default([]),\n\t\tplugins: z.array(z.string()).default([]),\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignores, overrides, plugins } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\tignores: [\".all-contributorsrc\"],\n\t\t\t\t}),\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tFormatting: {\n\t\t\t\t\t\t\tcontents: `\n[Prettier](https://prettier.io) is used to format code.\nIt should be applied automatically when you save files in VS Code or make a Git commit.\n\nTo manually reformat all files, you can run:\n\n\\`\\`\\`shell\npnpm format --write\n\\`\\`\\`\n`,\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: \"Prettier\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm format --list-different\" }],\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\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\n\t\t\t\t\t\t\t...plugins,\n\t\t\t\t\t\t\t\"husky\",\n\t\t\t\t\t\t\t\"lint-staged\",\n\t\t\t\t\t\t\t\"prettier\",\n\t\t\t\t\t\t),\n\t\t\t\t\t\t\"lint-staged\": {\n\t\t\t\t\t\t\t\"*\": \"prettier --ignore-unknown --write\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\tformat: \"prettier .\",\n\t\t\t\t\t\t\tprepare: \"husky\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVSCode({\n\t\t\t\t\textensions: [\"esbenp.prettier-vscode\"],\n\t\t\t\t\tsettings: { \"editor.defaultFormatter\": \"esbenp.prettier-vscode\" },\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".husky\": {\n\t\t\t\t\t\".gitignore\": \"_\\n\",\n\t\t\t\t\t\"pre-commit\": [\"npx lint-staged\\n\", { executable: true }],\n\t\t\t\t},\n\t\t\t\t\".prettierignore\": formatIgnoreFile(\n\t\t\t\t\t[\"/.husky\", \"/lib\", \"/pnpm-lock.yaml\", ...ignores].sort(),\n\t\t\t\t),\n\t\t\t\t\".prettierrc.json\": JSON.stringify({\n\t\t\t\t\t$schema: \"http://json.schemastore.org/prettierrc\",\n\t\t\t\t\t...(overrides.length && { overrides: overrides.sort() }),\n\t\t\t\t\t...(plugins.length && { plugins: plugins.sort() }),\n\t\t\t\t\tuseTabs: true,\n\t\t\t\t}),\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"pnpm format --write\"],\n\t\t\t\t\tphase: CommandPhase.Format,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"rm .prettierrc* prettier.config*\"],\n\t\t\t\t\tphase: CommandPhase.Migrations,\n\t\t\t\t\tsilent: true,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,8BAA8B;AACvC,SAAS,mBAAmB;AAC5B,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AACrC,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,wBAAwB;AACjC,SAAS,oBAAoB;AAEtB,MAAM,gBAAgB,KAAK,YAAY;AAAA,EAC7C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,IACvC,WAAW,EACT;AAAA,MACA,EAAE,OAAO;AAAA,QACR,OAAO,EAA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,UAClB,CAAC,WAAW,QAAQ,mBAAmB,GAAG,OAAO,EAAE,KAAK;AAAA,QACzD;AAAA,QACA,oBAAoB,KAAK,UAAU;AAAA,UAClC,SAAS;AAAA,UACT,GAAI,UAAU,UAAU,EAAE,WAAW,UAAU,KAAK,EAAE;AAAA,UACtD,GAAI,QAAQ,UAAU,EAAE,SAAS,QAAQ,KAAK,EAAE;AAAA,UAChD,SAAS;AAAA,QACV,CAAC;AAAA,MACF;AAAA,MACA,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,qBAAqB;AAAA,UAChC,OAAO,aAAa;AAAA,QACrB;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,aAAa;AACZ,WAAO;AAAA,MACN,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,kCAAkC;AAAA,UAC7C,OAAO,aAAa;AAAA,UACpB,QAAQ;AAAA,QACT;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
@@ -1,8 +1,8 @@
1
- import * as create from 'create';
1
+ import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockPrettierPluginCurly: create.BlockWithoutAddons<{
4
- description: string;
3
+ declare const blockPrettierPluginCurly: bingo_stratum.BlockWithoutAddons<{
5
4
  access: "public" | "restricted";
5
+ description: string;
6
6
  directory: string;
7
7
  email: {
8
8
  github: string;
@@ -14,10 +14,10 @@ declare const blockPrettierPluginCurly: create.BlockWithoutAddons<{
14
14
  author?: string | undefined;
15
15
  bin?: string | undefined;
16
16
  contributors?: {
17
- name: string;
18
17
  avatar_url: string;
19
18
  contributions: string[];
20
19
  login: string;
20
+ name: string;
21
21
  profile: string;
22
22
  }[] | undefined;
23
23
  documentation?: string | undefined;
@@ -43,6 +43,7 @@ declare const blockPrettierPluginCurly: create.BlockWithoutAddons<{
43
43
  devDependencies?: Record<string, string> | undefined;
44
44
  scripts?: Record<string, string> | undefined;
45
45
  } | undefined;
46
+ rulesetId?: string | undefined;
46
47
  usage?: string | undefined;
47
48
  version?: string | undefined;
48
49
  }>;
@@ -1,8 +1,8 @@
1
- import * as create from 'create';
1
+ import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockPrettierPluginPackageJson: create.BlockWithoutAddons<{
4
- description: string;
3
+ declare const blockPrettierPluginPackageJson: bingo_stratum.BlockWithoutAddons<{
5
4
  access: "public" | "restricted";
5
+ description: string;
6
6
  directory: string;
7
7
  email: {
8
8
  github: string;
@@ -14,10 +14,10 @@ declare const blockPrettierPluginPackageJson: create.BlockWithoutAddons<{
14
14
  author?: string | undefined;
15
15
  bin?: string | undefined;
16
16
  contributors?: {
17
- name: string;
18
17
  avatar_url: string;
19
18
  contributions: string[];
20
19
  login: string;
20
+ name: string;
21
21
  profile: string;
22
22
  }[] | undefined;
23
23
  documentation?: string | undefined;
@@ -43,6 +43,7 @@ declare const blockPrettierPluginPackageJson: create.BlockWithoutAddons<{
43
43
  devDependencies?: Record<string, string> | undefined;
44
44
  scripts?: Record<string, string> | undefined;
45
45
  } | undefined;
46
+ rulesetId?: string | undefined;
46
47
  usage?: string | undefined;
47
48
  version?: string | undefined;
48
49
  }>;
@@ -1,8 +1,8 @@
1
- import * as create from 'create';
1
+ import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockPrettierPluginSh: create.BlockWithoutAddons<{
4
- description: string;
3
+ declare const blockPrettierPluginSh: bingo_stratum.BlockWithoutAddons<{
5
4
  access: "public" | "restricted";
5
+ description: string;
6
6
  directory: string;
7
7
  email: {
8
8
  github: string;
@@ -14,10 +14,10 @@ declare const blockPrettierPluginSh: create.BlockWithoutAddons<{
14
14
  author?: string | undefined;
15
15
  bin?: string | undefined;
16
16
  contributors?: {
17
- name: string;
18
17
  avatar_url: string;
19
18
  contributions: string[];
20
19
  login: string;
20
+ name: string;
21
21
  profile: string;
22
22
  }[] | undefined;
23
23
  documentation?: string | undefined;
@@ -43,6 +43,7 @@ declare const blockPrettierPluginSh: create.BlockWithoutAddons<{
43
43
  devDependencies?: Record<string, string> | undefined;
44
44
  scripts?: Record<string, string> | undefined;
45
45
  } | undefined;
46
+ rulesetId?: string | undefined;
46
47
  usage?: string | undefined;
47
48
  version?: string | undefined;
48
49
  }>;
@@ -1,12 +1,12 @@
1
- import * as create from 'create';
1
+ import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockREADME: create.BlockWithAddons<{
3
+ declare const blockREADME: bingo_stratum.BlockWithAddons<{
4
4
  badges: string[];
5
5
  notices: string[];
6
6
  sections: string[];
7
7
  }, {
8
- description: string;
9
8
  access: "public" | "restricted";
9
+ description: string;
10
10
  directory: string;
11
11
  email: {
12
12
  github: string;
@@ -18,10 +18,10 @@ declare const blockREADME: create.BlockWithAddons<{
18
18
  author?: string | undefined;
19
19
  bin?: string | undefined;
20
20
  contributors?: {
21
- name: string;
22
21
  avatar_url: string;
23
22
  contributions: string[];
24
23
  login: string;
24
+ name: string;
25
25
  profile: string;
26
26
  }[] | undefined;
27
27
  documentation?: string | undefined;
@@ -47,6 +47,7 @@ declare const blockREADME: create.BlockWithAddons<{
47
47
  devDependencies?: Record<string, string> | undefined;
48
48
  scripts?: Record<string, string> | undefined;
49
49
  } | undefined;
50
+ rulesetId?: string | undefined;
50
51
  usage?: string | undefined;
51
52
  version?: string | undefined;
52
53
  }>;
@@ -1,8 +1,8 @@
1
- import * as create from 'create';
1
+ import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockReleaseIt: create.BlockWithoutAddons<{
4
- description: string;
3
+ declare const blockReleaseIt: bingo_stratum.BlockWithoutAddons<{
5
4
  access: "public" | "restricted";
5
+ description: string;
6
6
  directory: string;
7
7
  email: {
8
8
  github: string;
@@ -14,10 +14,10 @@ declare const blockReleaseIt: create.BlockWithoutAddons<{
14
14
  author?: string | undefined;
15
15
  bin?: string | undefined;
16
16
  contributors?: {
17
- name: string;
18
17
  avatar_url: string;
19
18
  contributions: string[];
20
19
  login: string;
20
+ name: string;
21
21
  profile: string;
22
22
  }[] | undefined;
23
23
  documentation?: string | undefined;
@@ -43,6 +43,7 @@ declare const blockReleaseIt: create.BlockWithoutAddons<{
43
43
  devDependencies?: Record<string, string> | undefined;
44
44
  scripts?: Record<string, string> | undefined;
45
45
  } | undefined;
46
+ rulesetId?: string | undefined;
46
47
  usage?: string | undefined;
47
48
  version?: string | undefined;
48
49
  }>;
@@ -121,7 +121,6 @@ const blockReleaseIt = base.createBlock({
121
121
  requireCommits: true
122
122
  },
123
123
  github: {
124
- autoGenerate: true,
125
124
  release: true,
126
125
  releaseName: "v${version}"
127
126
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/blocks/blockReleaseIt.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRepositorySecrets } from \"./blockRepositorySecrets.js\";\nimport { createSoloWorkflowFile } from \"./files/createSoloWorkflowFile.js\";\n\nexport const blockReleaseIt = base.createBlock({\n\tabout: {\n\t\tname: \"release-it\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\twords: [\"apexskier\"],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\n\t\t\t\t\t\t\t\"@release-it/conventional-changelog\",\n\t\t\t\t\t\t\t\"release-it\",\n\t\t\t\t\t\t),\n\t\t\t\t\t\tpublishConfig: {\n\t\t\t\t\t\t\tprovenance: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockRepositorySecrets({\n\t\t\t\t\tsecrets: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdescription: \"a GitHub PAT with repo and workflow permissions\",\n\t\t\t\t\t\t\tname: \"ACCESS_TOKEN\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdescription: \"an npm access token with automation permissions\",\n\t\t\t\t\t\t\tname: \"NPM_TOKEN\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"post-release.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tname: \"Post Release\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\trelease: {\n\t\t\t\t\t\t\t\t\ttypes: [\"published\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tpermissions: {\n\t\t\t\t\t\t\t\tissues: \"write\",\n\t\t\t\t\t\t\t\t\"pull-requests\": \"write\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{ uses: \"actions/checkout@v4\", with: { \"fetch-depth\": 0 } },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trun: `echo \"npm_version=$(npm pkg get version | tr -d '\"')\" >> \"$GITHUB_ENV\"`,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tuses: \"apexskier/github-release-commenter@v1\",\n\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\t\"comment-template\": `\n\t\t\t\t\t\t\t:tada: This is included in version {release_link} :tada:\n\n\t\t\t\t\t\t\tThe release is available on:\n\n\t\t\t\t\t\t\t* [GitHub releases](https://github.com/${options.owner}/${options.repository}/releases/tag/{release_tag})\n\t\t\t\t\t\t\t* [npm package (@latest dist-tag)](https://www.npmjs.com/package/${options.repository}/v/\\${{ env.npm_version }})\n\n\t\t\t\t\t\t\tCheers! 📦🚀\n\t\t\t\t\t\t`,\n\t\t\t\t\t\t\t\t\t\tGITHUB_TOKEN: \"${{ secrets.GITHUB_TOKEN }}\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t\"release.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tconcurrency: {\n\t\t\t\t\t\t\t\tgroup: \"${{ github.workflow }}\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tname: \"Release\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tpush: {\n\t\t\t\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tpermissions: {\n\t\t\t\t\t\t\t\tcontents: \"write\",\n\t\t\t\t\t\t\t\t\"id-token\": \"write\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tuses: \"actions/checkout@v4\",\n\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\t\"fetch-depth\": 0,\n\t\t\t\t\t\t\t\t\t\tref: \"main\",\n\t\t\t\t\t\t\t\t\t\ttoken: \"${{ secrets.ACCESS_TOKEN }}\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tuses: \"./.github/actions/prepare\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trun: \"pnpm build\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tenv: {\n\t\t\t\t\t\t\t\t\t\tGITHUB_TOKEN: \"${{ secrets.ACCESS_TOKEN }}\",\n\t\t\t\t\t\t\t\t\t\tNPM_TOKEN: \"${{ secrets.NPM_TOKEN }}\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tuses: \"JoshuaKGoldberg/release-it-action@v0.2.2\",\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\t\".release-it.json\": JSON.stringify({\n\t\t\t\t\tgit: {\n\t\t\t\t\t\tcommitMessage: \"chore: release v${version}\",\n\t\t\t\t\t\trequireCommits: true,\n\t\t\t\t\t},\n\t\t\t\t\tgithub: {\n\t\t\t\t\t\tautoGenerate: true,\n\t\t\t\t\t\trelease: true,\n\t\t\t\t\t\treleaseName: \"v${version}\",\n\t\t\t\t\t},\n\t\t\t\t\tnpm: {\n\t\t\t\t\t\tpublishArgs: [`--access ${options.access}`, \"--provenance\"],\n\t\t\t\t\t},\n\t\t\t\t\tplugins: {\n\t\t\t\t\t\t\"@release-it/conventional-changelog\": {\n\t\t\t\t\t\t\tinfile: \"CHANGELOG.md\",\n\t\t\t\t\t\t\tpreset: \"angular\",\n\t\t\t\t\t\t\ttypes: [\n\t\t\t\t\t\t\t\t{ section: \"Features\", type: \"feat\" },\n\t\t\t\t\t\t\t\t{ section: \"Bug Fixes\", type: \"fix\" },\n\t\t\t\t\t\t\t\t{ section: \"Performance Improvements\", type: \"perf\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"build\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"chore\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"ci\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"docs\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"refactor\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"style\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"test\" },\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,8BAA8B;AACvC,SAAS,mBAAmB;AAC5B,SAAS,wBAAwB;AACj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AAQ,MAAM,MAAM,KAAK;AAAA,gBAC3B,EAAE,QAAQ,MAAM,MAAM,OAAO;AAAA,gBAC7B,EAAE,QAAQ,MAAM,MAAM,WAAW;AAAA,gBACjC,EAAE,QAAQ,MAAM,MAAM,QAAQ;AAAA,gBAC9B,EAAE,QAAQ,MAAM,MAAM,OAAO;AAAA,cAC9B;AAAA,YACD;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/blocks/blockReleaseIt.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRepositorySecrets } from \"./blockRepositorySecrets.js\";\nimport { createSoloWorkflowFile } from \"./files/createSoloWorkflowFile.js\";\n\nexport const blockReleaseIt = base.createBlock({\n\tabout: {\n\t\tname: \"release-it\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\twords: [\"apexskier\"],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\n\t\t\t\t\t\t\t\"@release-it/conventional-changelog\",\n\t\t\t\t\t\t\t\"release-it\",\n\t\t\t\t\t\t),\n\t\t\t\t\t\tpublishConfig: {\n\t\t\t\t\t\t\tprovenance: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockRepositorySecrets({\n\t\t\t\t\tsecrets: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdescription: \"a GitHub PAT with repo and workflow permissions\",\n\t\t\t\t\t\t\tname: \"ACCESS_TOKEN\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdescription: \"an npm access token with automation permissions\",\n\t\t\t\t\t\t\tname: \"NPM_TOKEN\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"post-release.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tname: \"Post Release\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\trelease: {\n\t\t\t\t\t\t\t\t\ttypes: [\"published\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tpermissions: {\n\t\t\t\t\t\t\t\tissues: \"write\",\n\t\t\t\t\t\t\t\t\"pull-requests\": \"write\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{ uses: \"actions/checkout@v4\", with: { \"fetch-depth\": 0 } },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trun: `echo \"npm_version=$(npm pkg get version | tr -d '\"')\" >> \"$GITHUB_ENV\"`,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tuses: \"apexskier/github-release-commenter@v1\",\n\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\t\"comment-template\": `\n\t\t\t\t\t\t\t:tada: This is included in version {release_link} :tada:\n\n\t\t\t\t\t\t\tThe release is available on:\n\n\t\t\t\t\t\t\t* [GitHub releases](https://github.com/${options.owner}/${options.repository}/releases/tag/{release_tag})\n\t\t\t\t\t\t\t* [npm package (@latest dist-tag)](https://www.npmjs.com/package/${options.repository}/v/\\${{ env.npm_version }})\n\n\t\t\t\t\t\t\tCheers! 📦🚀\n\t\t\t\t\t\t`,\n\t\t\t\t\t\t\t\t\t\tGITHUB_TOKEN: \"${{ secrets.GITHUB_TOKEN }}\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t\"release.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tconcurrency: {\n\t\t\t\t\t\t\t\tgroup: \"${{ github.workflow }}\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tname: \"Release\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tpush: {\n\t\t\t\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tpermissions: {\n\t\t\t\t\t\t\t\tcontents: \"write\",\n\t\t\t\t\t\t\t\t\"id-token\": \"write\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tuses: \"actions/checkout@v4\",\n\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\t\"fetch-depth\": 0,\n\t\t\t\t\t\t\t\t\t\tref: \"main\",\n\t\t\t\t\t\t\t\t\t\ttoken: \"${{ secrets.ACCESS_TOKEN }}\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tuses: \"./.github/actions/prepare\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trun: \"pnpm build\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tenv: {\n\t\t\t\t\t\t\t\t\t\tGITHUB_TOKEN: \"${{ secrets.ACCESS_TOKEN }}\",\n\t\t\t\t\t\t\t\t\t\tNPM_TOKEN: \"${{ secrets.NPM_TOKEN }}\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tuses: \"JoshuaKGoldberg/release-it-action@v0.2.2\",\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\t\".release-it.json\": JSON.stringify({\n\t\t\t\t\tgit: {\n\t\t\t\t\t\tcommitMessage: \"chore: release v${version}\",\n\t\t\t\t\t\trequireCommits: true,\n\t\t\t\t\t},\n\t\t\t\t\tgithub: {\n\t\t\t\t\t\trelease: true,\n\t\t\t\t\t\treleaseName: \"v${version}\",\n\t\t\t\t\t},\n\t\t\t\t\tnpm: {\n\t\t\t\t\t\tpublishArgs: [`--access ${options.access}`, \"--provenance\"],\n\t\t\t\t\t},\n\t\t\t\t\tplugins: {\n\t\t\t\t\t\t\"@release-it/conventional-changelog\": {\n\t\t\t\t\t\t\tinfile: \"CHANGELOG.md\",\n\t\t\t\t\t\t\tpreset: \"angular\",\n\t\t\t\t\t\t\ttypes: [\n\t\t\t\t\t\t\t\t{ section: \"Features\", type: \"feat\" },\n\t\t\t\t\t\t\t\t{ section: \"Bug Fixes\", type: \"fix\" },\n\t\t\t\t\t\t\t\t{ section: \"Performance Improvements\", type: \"perf\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"build\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"chore\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"ci\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"docs\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"refactor\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"style\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"test\" },\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,8BAA8B;AACvC,SAAS,mBAAmB;AAC5B,SAAS,wBAAwB;AACjC,SAAS,8BAA8B;AACvC,SAAS,8BAA8B;AAEhC,MAAM,iBAAiB,KAAK,YAAY;AAAA,EAC9C,OAA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AAM,WAAW;AAAA,gBACjC,EAAE,QAAQ,MAAM,MAAM,QAAQ;AAAA,gBAC9B,EAAE,QAAQ,MAAM,MAAM,OAAO;AAAA,cAC9B;AAAA,YACD;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
@@ -1,8 +1,8 @@
1
- import * as create from 'create';
1
+ import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockRenovate: create.BlockWithoutAddons<{
4
- description: string;
3
+ declare const blockRenovate: bingo_stratum.BlockWithoutAddons<{
5
4
  access: "public" | "restricted";
5
+ description: string;
6
6
  directory: string;
7
7
  email: {
8
8
  github: string;
@@ -14,10 +14,10 @@ declare const blockRenovate: create.BlockWithoutAddons<{
14
14
  author?: string | undefined;
15
15
  bin?: string | undefined;
16
16
  contributors?: {
17
- name: string;
18
17
  avatar_url: string;
19
18
  contributions: string[];
20
19
  login: string;
20
+ name: string;
21
21
  profile: string;
22
22
  }[] | undefined;
23
23
  documentation?: string | undefined;
@@ -43,6 +43,7 @@ declare const blockRenovate: create.BlockWithoutAddons<{
43
43
  devDependencies?: Record<string, string> | undefined;
44
44
  scripts?: Record<string, string> | undefined;
45
45
  } | undefined;
46
+ rulesetId?: string | undefined;
46
47
  usage?: string | undefined;
47
48
  version?: string | undefined;
48
49
  }>;