create-typescript-app 2.0.0-beta.21 → 2.0.0-beta.23

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.
@@ -9,7 +9,7 @@ import { blockPackageJson } from "./blockPackageJson.js";
9
9
  import { CommandPhase } from "./phases.js";
10
10
  const blockTSup = base.createBlock({
11
11
  about: {
12
- name: "tsup"
12
+ name: "TSup"
13
13
  },
14
14
  addons: {
15
15
  entry: z.array(z.string()).default([]),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/blocks/blockTSup.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { resolveBin } from \"../utils/resolveBin.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockESLint } from \"./blockESLint.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockTSup = base.createBlock({\n\tabout: {\n\t\tname: \"tsup\",\n\t},\n\taddons: {\n\t\tentry: z.array(z.string()).default([]),\n\t\trunArgs: z.array(z.string()).default([]),\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { entry } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tBuilding: {\n\t\t\t\t\t\t\tcontents: `\nRun [**tsup**](https://tsup.egoist.dev) locally to build source files from \\`src/\\` into output files in \\`lib/\\`:\n\n\\`\\`\\`shell\npnpm build\n\\`\\`\\`\n\nAdd \\`--watch\\` to run the builder in a watch mode that continuously cleans and recreates \\`lib/\\` as you save files:\n\n\\`\\`\\`shell\npnpm build --watch\n\\`\\`\\`\n`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockESLint({\n\t\t\t\t\tbeforeLint: `Note that you'll need to run \\`pnpm build\\` before \\`pnpm lint\\` so that lint rules which check the file system can pick up on any built files.`,\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Build\",\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{ run: \"pnpm build\" },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trun: `node lib/index.js${addons.runArgs.map((arg) => ` ${arg}`).join(\"\")}`,\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\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"tsup\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\tbuild: \"tsup\",\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\"tsup.config.ts\": `import { defineConfig } from \"tsup\";\n\nexport default defineConfig({\n\tbundle: false,\n\tclean: true,\n\tdts: true,\n\tentry: ${JSON.stringify([\"src/**/*.ts\", ...entry])},\n\tformat: \"esm\",\n\toutDir: \"lib\",\n\tsourcemap: true,\n});\n`,\n\t\t\t},\n\t\t\tscripts: options.bin\n\t\t\t\t? [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcommands: [\"pnpm build\"],\n\t\t\t\t\t\t\tphase: CommandPhase.Build,\n\t\t\t\t\t\t},\n\t\t\t\t\t]\n\t\t\t\t: undefined,\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\n\t\t\t\t\t\t`node ${resolveBin(\"remove-dependencies/bin/index.js\")} @babel/core babel`,\n\t\t\t\t\t],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t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,QACD,CAAC;AAAA,QACD,iBAAiB;AAAA,UAChB,YAAY;AAAA,YACX,iBAAiB,uBAAuB,MAAM;AAAA,YAC9C,SAAS;AAAA,cACR,OAAO;AAAA,YACR;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACN,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UAMZ,KAAK,UAAU,CAAC,eAAe,GAAG,KAAK,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAMhD;AAAA,MACA,SAAS,QAAQ,MACd;AAAA,QACA;AAAA,UACC,UAAU,CAAC,YAAY;AAAA,UACvB,OAAO,aAAa;AAAA,QACrB;AAAA,MACD,IACC;AAAA,IACJ;AAAA,EACD;AAAA,EACA,aAAa;AACZ,WAAO;AAAA,MACN,SAAS;AAAA,QACR;AAAA,UACC,UAAU;AAAA,YACT,QAAQ,WAAW,kCAAkC,CAAC;AAAA,UACvD;AAAA,UACA,OAAO,aAAa;AAAA,QACrB;AAAA,QACA;AAAA,UACC,UAAU,CAAC,0CAA0C;AAAA,UACrD,OAAO,aAAa;AAAA,UACpB,QAAQ;AAAA,QACT;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/blocks/blockTSup.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { resolveBin } from \"../utils/resolveBin.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockESLint } from \"./blockESLint.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockTSup = base.createBlock({\n\tabout: {\n\t\tname: \"TSup\",\n\t},\n\taddons: {\n\t\tentry: z.array(z.string()).default([]),\n\t\trunArgs: z.array(z.string()).default([]),\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { entry } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tBuilding: {\n\t\t\t\t\t\t\tcontents: `\nRun [**tsup**](https://tsup.egoist.dev) locally to build source files from \\`src/\\` into output files in \\`lib/\\`:\n\n\\`\\`\\`shell\npnpm build\n\\`\\`\\`\n\nAdd \\`--watch\\` to run the builder in a watch mode that continuously cleans and recreates \\`lib/\\` as you save files:\n\n\\`\\`\\`shell\npnpm build --watch\n\\`\\`\\`\n`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockESLint({\n\t\t\t\t\tbeforeLint: `Note that you'll need to run \\`pnpm build\\` before \\`pnpm lint\\` so that lint rules which check the file system can pick up on any built files.`,\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Build\",\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{ run: \"pnpm build\" },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trun: `node lib/index.js${addons.runArgs.map((arg) => ` ${arg}`).join(\"\")}`,\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\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"tsup\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\tbuild: \"tsup\",\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\"tsup.config.ts\": `import { defineConfig } from \"tsup\";\n\nexport default defineConfig({\n\tbundle: false,\n\tclean: true,\n\tdts: true,\n\tentry: ${JSON.stringify([\"src/**/*.ts\", ...entry])},\n\tformat: \"esm\",\n\toutDir: \"lib\",\n\tsourcemap: true,\n});\n`,\n\t\t\t},\n\t\t\tscripts: options.bin\n\t\t\t\t? [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcommands: [\"pnpm build\"],\n\t\t\t\t\t\t\tphase: CommandPhase.Build,\n\t\t\t\t\t\t},\n\t\t\t\t\t]\n\t\t\t\t: undefined,\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\n\t\t\t\t\t\t`node ${resolveBin(\"remove-dependencies/bin/index.js\")} @babel/core babel`,\n\t\t\t\t\t],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"rm -rf .babelrc* babel.config.* dist lib\"],\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,kBAAkB;AAC3B,SAAS,4BAA4B;AACrC,SAAS,mBAAmB;AAC5B,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,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,IACrC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,EACxC;AAAA,EACA,QAAQ,EAAE,QAAQ,QAAQ,GAAG;AAC5B,UAAM,EAAE,MAAM,IAAI;AAElB,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,qBAAqB;AAAA,UACpB,UAAU;AAA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A,EACD;AACD,CAAC;","names":[]}
@@ -3,7 +3,7 @@ import { blockCSpell } from "./blockCSpell.js";
3
3
  import { blockREADME } from "./blockREADME.js";
4
4
  const blockTemplatedWith = base.createBlock({
5
5
  about: {
6
- name: "Templated By Notice"
6
+ name: "Templated With"
7
7
  },
8
8
  produce() {
9
9
  return {
@@ -16,7 +16,7 @@ const blockTemplatedWith = base.createBlock({
16
16
  `
17
17
  <!-- You can remove this notice if you don't want it \u{1F642} no worries! -->
18
18
 
19
- > \u{1F49D} This package was templated with [\`create-typescript-app\`](https://github.com/JoshuaKGoldberg/create-typescript-app) using the [\`create\` engine](https://create.bingo).
19
+ > \u{1F49D} This package was templated with [\`create-typescript-app\`](https://github.com/JoshuaKGoldberg/create-typescript-app) using the [Bingo engine](https://create.bingo).
20
20
  `
21
21
  ]
22
22
  })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/blocks/blockTemplatedWith.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockREADME } from \"./blockREADME.js\";\n\nexport const blockTemplatedWith = base.createBlock({\n\tabout: {\n\t\tname: \"Templated By Notice\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\twords: [\"joshuakgoldberg\"],\n\t\t\t\t}),\n\t\t\t\tblockREADME({\n\t\t\t\t\tnotices: [\n\t\t\t\t\t\t`\n<!-- You can remove this notice if you don't want it 🙂 no worries! -->\n\n> 💝 This package was templated with [\\`create-typescript-app\\`](https://github.com/JoshuaKGoldberg/create-typescript-app) using the [\\`create\\` engine](https://create.bingo).\n`,\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,mBAAmB;AAC5B,SAAS,mBAAmB;AAErB,MAAM,qBAAqB,KAAK,YAAY;AAAA,EAClD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,OAAO,CAAC,iBAAiB;AAAA,QAC1B,CAAC;AAAA,QACD,YAAY;AAAA,UACX,SAAS;AAAA,YACR;AAAA;AAAA;AAAA;AAAA;AAAA,UAKD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/blocks/blockTemplatedWith.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockREADME } from \"./blockREADME.js\";\n\nexport const blockTemplatedWith = base.createBlock({\n\tabout: {\n\t\tname: \"Templated With\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\twords: [\"joshuakgoldberg\"],\n\t\t\t\t}),\n\t\t\t\tblockREADME({\n\t\t\t\t\tnotices: [\n\t\t\t\t\t\t`\n<!-- You can remove this notice if you don't want it 🙂 no worries! -->\n\n> 💝 This package was templated with [\\`create-typescript-app\\`](https://github.com/JoshuaKGoldberg/create-typescript-app) using the [Bingo engine](https://create.bingo).\n`,\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,mBAAmB;AAC5B,SAAS,mBAAmB;AAErB,MAAM,qBAAqB,KAAK,YAAY;AAAA,EAClD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,OAAO,CAAC,iBAAiB;AAAA,QAC1B,CAAC;AAAA,QACD,YAAY;AAAA,UACX,SAAS;AAAA,YACR;AAAA;AAAA;AAAA;AAAA;AAAA,UAKD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  var name = "create-typescript-app";
2
- var version = "2.0.0-beta.20";
2
+ var version = "2.0.0-beta.22";
3
3
  var description = "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁";
4
4
  var repository = {
5
5
  type: "git",
@@ -33,18 +33,18 @@ var scripts = {
33
33
  tsc: "tsc"
34
34
  };
35
35
  var dependencies = {
36
- bingo: "^0.5.2",
37
- "bingo-fs": "^0.5.2",
38
- "bingo-stratum": "^0.5.2",
36
+ bingo: "^0.5.3",
37
+ "bingo-fs": "^0.5.3",
38
+ "bingo-stratum": "^0.5.3",
39
39
  "cspell-populate-words": "^0.3.0",
40
40
  execa: "^9.5.2",
41
41
  "git-remote-origin-url": "^4.0.0",
42
42
  "git-url-parse": "^16.0.1",
43
43
  "html-to-text": "^9.0.5",
44
44
  "image-size": "^1.2.0",
45
- "input-from-file": "^0.5.2",
46
- "input-from-file-json": "^0.5.2",
47
- "input-from-script": "^0.5.2",
45
+ "input-from-file": "^0.5.3",
46
+ "input-from-file-json": "^0.5.3",
47
+ "input-from-script": "^0.5.3",
48
48
  "js-yaml": "^4.1.0",
49
49
  "lazy-value": "^3.0.0",
50
50
  lodash: "^4.17.21",
@@ -74,8 +74,8 @@ var devDependencies = {
74
74
  "@vitest/coverage-v8": "3.0.6",
75
75
  "@vitest/eslint-plugin": "1.1.31",
76
76
  "all-contributors-cli": "6.26.1",
77
- "bingo-stratum-testers": "0.5.2",
78
- "bingo-testers": "0.5.2",
77
+ "bingo-stratum-testers": "0.5.3",
78
+ "bingo-testers": "0.5.3",
79
79
  "console-fail-test": "0.5.0",
80
80
  cspell: "8.17.3",
81
81
  eslint: "9.20.1",
package/lib/index.d.ts CHANGED
@@ -1,4 +1,8 @@
1
- export { template as default, template } from './template.js';
1
+ import * as bingo from 'bingo';
2
+ import * as bingo_stratum from 'bingo-stratum';
3
+ import * as bingo_stratum_lib_types_templates_js from 'bingo-stratum/lib/types/templates.js';
4
+ import * as zod from 'zod';
5
+ export { template } from './template.js';
2
6
  export { BaseOptions, Contributor, base } from './base.js';
3
7
  export { blocks } from './blocks/index.js';
4
8
  export { presets } from './presets/index.js';
@@ -48,6 +52,153 @@ export { blockVSCode } from './blocks/blockVSCode.js';
48
52
  export { presetCommon } from './presets/common.js';
49
53
  export { presetEverything } from './presets/everything.js';
50
54
  export { presetMinimal } from './presets/minimal.js';
51
- import 'bingo-stratum/lib/types/templates.js';
52
- import 'zod';
53
- import 'bingo-stratum';
55
+
56
+ declare const createConfig: bingo.CreateTemplateConfig<{
57
+ access: zod.ZodUnion<[zod.ZodLiteral<"public">, zod.ZodLiteral<"restricted">]>;
58
+ author: zod.ZodOptional<zod.ZodString>;
59
+ bin: zod.ZodOptional<zod.ZodString>;
60
+ contributors: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
61
+ avatar_url: zod.ZodString;
62
+ contributions: zod.ZodArray<zod.ZodString, "many">;
63
+ login: zod.ZodString;
64
+ name: zod.ZodString;
65
+ profile: zod.ZodString;
66
+ }, "strip", zod.ZodTypeAny, {
67
+ avatar_url: string;
68
+ contributions: string[];
69
+ login: string;
70
+ name: string;
71
+ profile: string;
72
+ }, {
73
+ avatar_url: string;
74
+ contributions: string[];
75
+ login: string;
76
+ name: string;
77
+ profile: string;
78
+ }>, "many">>;
79
+ description: zod.ZodDefault<zod.ZodString>;
80
+ directory: zod.ZodString;
81
+ documentation: zod.ZodOptional<zod.ZodString>;
82
+ email: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodObject<{
83
+ github: zod.ZodString;
84
+ npm: zod.ZodString;
85
+ }, "strip", zod.ZodTypeAny, {
86
+ github: string;
87
+ npm: string;
88
+ }, {
89
+ github: string;
90
+ npm: string;
91
+ }>]>, {
92
+ github: string;
93
+ npm: string;
94
+ }, string | {
95
+ github: string;
96
+ npm: string;
97
+ }>;
98
+ explainer: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
99
+ funding: zod.ZodOptional<zod.ZodString>;
100
+ guide: zod.ZodOptional<zod.ZodObject<{
101
+ href: zod.ZodString;
102
+ title: zod.ZodString;
103
+ }, "strip", zod.ZodTypeAny, {
104
+ href: string;
105
+ title: string;
106
+ }, {
107
+ href: string;
108
+ title: string;
109
+ }>>;
110
+ keywords: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
111
+ logo: zod.ZodOptional<zod.ZodObject<{
112
+ alt: zod.ZodString;
113
+ height: zod.ZodOptional<zod.ZodNumber>;
114
+ src: zod.ZodString;
115
+ width: zod.ZodOptional<zod.ZodNumber>;
116
+ }, "strip", zod.ZodTypeAny, {
117
+ alt: string;
118
+ src: string;
119
+ height?: number | undefined;
120
+ width?: number | undefined;
121
+ }, {
122
+ alt: string;
123
+ src: string;
124
+ height?: number | undefined;
125
+ width?: number | undefined;
126
+ }>>;
127
+ node: zod.ZodOptional<zod.ZodObject<{
128
+ minimum: zod.ZodString;
129
+ pinned: zod.ZodOptional<zod.ZodString>;
130
+ }, "strip", zod.ZodTypeAny, {
131
+ minimum: string;
132
+ pinned?: string | undefined;
133
+ }, {
134
+ minimum: string;
135
+ pinned?: string | undefined;
136
+ }>>;
137
+ owner: zod.ZodString;
138
+ packageData: zod.ZodOptional<zod.ZodObject<{
139
+ dependencies: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
140
+ devDependencies: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
141
+ scripts: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
142
+ }, "strip", zod.ZodTypeAny, {
143
+ dependencies?: Record<string, string> | undefined;
144
+ devDependencies?: Record<string, string> | undefined;
145
+ scripts?: Record<string, string> | undefined;
146
+ }, {
147
+ dependencies?: Record<string, string> | undefined;
148
+ devDependencies?: Record<string, string> | undefined;
149
+ scripts?: Record<string, string> | undefined;
150
+ }>>;
151
+ repository: zod.ZodString;
152
+ rulesetId: zod.ZodOptional<zod.ZodString>;
153
+ title: zod.ZodString;
154
+ usage: zod.ZodOptional<zod.ZodString>;
155
+ version: zod.ZodOptional<zod.ZodString>;
156
+ } & bingo_stratum_lib_types_templates_js.StratumTemplateOptionsShape, bingo_stratum.StratumRefinements<{
157
+ access: "public" | "restricted";
158
+ description: string;
159
+ directory: string;
160
+ email: {
161
+ github: string;
162
+ npm: string;
163
+ };
164
+ title: string;
165
+ owner: string;
166
+ repository: string;
167
+ author?: string | undefined;
168
+ bin?: string | undefined;
169
+ contributors?: {
170
+ avatar_url: string;
171
+ contributions: string[];
172
+ login: string;
173
+ name: string;
174
+ profile: string;
175
+ }[] | undefined;
176
+ documentation?: string | undefined;
177
+ explainer?: string[] | undefined;
178
+ funding?: string | undefined;
179
+ guide?: {
180
+ href: string;
181
+ title: string;
182
+ } | undefined;
183
+ keywords?: string[] | undefined;
184
+ logo?: {
185
+ alt: string;
186
+ src: string;
187
+ height?: number | undefined;
188
+ width?: number | undefined;
189
+ } | undefined;
190
+ node?: {
191
+ minimum: string;
192
+ pinned?: string | undefined;
193
+ } | undefined;
194
+ packageData?: {
195
+ dependencies?: Record<string, string> | undefined;
196
+ devDependencies?: Record<string, string> | undefined;
197
+ scripts?: Record<string, string> | undefined;
198
+ } | undefined;
199
+ rulesetId?: string | undefined;
200
+ usage?: string | undefined;
201
+ version?: string | undefined;
202
+ }>>;
203
+
204
+ export { createConfig };
package/lib/index.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import { template } from "./template.js";
2
+ const { createConfig } = template;
2
3
  export * from "./base.js";
3
4
  export * from "./blocks/index.js";
4
5
  export * from "./presets/index.js";
5
6
  export {
6
- template as default,
7
+ createConfig,
7
8
  template
8
9
  };
9
10
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { template } from \"./template.js\";\n\nexport { template as default, template };\n\nexport * from \"./base.js\";\nexport * from \"./blocks/index.js\";\nexport * from \"./presets/index.js\";\n"],"mappings":"AAAA,SAAS,gBAAgB;AAIzB,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { template } from \"./template.js\";\n\nexport { template };\n\nexport const { createConfig } = template;\n\nexport * from \"./base.js\";\nexport * from \"./blocks/index.js\";\nexport * from \"./presets/index.js\";\n"],"mappings":"AAAA,SAAS,gBAAgB;AAIlB,MAAM,EAAE,aAAa,IAAI;AAEhC,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-typescript-app",
3
- "version": "2.0.0-beta.21",
3
+ "version": "2.0.0-beta.23",
4
4
  "description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,18 +37,18 @@
37
37
  "*": "prettier --ignore-unknown --write"
38
38
  },
39
39
  "dependencies": {
40
- "bingo": "^0.5.2",
41
- "bingo-fs": "^0.5.2",
42
- "bingo-stratum": "^0.5.2",
40
+ "bingo": "^0.5.3",
41
+ "bingo-fs": "^0.5.3",
42
+ "bingo-stratum": "^0.5.3",
43
43
  "cspell-populate-words": "^0.3.0",
44
44
  "execa": "^9.5.2",
45
45
  "git-remote-origin-url": "^4.0.0",
46
46
  "git-url-parse": "^16.0.1",
47
47
  "html-to-text": "^9.0.5",
48
48
  "image-size": "^1.2.0",
49
- "input-from-file": "^0.5.2",
50
- "input-from-file-json": "^0.5.2",
51
- "input-from-script": "^0.5.2",
49
+ "input-from-file": "^0.5.3",
50
+ "input-from-file-json": "^0.5.3",
51
+ "input-from-script": "^0.5.3",
52
52
  "js-yaml": "^4.1.0",
53
53
  "lazy-value": "^3.0.0",
54
54
  "lodash": "^4.17.21",
@@ -78,8 +78,8 @@
78
78
  "@vitest/coverage-v8": "3.0.6",
79
79
  "@vitest/eslint-plugin": "1.1.31",
80
80
  "all-contributors-cli": "6.26.1",
81
- "bingo-stratum-testers": "0.5.2",
82
- "bingo-testers": "0.5.2",
81
+ "bingo-stratum-testers": "0.5.3",
82
+ "bingo-testers": "0.5.3",
83
83
  "console-fail-test": "0.5.0",
84
84
  "cspell": "8.17.3",
85
85
  "eslint": "9.20.1",