@@ -137,7 +137,7 @@ export async function main() {
137
137
138
138
await command ( "git add CODE_OF_CONDUCT.md" ) ;
139
139
await command (
140
- "git commit -m 'docs(CODE_OF_CONDUCT): Contributor Covenant'"
140
+ "git commit -m 'docs(CODE_OF_CONDUCT): Contributor Covenant'" ,
141
141
) ;
142
142
143
143
await command ( "git add CONTRIBUTING.md" ) ;
@@ -160,7 +160,7 @@ export async function main() {
160
160
} ) ;
161
161
162
162
await command (
163
- `git remote add origin [email protected] :${ answers . repository } .git`
163
+ `git remote add origin [email protected] :${ answers . repository } .git` ,
164
164
) ;
165
165
await command ( `git push -u origin HEAD` ) ;
166
166
await command ( `git checkout -b initial-version` ) ;
@@ -224,11 +224,11 @@ export async function main() {
224
224
225
225
await writePrettyFile (
226
226
".gitignore" ,
227
- [ "coverage/" , "node_modules/" , "pkg/" ] . join ( "\n" )
227
+ [ "coverage/" , "node_modules/" , "pkg/" ] . join ( "\n" ) ,
228
228
) ;
229
229
await command ( `git add .gitignore` ) ;
230
230
await command (
231
- `git commit -m 'build(gitignore): coverage, node_modules, pkg'`
231
+ `git commit -m 'build(gitignore): coverage, node_modules, pkg'` ,
232
232
) ;
233
233
234
234
writePrettyFile (
@@ -242,11 +242,11 @@ export async function main() {
242
242
emitDeclarationOnly : true ,
243
243
sourceMap : true ,
244
244
} ,
245
- } )
245
+ } ) ,
246
246
) ;
247
247
await command ( `git add tsconfig.json` ) ;
248
248
await command (
249
- `git commit -m 'build(typescript): configuration for esbuild'`
249
+ `git commit -m 'build(typescript): configuration for esbuild'` ,
250
250
) ;
251
251
252
252
console . log ( "create smoke test" ) ;
@@ -275,7 +275,7 @@ export async function main() {
275
275
}).not.toThrow();
276
276
});
277
277
});
278
- `
278
+ ` ,
279
279
) ;
280
280
} else {
281
281
await writePrettyFile (
@@ -292,7 +292,7 @@ export async function main() {
292
292
expect(${ answers . exportName } .VERSION).toEqual("0.0.0-development");
293
293
});
294
294
});
295
- `
295
+ ` ,
296
296
) ;
297
297
}
298
298
@@ -302,7 +302,7 @@ export async function main() {
302
302
console . log ( "create src" ) ;
303
303
await writePrettyFile (
304
304
"src/version.ts" ,
305
- 'export const VERSION = "0.0.0-development"'
305
+ 'export const VERSION = "0.0.0-development"' ,
306
306
) ;
307
307
308
308
if ( answers . isPlugin ) {
@@ -320,7 +320,7 @@ export async function main() {
320
320
*/
321
321
export function ${ answers . exportName } (octokit: Octokit, options: Options) {}
322
322
${ answers . exportName } .VERSION = VERSION;
323
- `
323
+ ` ,
324
324
) ;
325
325
} else if ( answers . isAuthenticationStrategy ) {
326
326
await writePrettyFile (
@@ -345,7 +345,7 @@ export async function main() {
345
345
});
346
346
};
347
347
348
- `
348
+ ` ,
349
349
) ;
350
350
await writePrettyFile (
351
351
"src/types.ts" ,
@@ -355,7 +355,7 @@ export async function main() {
355
355
AuthOptions: any;
356
356
Authentication: any;
357
357
};
358
- `
358
+ ` ,
359
359
) ;
360
360
await writePrettyFile (
361
361
"src/auth.ts" ,
@@ -365,7 +365,7 @@ export async function main() {
365
365
export async function auth(options: AuthOptions): Promise<Authentication> {
366
366
// TODO: add implementation
367
367
}
368
- `
368
+ ` ,
369
369
) ;
370
370
await writePrettyFile (
371
371
"src/hook.ts" ,
@@ -392,7 +392,7 @@ export async function main() {
392
392
// probably something like setting the authorization header
393
393
return request(route, parameters);
394
394
}
395
- `
395
+ ` ,
396
396
) ;
397
397
} else {
398
398
const isClass = / ^ [ A - Z ] / . test ( answers . exportName ) ;
@@ -406,7 +406,7 @@ export async function main() {
406
406
export class ${ answers . exportName } {
407
407
static VERSION = VERSION
408
408
}
409
- `
409
+ ` ,
410
410
) ;
411
411
} else {
412
412
await writePrettyFile (
@@ -416,7 +416,7 @@ export async function main() {
416
416
417
417
export function ${ answers . exportName } () {}
418
418
${ answers . exportName } .VERSION = VERSION
419
- `
419
+ ` ,
420
420
) ;
421
421
}
422
422
}
0 commit comments