create-typescript-app 2.35.2 → 2.35.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/blocks/blockCSpell.d.ts +1 -1
- package/lib/blocks/blockCSpell.js +12 -10
- package/lib/blocks/blockESLint.d.ts +1 -1
- package/lib/blocks/blockNcc.js +1 -1
- package/lib/blocks/blockPrettier.d.ts +1 -1
- package/lib/blocks/blockPrettier.js +1 -1
- package/lib/blocks/blockVitest.js +1 -1
- package/lib/blocks/blockWebExt.js +1 -1
- package/lib/blocks/index.d.ts +3 -3
- package/lib/data/packageData.d.ts +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ import { intakeFile } from "./intake/intakeFile.js";
|
|
|
13
13
|
import { CommandPhase } from "./phases.js";
|
|
14
14
|
const filesGlob = `"**" ".github/**/*"`;
|
|
15
15
|
const addons = {
|
|
16
|
-
|
|
16
|
+
ignorePaths: z.array(z.string()).default([]),
|
|
17
17
|
words: z.array(z.string()).default([])
|
|
18
18
|
};
|
|
19
19
|
const zAddons = z.object(addons);
|
|
@@ -34,7 +34,7 @@ const blockCSpell = base.createBlock({
|
|
|
34
34
|
return data;
|
|
35
35
|
},
|
|
36
36
|
produce({ addons: addons2, options }) {
|
|
37
|
-
const {
|
|
37
|
+
const { ignorePaths, words } = addons2;
|
|
38
38
|
const allWords = Array.from(
|
|
39
39
|
/* @__PURE__ */ new Set([...options.words ?? [], ...words])
|
|
40
40
|
).sort();
|
|
@@ -74,14 +74,16 @@ const blockCSpell = base.createBlock({
|
|
|
74
74
|
files: {
|
|
75
75
|
"cspell.json": JSON.stringify({
|
|
76
76
|
dictionaries: ["npm", "node", "typescript"],
|
|
77
|
-
ignorePaths:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
ignorePaths: Array.from(
|
|
78
|
+
/* @__PURE__ */ new Set([
|
|
79
|
+
".github",
|
|
80
|
+
"CHANGELOG.md",
|
|
81
|
+
"lib",
|
|
82
|
+
"node_modules",
|
|
83
|
+
"pnpm-lock.yaml",
|
|
84
|
+
...ignorePaths
|
|
85
|
+
])
|
|
86
|
+
).sort(),
|
|
85
87
|
...allWords.length && { words: allWords }
|
|
86
88
|
})
|
|
87
89
|
}
|
|
@@ -21,8 +21,8 @@ declare const blockESLint: bingo_stratum.BlockWithAddons<{
|
|
|
21
21
|
linterOptions?: unknown;
|
|
22
22
|
plugins?: Record<string, string> | undefined;
|
|
23
23
|
})[];
|
|
24
|
-
ignores: string[];
|
|
25
24
|
explanations: string[];
|
|
25
|
+
ignores: string[];
|
|
26
26
|
rules?: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
|
|
27
27
|
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
28
28
|
comment?: string | undefined;
|
package/lib/blocks/blockNcc.js
CHANGED
package/lib/blocks/index.d.ts
CHANGED
|
@@ -394,7 +394,7 @@ declare const blocks: {
|
|
|
394
394
|
}>;
|
|
395
395
|
blockCSpell: bingo_stratum.BlockWithAddons<{
|
|
396
396
|
words: string[];
|
|
397
|
-
|
|
397
|
+
ignorePaths: string[];
|
|
398
398
|
}, {
|
|
399
399
|
access: "public" | "restricted";
|
|
400
400
|
description: string;
|
|
@@ -566,8 +566,8 @@ declare const blocks: {
|
|
|
566
566
|
linterOptions?: unknown;
|
|
567
567
|
plugins?: Record<string, string> | undefined;
|
|
568
568
|
})[];
|
|
569
|
-
ignores: string[];
|
|
570
569
|
explanations: string[];
|
|
570
|
+
ignores: string[];
|
|
571
571
|
rules?: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
|
|
572
572
|
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
573
573
|
comment?: string | undefined;
|
|
@@ -2454,8 +2454,8 @@ declare const blocks: {
|
|
|
2454
2454
|
};
|
|
2455
2455
|
files: string;
|
|
2456
2456
|
}[];
|
|
2457
|
-
ignores: string[];
|
|
2458
2457
|
plugins: string[];
|
|
2458
|
+
ignores: string[];
|
|
2459
2459
|
runBefore: string[];
|
|
2460
2460
|
}, {
|
|
2461
2461
|
access: "public" | "restricted";
|