default to generating app in src/node_modules/@sapper - fixes #551

This commit is contained in:
Rich Harris
2019-01-31 10:35:14 -05:00
parent 76ce7f227f
commit 90f3393ebf
41 changed files with 87 additions and 85 deletions

View File

@@ -26,7 +26,7 @@ export async function build({
cwd,
src = 'src',
routes = 'src/routes',
output = '__sapper__',
output = 'src/node_modules/@sapper',
static: static_files = 'static',
dest = '__sapper__/build',
@@ -48,6 +48,9 @@ export async function build({
throw new Error(`Legacy builds are not supported for projects using webpack`);
}
rimraf.sync(path.join(output, '**/*'));
mkdirp.sync(output);
rimraf.sync(path.join(dest, '**/*'));
mkdirp.sync(`${dest}/client`);
copy_shimport(dest);