1
0
Fork 0
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:
Tim Oxley 2016-10-28 04:05:11 -07:00 committed by Dan Zajdband
parent 9ad0e57e6e
commit cab1f48d1e

View file

@ -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'))) {