Skip to content

Commit 58911f2

Browse files
committed
fix(CLI): set the name in package.json during generation
Fixes #81
1 parent 98d3c32 commit 58911f2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/cli/tests/cli.integration.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ test(`${
448448
'test-5/.prettierignore': '1da1ce4fdb868f0939608fafd38f9683',
449449
'test-5/LICENSE': '8786d80048d9c837477dc3b807aaf598',
450450
'test-5/README.md': '8fc7ecb21d7d47289e4b2469eea4db39',
451-
'test-5/package.json': '187446ae1d92fddaa89b859d3adc6527',
451+
'test-5/package.json': '854400ffaecaae954473806fdff74af2',
452452
'test-5/src/index.ts': '5025093b4dc30524d349fd1cc465ed30',
453453
'test-5/src/lib/number.spec.ts': '40ebb014eb7871d1f810c618aba1d589',
454454
'test-5/src/lib/number.ts': '43756f90e6ac0b1c4ee6c81d8ab969c7',
@@ -495,7 +495,7 @@ test(`${TestDirectories.six}: Sandboxed: yarn, no initial commit`, async t => {
495495
'test-6/LICENSE': '1f08fdd25d16c4ee8d5233b9cb7f6051',
496496
'test-6/README.md': 'd809bcbf240f44b51b575a3d49936232',
497497
'test-6/appveyor.yml': 'ad473b824b29edfd21c18cfc8ae8e0ea',
498-
'test-6/package.json': 'a7a94f6c500a05c90e475049103ba26e',
498+
'test-6/package.json': 'd319b6d47d943aaacc81bd4da3b7a845',
499499
'test-6/src/index.ts': 'fbc67c2cbf3a7d37e4e02583bf06eec9',
500500
'test-6/src/lib/async.spec.ts': '1e83b84de3f3b068244885219acb42bd',
501501
'test-6/src/lib/async.ts': '9012c267bb25fa98ad2561929de3d4e2',

src/cli/typescript-starter.ts

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export async function typescriptStarter(
8888
description,
8989
devDependencies: filterAllBut(keptDevDeps, pkg.devDependencies),
9090
keywords: [],
91+
name: projectName,
9192
repository: `https://github.com/${githubUsername}/${projectName}`,
9293
scripts:
9394
runner === Runner.Yarn

0 commit comments

Comments
 (0)