mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
next init: Inherit project name from directory. (#134)
This commit is contained in:
parent
9ad0e57e6e
commit
cab1f48d1e
|
@ -20,7 +20,7 @@ exists(join(dir, 'package.json'))
|
|||
}
|
||||
|
||||
if (!present) {
|
||||
await writeFile(join(dir, 'package.json'), basePackage)
|
||||
await writeFile(join(dir, 'package.json'), basePackage.replace(/my-app/g, basename(dir)))
|
||||
}
|
||||
|
||||
if (!await exists(join(dir, 'static'))) {
|
||||
|
|
Loading…
Reference in a new issue