create-typescript-app 1.52.6 → 1.52.7
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/README.md +2 -2
- package/lib/steps/writing/creation/createDotESLintignore.d.ts +7 -0
- package/lib/steps/writing/creation/createDotESLintignore.js +16 -0
- package/lib/steps/writing/creation/createDotESLintignore.js.map +1 -0
- package/lib/steps/writing/creation/createDotGitignore.d.ts +7 -0
- package/lib/steps/writing/creation/createDotGitignore.js +12 -0
- package/lib/steps/writing/creation/createDotGitignore.js.map +1 -0
- package/lib/steps/writing/creation/createTsupConfig.d.ts +7 -0
- package/lib/steps/writing/creation/createTsupConfig.js +19 -0
- package/lib/steps/writing/creation/createTsupConfig.js.map +1 -0
- package/lib/steps/writing/creation/rootFiles.js +6 -27
- package/lib/steps/writing/creation/rootFiles.js.map +1 -1
- package/lib/steps/writing/writeStructure.js +4 -1
- package/lib/steps/writing/writeStructure.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -86,7 +86,7 @@ Thanks! 💖
|
|
|
86
86
|
<td align="center" valign="top" width="14.28%"><a href="https://typescriptcourse.com/tutorials"><img src="https://avatars.githubusercontent.com/u/3806031?v=4?s=100" width="100px;" alt="Joe Previte"/><br /><sub><b>Joe Previte</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3Ajsjoeio" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=jsjoeio" title="Code">💻</a></td>
|
|
87
87
|
</tr>
|
|
88
88
|
<tr>
|
|
89
|
-
<td align="center" valign="top" width="14.28%"><a href="https://blog.johnnyreilly.com/"><img src="https://avatars.githubusercontent.com/u/1010525?v=4?s=100" width="100px;" alt="John Reilly"/><br /><sub><b>John Reilly</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=johnnyreilly" title="Code">💻</a> <a href="#ideas-johnnyreilly" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3Ajohnnyreilly" title="Bug reports">🐛</a></td>
|
|
89
|
+
<td align="center" valign="top" width="14.28%"><a href="https://blog.johnnyreilly.com/"><img src="https://avatars.githubusercontent.com/u/1010525?v=4?s=100" width="100px;" alt="John Reilly"/><br /><sub><b>John Reilly</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=johnnyreilly" title="Code">💻</a> <a href="#ideas-johnnyreilly" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3Ajohnnyreilly" title="Bug reports">🐛</a> <a href="#maintenance-johnnyreilly" title="Maintenance">🚧</a></td>
|
|
90
90
|
<td align="center" valign="top" width="14.28%"><a href="http://www.joshuakgoldberg.com"><img src="https://avatars.githubusercontent.com/u/3335181?v=4?s=100" width="100px;" alt="Josh Goldberg"/><br /><sub><b>Josh Goldberg</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3AJoshuaKGoldberg" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=JoshuaKGoldberg" title="Code">💻</a> <a href="#maintenance-JoshuaKGoldberg" title="Maintenance">🚧</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/pulls?q=is%3Apr+reviewed-by%3AJoshuaKGoldberg" title="Reviewed Pull Requests">👀</a> <a href="#tool-JoshuaKGoldberg" title="Tools">🔧</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=JoshuaKGoldberg" title="Documentation">📖</a> <a href="#infra-JoshuaKGoldberg" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=JoshuaKGoldberg" title="Tests">⚠️</a></td>
|
|
91
91
|
<td align="center" valign="top" width="14.28%"><a href="https://twitter.com/Jolg42"><img src="https://avatars.githubusercontent.com/u/1328733?v=4?s=100" width="100px;" alt="Joël Galeran"/><br /><sub><b>Joël Galeran</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=jolg42" title="Code">💻</a></td>
|
|
92
92
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jaas666"><img src="https://avatars.githubusercontent.com/u/30204147?v=4?s=100" width="100px;" alt="Juan A."/><br /><sub><b>Juan A.</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=jaas666" title="Code">💻</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=jaas666" title="Documentation">📖</a></td>
|
|
@@ -95,7 +95,7 @@ Thanks! 💖
|
|
|
95
95
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Aslemammad"><img src="https://avatars.githubusercontent.com/u/37929992?v=4?s=100" width="100px;" alt="Mohammad Bagher Abiyat"/><br /><sub><b>Mohammad Bagher Abiyat</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=aslemammad" title="Code">💻</a></td>
|
|
96
96
|
</tr>
|
|
97
97
|
<tr>
|
|
98
|
-
<td align="center" valign="top" width="14.28%"><a href="https://navinmoorthy.me/"><img src="https://avatars.githubusercontent.com/u/39694575?v=4?s=100" width="100px;" alt="Navin Moorthy"/><br /><sub><b>Navin Moorthy</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3Anavin-moorthy" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=navin-moorthy" title="Code">💻</a></td>
|
|
98
|
+
<td align="center" valign="top" width="14.28%"><a href="https://navinmoorthy.me/"><img src="https://avatars.githubusercontent.com/u/39694575?v=4?s=100" width="100px;" alt="Navin Moorthy"/><br /><sub><b>Navin Moorthy</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3Anavin-moorthy" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=navin-moorthy" title="Code">💻</a> <a href="#ideas-navin-moorthy" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
99
99
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/NazCodeland"><img src="https://avatars.githubusercontent.com/u/113494366?v=4?s=100" width="100px;" alt="NazCodeland"/><br /><sub><b>NazCodeland</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=NazCodeland" title="Code">💻</a></td>
|
|
100
100
|
<td align="center" valign="top" width="14.28%"><a href="https://orta.io"><img src="https://avatars.githubusercontent.com/u/49038?v=4?s=100" width="100px;" alt="Orta Therox"/><br /><sub><b>Orta Therox</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=orta" title="Code">💻</a></td>
|
|
101
101
|
<td align="center" valign="top" width="14.28%"><a href="https://paulisaweso.me/"><img src="https://avatars.githubusercontent.com/u/6335792?v=4?s=100" width="100px;" alt="Paul Esch-Laurent"/><br /><sub><b>Paul Esch-Laurent</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=Pinjasaur" title="Code">💻</a></td>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { formatIgnoreFile } from "./formatters/formatIgnoreFile.js";
|
|
2
|
+
function createDotESLintignore(options) {
|
|
3
|
+
return formatIgnoreFile(
|
|
4
|
+
[
|
|
5
|
+
"!.*",
|
|
6
|
+
...options.excludeTests ? [] : ["coverage"],
|
|
7
|
+
"lib",
|
|
8
|
+
"node_modules",
|
|
9
|
+
"pnpm-lock.yaml"
|
|
10
|
+
].filter(Boolean)
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
createDotESLintignore
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=createDotESLintignore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/steps/writing/creation/createDotESLintignore.ts"],"sourcesContent":["import { Options } from \"../../../shared/types.js\";\nimport { formatIgnoreFile } from \"./formatters/formatIgnoreFile.js\";\n\nexport function createDotESLintignore(options: Pick<Options, \"excludeTests\">) {\n\treturn formatIgnoreFile(\n\t\t[\n\t\t\t\"!.*\",\n\t\t\t...(options.excludeTests ? [] : [\"coverage\"]),\n\t\t\t\"lib\",\n\t\t\t\"node_modules\",\n\t\t\t\"pnpm-lock.yaml\",\n\t\t].filter(Boolean),\n\t);\n}\n"],"mappings":"AACA,SAAS,wBAAwB;AAE1B,SAAS,sBAAsB,SAAwC;AAC7E,SAAO;AAAA,IACN;AAAA,MACC;AAAA,MACA,GAAI,QAAQ,eAAe,CAAC,IAAI,CAAC,UAAU;AAAA,MAC3C;AAAA,MACA;AAAA,MACA;AAAA,IACD,EAAE,OAAO,OAAO;AAAA,EACjB;AACD;","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { formatIgnoreFile } from "./formatters/formatIgnoreFile.js";
|
|
2
|
+
function createDotGitignore(options) {
|
|
3
|
+
return formatIgnoreFile([
|
|
4
|
+
...options.excludeTests ? [] : ["coverage/"],
|
|
5
|
+
"lib/",
|
|
6
|
+
"node_modules/"
|
|
7
|
+
]);
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
createDotGitignore
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=createDotGitignore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/steps/writing/creation/createDotGitignore.ts"],"sourcesContent":["import { Options } from \"../../../shared/types.js\";\nimport { formatIgnoreFile } from \"./formatters/formatIgnoreFile.js\";\n\nexport function createDotGitignore(options: Pick<Options, \"excludeTests\">) {\n\treturn formatIgnoreFile([\n\t\t...(options.excludeTests ? [] : [\"coverage/\"]),\n\t\t\"lib/\",\n\t\t\"node_modules/\",\n\t]);\n}\n"],"mappings":"AACA,SAAS,wBAAwB;AAE1B,SAAS,mBAAmB,SAAwC;AAC1E,SAAO,iBAAiB;AAAA,IACvB,GAAI,QAAQ,eAAe,CAAC,IAAI,CAAC,WAAW;AAAA,IAC5C;AAAA,IACA;AAAA,EACD,CAAC;AACF;","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { formatTypeScript } from "./formatters/formatTypeScript.js";
|
|
2
|
+
async function createTsupConfig(options) {
|
|
3
|
+
return await formatTypeScript(`import { defineConfig } from "tsup";
|
|
4
|
+
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
bundle: false,
|
|
7
|
+
clean: true,
|
|
8
|
+
dts: true,
|
|
9
|
+
entry: ["src/**/*.ts"${options.excludeTests ? "" : `, "!src/**/*.test.*"`}],
|
|
10
|
+
format: "esm",
|
|
11
|
+
outDir: "lib",
|
|
12
|
+
sourcemap: true,
|
|
13
|
+
});
|
|
14
|
+
`);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
createTsupConfig
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=createTsupConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/steps/writing/creation/createTsupConfig.ts"],"sourcesContent":["import { Options } from \"../../../shared/types.js\";\nimport { formatTypeScript } from \"./formatters/formatTypeScript.js\";\n\nexport async function createTsupConfig(options: Pick<Options, \"excludeTests\">) {\n\treturn await formatTypeScript(`import { defineConfig } from \"tsup\";\n\n\t\texport default defineConfig({\n\t\t\tbundle: false,\n\t\t\tclean: true,\n\t\t\tdts: true,\n\t\t\tentry: [\"src/**/*.ts\"${options.excludeTests ? \"\" : `, \"!src/**/*.test.*\"`}],\n\t\t\tformat: \"esm\",\n\t\t\toutDir: \"lib\",\n\t\t\tsourcemap: true,\n\t\t});\n\t`);\n}\n"],"mappings":"AACA,SAAS,wBAAwB;AAEjC,eAAsB,iBAAiB,SAAwC;AAC9E,SAAO,MAAM,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAML,QAAQ,eAAe,KAAK,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA,EAK1E;AACF;","names":[]}
|
|
@@ -1,27 +1,17 @@
|
|
|
1
|
+
import { createDotESLintignore } from "./createDotESLintignore.js";
|
|
2
|
+
import { createDotGitignore } from "./createDotGitignore.js";
|
|
1
3
|
import { createESLintRC } from "./createESLintRC.js";
|
|
4
|
+
import { createTsupConfig } from "./createTsupConfig.js";
|
|
2
5
|
import { formatIgnoreFile } from "./formatters/formatIgnoreFile.js";
|
|
3
6
|
import { formatJson } from "./formatters/formatJson.js";
|
|
4
|
-
import { formatTypeScript } from "./formatters/formatTypeScript.js";
|
|
5
7
|
import { writeAllContributorsRC } from "./writeAllContributorsRC.js";
|
|
6
8
|
import { writePackageJson } from "./writePackageJson.js";
|
|
7
9
|
async function createRootFiles(options) {
|
|
8
10
|
return {
|
|
9
11
|
".all-contributorsrc": await writeAllContributorsRC(options),
|
|
10
|
-
".eslintignore":
|
|
11
|
-
[
|
|
12
|
-
"!.*",
|
|
13
|
-
...options.excludeTests ? [] : ["coverage"],
|
|
14
|
-
"lib",
|
|
15
|
-
"node_modules",
|
|
16
|
-
"pnpm-lock.yaml"
|
|
17
|
-
].filter(Boolean)
|
|
18
|
-
),
|
|
12
|
+
".eslintignore": createDotESLintignore(options),
|
|
19
13
|
".eslintrc.cjs": await createESLintRC(options),
|
|
20
|
-
".gitignore":
|
|
21
|
-
...options.excludeTests ? [] : ["coverage/"],
|
|
22
|
-
"lib/",
|
|
23
|
-
"node_modules/"
|
|
24
|
-
]),
|
|
14
|
+
".gitignore": createDotGitignore(options),
|
|
25
15
|
...!options.excludeLintMd && {
|
|
26
16
|
".markdownlint.json": await formatJson({
|
|
27
17
|
extends: "markdownlint/style/prettier",
|
|
@@ -172,18 +162,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
172
162
|
},
|
|
173
163
|
include: ["src"]
|
|
174
164
|
}),
|
|
175
|
-
"tsup.config.ts": await
|
|
176
|
-
|
|
177
|
-
export default defineConfig({
|
|
178
|
-
bundle: false,
|
|
179
|
-
clean: true,
|
|
180
|
-
dts: true,
|
|
181
|
-
entry: ["src/**/*.ts"${options.excludeTests ? "" : `, "!src/**/*.test.*"`}],
|
|
182
|
-
format: "esm",
|
|
183
|
-
outDir: "lib",
|
|
184
|
-
sourcemap: true,
|
|
185
|
-
});
|
|
186
|
-
`),
|
|
165
|
+
"tsup.config.ts": await createTsupConfig(options),
|
|
187
166
|
...!options.excludeTests && {
|
|
188
167
|
"vitest.config.ts": `import { defineConfig } from "vitest/config";
|
|
189
168
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/steps/writing/creation/rootFiles.ts"],"sourcesContent":["import { Options } from \"../../../shared/types.js\";\nimport { createESLintRC } from \"./createESLintRC.js\";\nimport {
|
|
1
|
+
{"version":3,"sources":["../../../../src/steps/writing/creation/rootFiles.ts"],"sourcesContent":["import { Options } from \"../../../shared/types.js\";\nimport { createDotESLintignore } from \"./createDotESLintignore.js\";\nimport { createDotGitignore } from \"./createDotGitignore.js\";\nimport { createESLintRC } from \"./createESLintRC.js\";\nimport { createTsupConfig } from \"./createTsupConfig.js\";\nimport { formatIgnoreFile } from \"./formatters/formatIgnoreFile.js\";\nimport { formatJson } from \"./formatters/formatJson.js\";\nimport { writeAllContributorsRC } from \"./writeAllContributorsRC.js\";\nimport { writePackageJson } from \"./writePackageJson.js\";\n\nexport async function createRootFiles(options: Options) {\n\treturn {\n\t\t\".all-contributorsrc\": await writeAllContributorsRC(options),\n\t\t\".eslintignore\": createDotESLintignore(options),\n\t\t\".eslintrc.cjs\": await createESLintRC(options),\n\t\t\".gitignore\": createDotGitignore(options),\n\t\t...(!options.excludeLintMd && {\n\t\t\t\".markdownlint.json\": await formatJson({\n\t\t\t\textends: \"markdownlint/style/prettier\",\n\t\t\t\t\"first-line-h1\": false,\n\t\t\t\t\"no-inline-html\": false,\n\t\t\t}),\n\t\t\t\".markdownlintignore\": formatIgnoreFile([\n\t\t\t\t\".github/CODE_OF_CONDUCT.md\",\n\t\t\t\t\"CHANGELOG.md\",\n\t\t\t\t\"lib/\",\n\t\t\t\t\"node_modules/\",\n\t\t\t]),\n\t\t}),\n\t\t...(!options.excludeLintPackageJson && {\n\t\t\t\".npmpackagejsonlintrc.json\": await formatJson({\n\t\t\t\textends: \"npm-package-json-lint-config-default\",\n\t\t\t\trules: {\n\t\t\t\t\t\"require-description\": \"error\",\n\t\t\t\t\t\"require-license\": \"error\",\n\t\t\t\t},\n\t\t\t}),\n\t\t}),\n\t\t\".nvmrc\": `20.10.0\\n`,\n\t\t\".prettierignore\": formatIgnoreFile([\n\t\t\t...(options.excludeAllContributors ? [] : [\".all-contributorsrc\"]),\n\t\t\t...(options.excludeTests ? [] : [\"coverage/\"]),\n\t\t\t\"lib/\",\n\t\t\t\"pnpm-lock.yaml\",\n\t\t]),\n\t\t\".prettierrc\": await formatJson({\n\t\t\t$schema: \"http://json.schemastore.org/prettierrc\",\n\t\t\toverrides: [\n\t\t\t\t{\n\t\t\t\t\tfiles: \".*rc\",\n\t\t\t\t\toptions: { parser: \"json\" },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tfiles: \".nvmrc\",\n\t\t\t\t\toptions: { parser: \"yaml\" },\n\t\t\t\t},\n\t\t\t],\n\t\t\tplugins: [\"prettier-plugin-curly\", \"prettier-plugin-packagejson\"],\n\t\t\tuseTabs: true,\n\t\t}),\n\t\t...(!options.excludeReleases && {\n\t\t\t\".release-it.json\": await formatJson({\n\t\t\t\tgit: {\n\t\t\t\t\tcommitMessage: \"chore: release v${version}\",\n\t\t\t\t\trequireCommits: true,\n\t\t\t\t},\n\t\t\t\tgithub: {\n\t\t\t\t\tautoGenerate: true,\n\t\t\t\t\trelease: true,\n\t\t\t\t\treleaseName: \"v${version}\",\n\t\t\t\t},\n\t\t\t\tnpm: {\n\t\t\t\t\tpublishArgs: [`--access ${options.access}`, \"--provenance\"],\n\t\t\t\t},\n\t\t\t\tplugins: {\n\t\t\t\t\t\"@release-it/conventional-changelog\": {\n\t\t\t\t\t\tinfile: \"CHANGELOG.md\",\n\t\t\t\t\t\tpreset: \"angular\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t}),\n\t\t\"LICENSE.md\": `# MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n`,\n\t\t...(!options.excludeLintSpelling && {\n\t\t\t\"cspell.json\": await formatJson({\n\t\t\t\tdictionaries: [\"typescript\"],\n\t\t\t\tignorePaths: [\n\t\t\t\t\t\".github\",\n\t\t\t\t\t\"CHANGELOG.md\",\n\t\t\t\t\t...(options.excludeTests ? [] : [\"coverage\"]),\n\t\t\t\t\t\"lib\",\n\t\t\t\t\t\"node_modules\",\n\t\t\t\t\t\"pnpm-lock.yaml\",\n\t\t\t\t],\n\t\t\t\twords: [\n\t\t\t\t\t\"Codecov\",\n\t\t\t\t\t\"codespace\",\n\t\t\t\t\t\"commitlint\",\n\t\t\t\t\t\"contributorsrc\",\n\t\t\t\t\t\"conventionalcommits\",\n\t\t\t\t\t...(options.excludeLintKnip ? [] : [\"knip\"]),\n\t\t\t\t\t\"lcov\",\n\t\t\t\t\t\"markdownlintignore\",\n\t\t\t\t\t\"npmpackagejsonlintrc\",\n\t\t\t\t\t\"outro\",\n\t\t\t\t\t\"packagejson\",\n\t\t\t\t\t\"tsup\",\n\t\t\t\t\t\"quickstart\",\n\t\t\t\t\t\"wontfix\",\n\t\t\t\t].sort(),\n\t\t\t}),\n\t\t}),\n\t\t...(!options.excludeLintKnip && {\n\t\t\t\"knip.jsonc\": await formatJson({\n\t\t\t\t$schema: \"https://unpkg.com/knip@latest/schema.json\",\n\t\t\t\tentry: [\"src/index.ts!\"],\n\t\t\t\tignoreExportsUsedInFile: {\n\t\t\t\t\tinterface: true,\n\t\t\t\t\ttype: true,\n\t\t\t\t},\n\t\t\t\tproject: [\"src/**/*.ts!\"],\n\t\t\t}),\n\t\t}),\n\t\t\"package.json\": await writePackageJson(options),\n\t\t\"tsconfig.eslint.json\": await formatJson({\n\t\t\textends: \"./tsconfig.json\",\n\t\t\tinclude: [\".\"],\n\t\t}),\n\t\t\"tsconfig.json\": await formatJson({\n\t\t\tcompilerOptions: {\n\t\t\t\tdeclaration: true,\n\t\t\t\tdeclarationMap: true,\n\t\t\t\tesModuleInterop: true,\n\t\t\t\tmodule: \"NodeNext\",\n\t\t\t\tmoduleResolution: \"NodeNext\",\n\t\t\t\tnoEmit: true,\n\t\t\t\toutDir: \"lib\",\n\t\t\t\tresolveJsonModule: true,\n\t\t\t\tskipLibCheck: true,\n\t\t\t\tsourceMap: true,\n\t\t\t\tstrict: true,\n\t\t\t\ttarget: \"ES2022\",\n\t\t\t},\n\t\t\tinclude: [\"src\"],\n\t\t}),\n\t\t\"tsup.config.ts\": await createTsupConfig(options),\n\t\t...(!options.excludeTests && {\n\t\t\t\"vitest.config.ts\": `import { defineConfig } from \"vitest/config\";\n\nexport default defineConfig({\n\ttest: {\n\t\tclearMocks: true,\n\t\tcoverage: {\n\t\t\tall: true,\n\t\t\texclude: [\"lib\"],\n\t\t\tinclude: [\"src\"],\n\t\t\treporter: [\"html\", \"lcov\"],\n\t\t},\n\t\texclude: [\"lib\", \"node_modules\"],\n\t\tsetupFiles: [\"console-fail-test/setup\"],\n\t},\n});\n`,\n\t\t}),\n\t};\n}\n"],"mappings":"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","names":[]}
|
|
@@ -3,7 +3,10 @@ import { createStructure } from "./creation/index.js";
|
|
|
3
3
|
import { writeStructureWorker } from "./writeStructureWorker.js";
|
|
4
4
|
async function writeStructure(options) {
|
|
5
5
|
await writeStructureWorker(await createStructure(options), ".");
|
|
6
|
-
|
|
6
|
+
try {
|
|
7
|
+
await $`chmod ug+x .husky/pre-commit`;
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
7
10
|
}
|
|
8
11
|
export {
|
|
9
12
|
writeStructure
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/steps/writing/writeStructure.ts"],"sourcesContent":["import { $ } from \"execa\";\n\nimport { Options } from \"../../shared/types.js\";\nimport { createStructure } from \"./creation/index.js\";\nimport { writeStructureWorker } from \"./writeStructureWorker.js\";\n\nexport async function writeStructure(options: Options) {\n\tawait writeStructureWorker(await createStructure(options), \".\");\n\n\t// https://github.com/JoshuaKGoldberg/create-typescript-app/issues/718\n\tawait $`chmod ug+x .husky/pre-commit`;\n}\n"],"mappings":"AAAA,SAAS,SAAS;AAGlB,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AAErC,eAAsB,eAAe,SAAkB;AACtD,QAAM,qBAAqB,MAAM,gBAAgB,OAAO,GAAG,GAAG;
|
|
1
|
+
{"version":3,"sources":["../../../src/steps/writing/writeStructure.ts"],"sourcesContent":["import { $ } from \"execa\";\n\nimport { Options } from \"../../shared/types.js\";\nimport { createStructure } from \"./creation/index.js\";\nimport { writeStructureWorker } from \"./writeStructureWorker.js\";\n\nexport async function writeStructure(options: Options) {\n\tawait writeStructureWorker(await createStructure(options), \".\");\n\n\ttry {\n\t\t// https://github.com/JoshuaKGoldberg/create-typescript-app/issues/718\n\t\tawait $`chmod ug+x .husky/pre-commit`;\n\t} catch {\n\t\t// https://github.com/JoshuaKGoldberg/create-typescript-app/issues/1195\n\t}\n}\n"],"mappings":"AAAA,SAAS,SAAS;AAGlB,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AAErC,eAAsB,eAAe,SAAkB;AACtD,QAAM,qBAAqB,MAAM,gBAAgB,OAAO,GAAG,GAAG;AAE9D,MAAI;AAEH,UAAM;AAAA,EACP,QAAQ;AAAA,EAER;AACD;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-typescript-app",
|
|
3
|
-
"version": "1.52.
|
|
3
|
+
"version": "1.52.7",
|
|
4
4
|
"description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 💝",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"chalk": "^5.3.0",
|
|
49
49
|
"execa": "^8.0.1",
|
|
50
50
|
"git-remote-origin-url": "^4.0.0",
|
|
51
|
-
"git-url-parse": "^
|
|
51
|
+
"git-url-parse": "^14.0.0",
|
|
52
52
|
"js-yaml": "^4.1.0",
|
|
53
53
|
"lazy-value": "^3.0.0",
|
|
54
54
|
"npm-user": "^5.0.1",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"eslint": "^8.55.0",
|
|
79
79
|
"eslint-plugin-deprecation": "^2.0.0",
|
|
80
80
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
81
|
-
"eslint-plugin-jsdoc": "^
|
|
81
|
+
"eslint-plugin-jsdoc": "^48.0.0",
|
|
82
82
|
"eslint-plugin-jsonc": "^2.10.0",
|
|
83
83
|
"eslint-plugin-markdown": "^3.0.1",
|
|
84
84
|
"eslint-plugin-n": "^16.3.1",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"globby": "^14.0.0",
|
|
91
91
|
"husky": "^8.0.3",
|
|
92
92
|
"jsonc-eslint-parser": "^2.4.0",
|
|
93
|
-
"knip": "3.
|
|
93
|
+
"knip": "3.10.0",
|
|
94
94
|
"lint-staged": "^15.2.0",
|
|
95
95
|
"markdownlint": "^0.32.1",
|
|
96
96
|
"markdownlint-cli": "^0.38.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"vitest": "^1.0.2",
|
|
108
108
|
"yaml-eslint-parser": "^1.2.2"
|
|
109
109
|
},
|
|
110
|
-
"packageManager": "pnpm@8.
|
|
110
|
+
"packageManager": "pnpm@8.14.0",
|
|
111
111
|
"engines": {
|
|
112
112
|
"node": ">=18"
|
|
113
113
|
},
|