create-typescript-app 1.71.0 → 1.71.1
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.
|
@@ -3,14 +3,10 @@ import { readPackageData, removeDependencies } from "../shared/packages.js";
|
|
|
3
3
|
async function finalizeDependencies(options) {
|
|
4
4
|
const devDependencies = [
|
|
5
5
|
"@eslint/js",
|
|
6
|
-
"@eslint-community/eslint-plugin-eslint-comments",
|
|
7
|
-
"@types/eslint-plugin-markdown",
|
|
8
6
|
"@types/eslint__js",
|
|
9
7
|
"@types/node",
|
|
10
8
|
"eslint",
|
|
11
|
-
"eslint-plugin-jsdoc",
|
|
12
9
|
"eslint-plugin-n",
|
|
13
|
-
"eslint-plugin-regexp",
|
|
14
10
|
"husky",
|
|
15
11
|
"lint-staged",
|
|
16
12
|
"prettier",
|
|
@@ -21,10 +17,13 @@ async function finalizeDependencies(options) {
|
|
|
21
17
|
"typescript",
|
|
22
18
|
"typescript-eslint",
|
|
23
19
|
...options.excludeAllContributors ? [] : ["all-contributors-cli"],
|
|
20
|
+
...options.excludeLintESLint ? [] : ["@eslint-community/eslint-plugin-eslint-comments"],
|
|
21
|
+
...options.excludeLintJSDoc ? [] : ["eslint-plugin-jsdoc"],
|
|
24
22
|
...options.excludeLintJson ? [] : ["eslint-plugin-jsonc"],
|
|
25
23
|
...options.excludeLintJson && options.excludeLintPackageJson ? [] : ["jsonc-eslint-parser"],
|
|
26
24
|
...options.excludeLintKnip ? [] : ["knip"],
|
|
27
25
|
...options.excludeLintMd ? [] : [
|
|
26
|
+
"@types/eslint-plugin-markdown",
|
|
28
27
|
"eslint-plugin-markdown",
|
|
29
28
|
"markdownlint",
|
|
30
29
|
"markdownlint-cli",
|
|
@@ -32,6 +31,7 @@ async function finalizeDependencies(options) {
|
|
|
32
31
|
],
|
|
33
32
|
...options.excludeLintPackageJson ? [] : ["eslint-plugin-package-json"],
|
|
34
33
|
...options.excludeLintPerfectionist ? [] : ["eslint-plugin-perfectionist"],
|
|
34
|
+
...options.excludeLintRegex ? [] : ["eslint-plugin-regexp"],
|
|
35
35
|
...options.excludeLintSpelling ? [] : ["cspell"],
|
|
36
36
|
...options.excludeLintYml ? [] : ["eslint-plugin-yml"],
|
|
37
37
|
...options.excludeReleases ? [] : ["@release-it/conventional-changelog", "release-it"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/steps/finalizeDependencies.ts"],"sourcesContent":["import { execaCommand } from \"execa\";\n\nimport { readPackageData, removeDependencies } from \"../shared/packages.js\";\nimport { Options } from \"../shared/types.js\";\n\nexport async function finalizeDependencies(options: Options) {\n\tconst devDependencies = [\n\t\t\"@eslint/js\",\n\t\t\"@
|
|
1
|
+
{"version":3,"sources":["../../src/steps/finalizeDependencies.ts"],"sourcesContent":["import { execaCommand } from \"execa\";\n\nimport { readPackageData, removeDependencies } from \"../shared/packages.js\";\nimport { Options } from \"../shared/types.js\";\n\nexport async function finalizeDependencies(options: Options) {\n\tconst devDependencies = [\n\t\t\"@eslint/js\",\n\t\t\"@types/eslint__js\",\n\t\t\"@types/node\",\n\t\t\"eslint\",\n\t\t\"eslint-plugin-n\",\n\t\t\"husky\",\n\t\t\"lint-staged\",\n\t\t\"prettier\",\n\t\t\"prettier-plugin-curly\",\n\t\t\"prettier-plugin-sh\",\n\t\t\"prettier-plugin-packagejson\",\n\t\t\"tsup\",\n\t\t\"typescript\",\n\t\t\"typescript-eslint\",\n\t\t...(options.excludeAllContributors ? [] : [\"all-contributors-cli\"]),\n\t\t...(options.excludeLintESLint\n\t\t\t? []\n\t\t\t: [\"@eslint-community/eslint-plugin-eslint-comments\"]),\n\t\t...(options.excludeLintJSDoc ? [] : [\"eslint-plugin-jsdoc\"]),\n\t\t...(options.excludeLintJson ? [] : [\"eslint-plugin-jsonc\"]),\n\t\t...(options.excludeLintJson && options.excludeLintPackageJson\n\t\t\t? []\n\t\t\t: [\"jsonc-eslint-parser\"]),\n\t\t...(options.excludeLintKnip ? [] : [\"knip\"]),\n\t\t...(options.excludeLintMd\n\t\t\t? []\n\t\t\t: [\n\t\t\t\t\t\"@types/eslint-plugin-markdown\",\n\t\t\t\t\t\"eslint-plugin-markdown\",\n\t\t\t\t\t\"markdownlint\",\n\t\t\t\t\t\"markdownlint-cli\",\n\t\t\t\t\t\"sentences-per-line\",\n\t\t\t\t]),\n\t\t...(options.excludeLintPackageJson ? [] : [\"eslint-plugin-package-json\"]),\n\t\t...(options.excludeLintPerfectionist\n\t\t\t? []\n\t\t\t: [\"eslint-plugin-perfectionist\"]),\n\t\t...(options.excludeLintRegex ? [] : [\"eslint-plugin-regexp\"]),\n\t\t...(options.excludeLintSpelling ? [] : [\"cspell\"]),\n\t\t...(options.excludeLintYml ? [] : [\"eslint-plugin-yml\"]),\n\t\t...(options.excludeReleases\n\t\t\t? []\n\t\t\t: [\"@release-it/conventional-changelog\", \"release-it\"]),\n\t\t...(options.excludeTests\n\t\t\t? []\n\t\t\t: [\n\t\t\t\t\t\"@vitest/coverage-v8\",\n\t\t\t\t\t\"@vitest/eslint-plugin\",\n\t\t\t\t\t\"console-fail-test\",\n\t\t\t\t\t\"vitest\",\n\t\t\t\t]),\n\t]\n\t\t.filter(Boolean)\n\t\t.sort()\n\t\t.map((packageName) => `${packageName}@latest`)\n\t\t.join(\" \");\n\n\tawait execaCommand(\n\t\t`pnpm add ${devDependencies} -D${options.offline ? \" --offline\" : \"\"}`,\n\t);\n\n\tif (!options.excludeAllContributors) {\n\t\tawait execaCommand(`npx all-contributors-cli generate`);\n\t\tawait removeDependencies(\n\t\t\t[\"all-contributors-cli\", \"all-contributors-for-repository\"],\n\t\t\t(await readPackageData()).devDependencies,\n\t\t\t\"-D\",\n\t\t);\n\t}\n\n\tawait execaCommand(`pnpm dedupe --offline`);\n}\n"],"mappings":"AAAA,SAAS,oBAAoB;AAE7B,SAAS,iBAAiB,0BAA0B;AAGpD,eAAsB,qBAAqB,SAAkB;AAC5D,QAAM,kBAAkB;AAAA,IACvB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