Skip to content

Commit cab1f48

Browse files
timoxleyimpronunciable
authored andcommitted
next init: Inherit project name from directory. (vercel#134)
1 parent 9ad0e57 commit cab1f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/next-init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exists(join(dir, 'package.json'))
2020
}
2121

2222
if (!present) {
23-
await writeFile(join(dir, 'package.json'), basePackage)
23+
await writeFile(join(dir, 'package.json'), basePackage.replace(/my-app/g, basename(dir)))
2424
}
2525

2626
if (!await exists(join(dir, 'static'))) {

0 commit comments

Comments
 (0)