create-typescript-app 1.67.4 → 1.67.6
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/create/createWithOptions.js +1 -1
- package/lib/create/createWithOptions.js.map +1 -1
- package/lib/shared/options/optionsSchema.d.ts +20 -20
- package/lib/shared/runOrRestore.d.ts +1 -1
- package/lib/steps/writing/creation/dotGitHub/actions.js +1 -1
- package/lib/steps/writing/creation/dotGitHub/actions.js.map +1 -1
- package/package.json +1 -1
|
@@ -49,7 +49,7 @@ async function createWithOptions({ github, options }) {
|
|
|
49
49
|
await withSpinner("Initializing GitHub repository", async () => {
|
|
50
50
|
await $`git remote add origin https://github.com/${options.owner}/${options.repository}`;
|
|
51
51
|
await $`git add -A`;
|
|
52
|
-
await $`git commit --message ${"feat: initialized repo \u2728"}`;
|
|
52
|
+
await $`git commit --message ${"feat: initialized repo \u2728"} --no-gpg-sign`;
|
|
53
53
|
await $`git push -u origin main --force`;
|
|
54
54
|
await initializeGitHubRepository(github.octokit, options);
|
|
55
55
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/create/createWithOptions.ts"],"sourcesContent":["import { $ } from \"execa\";\n\nimport { withSpinner, withSpinners } from \"../shared/cli/spinners.js\";\nimport { createCleanupCommands } from \"../shared/createCleanupCommands.js\";\nimport { doesRepositoryExist } from \"../shared/doesRepositoryExist.js\";\nimport { GitHubAndOptions } from \"../shared/options/readOptions.js\";\nimport { addToolAllContributors } from \"../steps/addToolAllContributors.js\";\nimport { clearLocalGitTags } from \"../steps/clearLocalGitTags.js\";\nimport { finalizeDependencies } from \"../steps/finalizeDependencies.js\";\nimport { initializeGitHubRepository } from \"../steps/initializeGitHubRepository/index.js\";\nimport { populateCSpellDictionary } from \"../steps/populateCSpellDictionary.js\";\nimport { runCleanup } from \"../steps/runCleanup.js\";\nimport { writeReadme } from \"../steps/writeReadme/index.js\";\nimport { writeStructure } from \"../steps/writing/writeStructure.js\";\n\nexport async function createWithOptions({ github, options }: GitHubAndOptions) {\n\tawait withSpinners(\"Creating repository structure\", [\n\t\t[\n\t\t\t\"Writing structure\",\n\t\t\tasync () => {\n\t\t\t\tawait writeStructure(options);\n\t\t\t},\n\t\t],\n\t\t[\n\t\t\t\"Writing README.md\",\n\t\t\tasync () => {\n\t\t\t\tawait writeReadme(options);\n\t\t\t},\n\t\t],\n\t]);\n\n\tif (!options.excludeAllContributors && !options.skipAllContributorsApi) {\n\t\tawait withSpinner(\"Adding contributors to table\", async () => {\n\t\t\tawait addToolAllContributors(options);\n\t\t});\n\t}\n\n\tif (!options.skipInstall) {\n\t\tawait withSpinner(\"Installing packages\", async () =>\n\t\t\tfinalizeDependencies(options),\n\t\t);\n\n\t\tif (!options.excludeLintSpelling) {\n\t\t\tawait withSpinner(\n\t\t\t\t\"Populating CSpell dictionary\",\n\t\t\t\tpopulateCSpellDictionary,\n\t\t\t);\n\t\t}\n\n\t\tawait runCleanup(createCleanupCommands(options.bin), options.mode);\n\t}\n\n\tawait withSpinner(\"Clearing any local Git tags\", clearLocalGitTags);\n\n\tconst sendToGitHub =\n\t\tgithub && (await doesRepositoryExist(github.octokit, options));\n\n\tif (sendToGitHub) {\n\t\tawait withSpinner(\"Initializing GitHub repository\", async () => {\n\t\t\tawait $`git remote add origin https://github.com/${options.owner}/${options.repository}`;\n\t\t\tawait $`git add -A`;\n\t\t\tawait $`git commit --message ${\"feat: initialized repo ✨\"}`;\n\t\t\tawait $`git push -u origin main --force`;\n\t\t\tawait initializeGitHubRepository(github.octokit, options);\n\t\t});\n\t}\n\n\treturn { sentToGitHub: sendToGitHub };\n}\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,aAAa,oBAAoB;AAC1C,SAAS,6BAA6B;AACtC,SAAS,2BAA2B;AAEpC,SAAS,8BAA8B;AACvC,SAAS,yBAAyB;AAClC,SAAS,4BAA4B;AACrC,SAAS,kCAAkC;AAC3C,SAAS,gCAAgC;AACzC,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,sBAAsB;AAE/B,eAAsB,kBAAkB,EAAE,QAAQ,QAAQ,GAAqB;AAC9E,QAAM,aAAa,iCAAiC;AAAA,IACnD;AAAA,MACC;AAAA,MACA,YAAY;AACX,cAAM,eAAe,OAAO;AAAA,MAC7B;AAAA,IACD;AAAA,IACA;AAAA,MACC;AAAA,MACA,YAAY;AACX,cAAM,YAAY,OAAO;AAAA,MAC1B;AAAA,IACD;AAAA,EACD,CAAC;AAED,MAAI,CAAC,QAAQ,0BAA0B,CAAC,QAAQ,wBAAwB;AACvE,UAAM,YAAY,gCAAgC,YAAY;AAC7D,YAAM,uBAAuB,OAAO;AAAA,IACrC,CAAC;AAAA,EACF;AAEA,MAAI,CAAC,QAAQ,aAAa;AACzB,UAAM;AAAA,MAAY;AAAA,MAAuB,YACxC,qBAAqB,OAAO;AAAA,IAC7B;AAEA,QAAI,CAAC,QAAQ,qBAAqB;AACjC,YAAM;AAAA,QACL;AAAA,QACA;AAAA,MACD;AAAA,IACD;AAEA,UAAM,WAAW,sBAAsB,QAAQ,GAAG,GAAG,QAAQ,IAAI;AAAA,EAClE;AAEA,QAAM,YAAY,+BAA+B,iBAAiB;AAElE,QAAM,eACL,UAAW,MAAM,oBAAoB,OAAO,SAAS,OAAO;AAE7D,MAAI,cAAc;AACjB,UAAM,YAAY,kCAAkC,YAAY;AAC/D,YAAM,6CAA6C,QAAQ,KAAK,IAAI,QAAQ,UAAU;AACtF,YAAM;AACN,YAAM,yBAAyB,+BAA0B;AACzD,YAAM;AACN,YAAM,2BAA2B,OAAO,SAAS,OAAO;AAAA,IACzD,CAAC;AAAA,EACF;AAEA,SAAO,EAAE,cAAc,aAAa;AACrC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/create/createWithOptions.ts"],"sourcesContent":["import { $ } from \"execa\";\n\nimport { withSpinner, withSpinners } from \"../shared/cli/spinners.js\";\nimport { createCleanupCommands } from \"../shared/createCleanupCommands.js\";\nimport { doesRepositoryExist } from \"../shared/doesRepositoryExist.js\";\nimport { GitHubAndOptions } from \"../shared/options/readOptions.js\";\nimport { addToolAllContributors } from \"../steps/addToolAllContributors.js\";\nimport { clearLocalGitTags } from \"../steps/clearLocalGitTags.js\";\nimport { finalizeDependencies } from \"../steps/finalizeDependencies.js\";\nimport { initializeGitHubRepository } from \"../steps/initializeGitHubRepository/index.js\";\nimport { populateCSpellDictionary } from \"../steps/populateCSpellDictionary.js\";\nimport { runCleanup } from \"../steps/runCleanup.js\";\nimport { writeReadme } from \"../steps/writeReadme/index.js\";\nimport { writeStructure } from \"../steps/writing/writeStructure.js\";\n\nexport async function createWithOptions({ github, options }: GitHubAndOptions) {\n\tawait withSpinners(\"Creating repository structure\", [\n\t\t[\n\t\t\t\"Writing structure\",\n\t\t\tasync () => {\n\t\t\t\tawait writeStructure(options);\n\t\t\t},\n\t\t],\n\t\t[\n\t\t\t\"Writing README.md\",\n\t\t\tasync () => {\n\t\t\t\tawait writeReadme(options);\n\t\t\t},\n\t\t],\n\t]);\n\n\tif (!options.excludeAllContributors && !options.skipAllContributorsApi) {\n\t\tawait withSpinner(\"Adding contributors to table\", async () => {\n\t\t\tawait addToolAllContributors(options);\n\t\t});\n\t}\n\n\tif (!options.skipInstall) {\n\t\tawait withSpinner(\"Installing packages\", async () =>\n\t\t\tfinalizeDependencies(options),\n\t\t);\n\n\t\tif (!options.excludeLintSpelling) {\n\t\t\tawait withSpinner(\n\t\t\t\t\"Populating CSpell dictionary\",\n\t\t\t\tpopulateCSpellDictionary,\n\t\t\t);\n\t\t}\n\n\t\tawait runCleanup(createCleanupCommands(options.bin), options.mode);\n\t}\n\n\tawait withSpinner(\"Clearing any local Git tags\", clearLocalGitTags);\n\n\tconst sendToGitHub =\n\t\tgithub && (await doesRepositoryExist(github.octokit, options));\n\n\tif (sendToGitHub) {\n\t\tawait withSpinner(\"Initializing GitHub repository\", async () => {\n\t\t\tawait $`git remote add origin https://github.com/${options.owner}/${options.repository}`;\n\t\t\tawait $`git add -A`;\n\t\t\tawait $`git commit --message ${\"feat: initialized repo ✨\"} --no-gpg-sign`;\n\t\t\tawait $`git push -u origin main --force`;\n\t\t\tawait initializeGitHubRepository(github.octokit, options);\n\t\t});\n\t}\n\n\treturn { sentToGitHub: sendToGitHub };\n}\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,aAAa,oBAAoB;AAC1C,SAAS,6BAA6B;AACtC,SAAS,2BAA2B;AAEpC,SAAS,8BAA8B;AACvC,SAAS,yBAAyB;AAClC,SAAS,4BAA4B;AACrC,SAAS,kCAAkC;AAC3C,SAAS,gCAAgC;AACzC,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,sBAAsB;AAE/B,eAAsB,kBAAkB,EAAE,QAAQ,QAAQ,GAAqB;AAC9E,QAAM,aAAa,iCAAiC;AAAA,IACnD;AAAA,MACC;AAAA,MACA,YAAY;AACX,cAAM,eAAe,OAAO;AAAA,MAC7B;AAAA,IACD;AAAA,IACA;AAAA,MACC;AAAA,MACA,YAAY;AACX,cAAM,YAAY,OAAO;AAAA,MAC1B;AAAA,IACD;AAAA,EACD,CAAC;AAED,MAAI,CAAC,QAAQ,0BAA0B,CAAC,QAAQ,wBAAwB;AACvE,UAAM,YAAY,gCAAgC,YAAY;AAC7D,YAAM,uBAAuB,OAAO;AAAA,IACrC,CAAC;AAAA,EACF;AAEA,MAAI,CAAC,QAAQ,aAAa;AACzB,UAAM;AAAA,MAAY;AAAA,MAAuB,YACxC,qBAAqB,OAAO;AAAA,IAC7B;AAEA,QAAI,CAAC,QAAQ,qBAAqB;AACjC,YAAM;AAAA,QACL;AAAA,QACA;AAAA,MACD;AAAA,IACD;AAEA,UAAM,WAAW,sBAAsB,QAAQ,GAAG,GAAG,QAAQ,IAAI;AAAA,EAClE;AAEA,QAAM,YAAY,+BAA+B,iBAAiB;AAElE,QAAM,eACL,UAAW,MAAM,oBAAoB,OAAO,SAAS,OAAO;AAE7D,MAAI,cAAc;AACjB,UAAM,YAAY,kCAAkC,YAAY;AAC/D,YAAM,6CAA6C,QAAQ,KAAK,IAAI,QAAQ,UAAU;AACtF,YAAM;AACN,YAAM,yBAAyB,+BAA0B;AACzD,YAAM;AACN,YAAM,2BAA2B,OAAO,SAAS,OAAO;AAAA,IACzD,CAAC;AAAA,EACF;AAEA,SAAO,EAAE,cAAc,aAAa;AACrC;","names":[]}
|
|
@@ -112,17 +112,26 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
112
112
|
skipUninstall: z.ZodOptional<z.ZodBoolean>;
|
|
113
113
|
title: z.ZodOptional<z.ZodString>;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
description?: string | undefined;
|
|
115
116
|
offline?: boolean | undefined;
|
|
116
117
|
access?: "public" | "restricted" | undefined;
|
|
117
118
|
author?: string | undefined;
|
|
119
|
+
auto?: boolean | undefined;
|
|
118
120
|
base?: "common" | "everything" | "minimal" | "prompt" | undefined;
|
|
119
121
|
bin?: string | undefined;
|
|
120
|
-
description?: string | undefined;
|
|
121
122
|
directory?: string | undefined;
|
|
122
123
|
email?: {
|
|
123
124
|
github: string;
|
|
124
125
|
npm: string;
|
|
125
126
|
} | undefined;
|
|
127
|
+
funding?: string | undefined;
|
|
128
|
+
guide?: string | undefined;
|
|
129
|
+
keywords?: string[] | undefined;
|
|
130
|
+
logo?: string | undefined;
|
|
131
|
+
mode?: "create" | "initialize" | "migrate" | undefined;
|
|
132
|
+
owner?: string | undefined;
|
|
133
|
+
repository?: string | undefined;
|
|
134
|
+
title?: string | undefined;
|
|
126
135
|
excludeAllContributors?: boolean | undefined;
|
|
127
136
|
excludeBuild?: boolean | undefined;
|
|
128
137
|
excludeCompliance?: boolean | undefined;
|
|
@@ -142,36 +151,36 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
142
151
|
excludeReleases?: boolean | undefined;
|
|
143
152
|
excludeRenovate?: boolean | undefined;
|
|
144
153
|
excludeTests?: boolean | undefined;
|
|
145
|
-
funding?: string | undefined;
|
|
146
|
-
guide?: string | undefined;
|
|
147
|
-
keywords?: string[] | undefined;
|
|
148
|
-
logo?: string | undefined;
|
|
149
|
-
mode?: "create" | "initialize" | "migrate" | undefined;
|
|
150
|
-
owner?: string | undefined;
|
|
151
154
|
preserveGeneratedFrom?: boolean | undefined;
|
|
152
|
-
repository?: string | undefined;
|
|
153
155
|
skipAllContributorsApi?: boolean | undefined;
|
|
154
156
|
skipGitHubApi?: boolean | undefined;
|
|
155
157
|
skipInstall?: boolean | undefined;
|
|
156
158
|
skipRemoval?: boolean | undefined;
|
|
157
159
|
skipRestore?: boolean | undefined;
|
|
158
160
|
skipUninstall?: boolean | undefined;
|
|
159
|
-
title?: string | undefined;
|
|
160
161
|
guideTitle?: string | undefined;
|
|
161
162
|
logoAlt?: string | undefined;
|
|
162
|
-
auto?: boolean | undefined;
|
|
163
163
|
}, {
|
|
164
|
+
description?: string | undefined;
|
|
164
165
|
offline?: boolean | undefined;
|
|
165
166
|
access?: "public" | "restricted" | undefined;
|
|
166
167
|
author?: string | undefined;
|
|
168
|
+
auto?: boolean | undefined;
|
|
167
169
|
base?: "common" | "everything" | "minimal" | "prompt" | undefined;
|
|
168
170
|
bin?: string | undefined;
|
|
169
|
-
description?: string | undefined;
|
|
170
171
|
directory?: string | undefined;
|
|
171
172
|
email?: {
|
|
172
173
|
github: string;
|
|
173
174
|
npm: string;
|
|
174
175
|
} | undefined;
|
|
176
|
+
funding?: string | undefined;
|
|
177
|
+
guide?: string | undefined;
|
|
178
|
+
keywords?: string[] | undefined;
|
|
179
|
+
logo?: string | undefined;
|
|
180
|
+
mode?: "create" | "initialize" | "migrate" | undefined;
|
|
181
|
+
owner?: string | undefined;
|
|
182
|
+
repository?: string | undefined;
|
|
183
|
+
title?: string | undefined;
|
|
175
184
|
excludeAllContributors?: boolean | undefined;
|
|
176
185
|
excludeBuild?: boolean | undefined;
|
|
177
186
|
excludeCompliance?: boolean | undefined;
|
|
@@ -191,24 +200,15 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
191
200
|
excludeReleases?: boolean | undefined;
|
|
192
201
|
excludeRenovate?: boolean | undefined;
|
|
193
202
|
excludeTests?: boolean | undefined;
|
|
194
|
-
funding?: string | undefined;
|
|
195
|
-
guide?: string | undefined;
|
|
196
|
-
keywords?: string[] | undefined;
|
|
197
|
-
logo?: string | undefined;
|
|
198
|
-
mode?: "create" | "initialize" | "migrate" | undefined;
|
|
199
|
-
owner?: string | undefined;
|
|
200
203
|
preserveGeneratedFrom?: boolean | undefined;
|
|
201
|
-
repository?: string | undefined;
|
|
202
204
|
skipAllContributorsApi?: boolean | undefined;
|
|
203
205
|
skipGitHubApi?: boolean | undefined;
|
|
204
206
|
skipInstall?: boolean | undefined;
|
|
205
207
|
skipRemoval?: boolean | undefined;
|
|
206
208
|
skipRestore?: boolean | undefined;
|
|
207
209
|
skipUninstall?: boolean | undefined;
|
|
208
|
-
title?: string | undefined;
|
|
209
210
|
guideTitle?: string | undefined;
|
|
210
211
|
logoAlt?: string | undefined;
|
|
211
|
-
auto?: boolean | undefined;
|
|
212
212
|
}>;
|
|
213
213
|
|
|
214
214
|
export { optionsSchema, optionsSchemaShape };
|
|
@@ -2,6 +2,6 @@ interface RunOrRestoreOptions {
|
|
|
2
2
|
run: () => Promise<void>;
|
|
3
3
|
skipRestore: boolean | undefined;
|
|
4
4
|
}
|
|
5
|
-
declare function runOrRestore({ run, skipRestore }: RunOrRestoreOptions): Promise<
|
|
5
|
+
declare function runOrRestore({ run, skipRestore }: RunOrRestoreOptions): Promise<0 | 2>;
|
|
6
6
|
|
|
7
7
|
export { type RunOrRestoreOptions, runOrRestore };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/steps/writing/creation/dotGitHub/actions.ts"],"sourcesContent":["import jsYaml from \"js-yaml\";\n\nexport function createDotGitHubActions() {\n\treturn {\n\t\tprepare: {\n\t\t\t\"action.yml\": jsYaml\n\t\t\t\t.dump({\n\t\t\t\t\tdescription: \"Prepares the repo for a typical CI job\",\n\t\t\t\t\tname: \"Prepare\",\n\t\t\t\t\truns: {\n\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tuses: \"pnpm/action-setup@
|
|
1
|
+
{"version":3,"sources":["../../../../../src/steps/writing/creation/dotGitHub/actions.ts"],"sourcesContent":["import jsYaml from \"js-yaml\";\n\nexport function createDotGitHubActions() {\n\treturn {\n\t\tprepare: {\n\t\t\t\"action.yml\": jsYaml\n\t\t\t\t.dump({\n\t\t\t\t\tdescription: \"Prepares the repo for a typical CI job\",\n\t\t\t\t\tname: \"Prepare\",\n\t\t\t\t\truns: {\n\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tuses: \"pnpm/action-setup@v4\",\n\t\t\t\t\t\t\t\twith: { version: 9 },\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tuses: \"actions/setup-node@v4\",\n\t\t\t\t\t\t\t\twith: { cache: \"pnpm\", \"node-version\": \"20\" },\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\trun: \"pnpm install --frozen-lockfile\",\n\t\t\t\t\t\t\t\tshell: \"bash\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tusing: \"composite\",\n\t\t\t\t\t},\n\t\t\t\t})\n\t\t\t\t.replaceAll(/\\n(\\S)/g, \"\\n\\n$1\"),\n\t\t},\n\t};\n}\n"],"mappings":"AAAA,OAAO,YAAY;AAEZ,SAAS,yBAAyB;AACxC,SAAO;AAAA,IACN,SAAS;AAAA,MACR,cAAc,OACZ,KAAK;AAAA,QACL,aAAa;AAAA,QACb,MAAM;AAAA,QACN,MAAM;AAAA,UACL,OAAO;AAAA,YACN;AAAA,cACC,MAAM;AAAA,cACN,MAAM,EAAE,SAAS,EAAE;AAAA,YACpB;AAAA,YACA;AAAA,cACC,MAAM;AAAA,cACN,MAAM,EAAE,OAAO,QAAQ,gBAAgB,KAAK;AAAA,YAC7C;AAAA,YACA;AAAA,cACC,KAAK;AAAA,cACL,OAAO;AAAA,YACR;AAAA,UACD;AAAA,UACA,OAAO;AAAA,QACR;AAAA,MACD,CAAC,EACA,WAAW,WAAW,QAAQ;AAAA,IACjC;AAAA,EACD;AACD;","names":[]}
|