create-typescript-app 2.29.2 → 2.30.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.
@@ -1,6 +1,8 @@
1
1
  import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockNcc: bingo_stratum.BlockWithoutAddons<{
3
+ declare const blockNcc: bingo_stratum.BlockWithAddons<{
4
+ entry?: string | undefined;
5
+ }, {
4
6
  access: "public" | "restricted";
5
7
  description: string;
6
8
  directory: string;
@@ -1,3 +1,4 @@
1
+ import { z } from "zod";
1
2
  import { base } from "../base.js";
2
3
  import { blockCSpell } from "./blockCSpell.js";
3
4
  import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
@@ -9,7 +10,18 @@ const blockNcc = base.createBlock({
9
10
  about: {
10
11
  name: "ncc"
11
12
  },
12
- produce() {
13
+ addons: {
14
+ entry: z.string().optional()
15
+ },
16
+ intake({ options }) {
17
+ return {
18
+ entry: options.packageData?.scripts?.["build:release"]?.match(
19
+ /ncc build (.+) -o dist/
20
+ )?.[1]
21
+ };
22
+ },
23
+ produce({ addons }) {
24
+ const { entry = "src/index.ts" } = addons;
13
25
  return {
14
26
  addons: [
15
27
  blockCSpell({
@@ -68,12 +80,12 @@ pnpm build:release
68
80
  },
69
81
  scripts: {
70
82
  build: "tsc",
71
- "build:release": "ncc build src/index.ts -o dist"
83
+ "build:release": `ncc build ${entry} -o dist`
72
84
  }
73
85
  }
74
86
  }),
75
87
  blockPrettier({
76
- ignores: ["dist"]
88
+ ignores: ["/dist"]
77
89
  })
78
90
  ]
79
91
  };
@@ -4,7 +4,6 @@ import { getPackageDependencies } from "../data/packageData.js";
4
4
  import { resolveUses } from "./actions/resolveUses.js";
5
5
  import { blockPackageJson } from "./blockPackageJson.js";
6
6
  import { blockREADME } from "./blockREADME.js";
7
- import { blockRemoveDependencies } from "./blockRemoveDependencies.js";
8
7
  import { blockRepositorySecrets } from "./blockRepositorySecrets.js";
9
8
  import { createSoloWorkflowFile } from "./files/createSoloWorkflowFile.js";
10
9
  const blockReleaseIt = base.createBlock({
@@ -46,9 +45,6 @@ const blockReleaseIt = base.createBlock({
46
45
  }
47
46
  ]
48
47
  }),
49
- blockRemoveDependencies({
50
- dependencies: ["should-semantic-release"]
51
- }),
52
48
  blockRepositorySecrets({
53
49
  secrets: [
54
50
  {
@@ -2028,7 +2028,9 @@ declare const blocks: {
2028
2028
  hash?: string | undefined;
2029
2029
  }>> | undefined;
2030
2030
  }>;
2031
- blockNcc: bingo_stratum.BlockWithoutAddons<{
2031
+ blockNcc: bingo_stratum.BlockWithAddons<{
2032
+ entry?: string | undefined;
2033
+ }, {
2032
2034
  access: "public" | "restricted";
2033
2035
  description: string;
2034
2036
  directory: string;
@@ -1,5 +1,5 @@
1
1
  var name = "create-typescript-app";
2
- var version = "2.29.1";
2
+ var version = "2.29.3";
3
3
  var description = "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁";
4
4
  var repository = {
5
5
  type: "git",
@@ -35,7 +35,7 @@ var scripts = {
35
35
  var dependencies = {
36
36
  bingo: "^0.5.14",
37
37
  "bingo-fs": "^0.5.5",
38
- "bingo-stratum": "^0.5.10",
38
+ "bingo-stratum": "^0.5.11",
39
39
  "cached-factory": "^0.1.0",
40
40
  "cspell-populate-words": "^0.3.0",
41
41
  execa: "^9.5.2",
@@ -84,7 +84,7 @@ var devDependencies = {
84
84
  "@vitest/eslint-plugin": "1.1.38",
85
85
  "all-contributors-cli": "6.26.1",
86
86
  "bingo-requests": "0.5.5",
87
- "bingo-stratum-testers": "0.5.8",
87
+ "bingo-stratum-testers": "0.5.9",
88
88
  "bingo-testers": "0.5.7",
89
89
  "console-fail-test": "0.5.0",
90
90
  cspell: "8.17.5",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-typescript-app",
3
- "version": "2.29.2",
3
+ "version": "2.30.0",
4
4
  "description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,7 +39,7 @@
39
39
  "dependencies": {
40
40
  "bingo": "^0.5.14",
41
41
  "bingo-fs": "^0.5.5",
42
- "bingo-stratum": "^0.5.10",
42
+ "bingo-stratum": "^0.5.11",
43
43
  "cached-factory": "^0.1.0",
44
44
  "cspell-populate-words": "^0.3.0",
45
45
  "execa": "^9.5.2",
@@ -88,7 +88,7 @@
88
88
  "@vitest/eslint-plugin": "1.1.38",
89
89
  "all-contributors-cli": "6.26.1",
90
90
  "bingo-requests": "0.5.5",
91
- "bingo-stratum-testers": "0.5.8",
91
+ "bingo-stratum-testers": "0.5.9",
92
92
  "bingo-testers": "0.5.7",
93
93
  "console-fail-test": "0.5.0",
94
94
  "cspell": "8.17.5",