Commit a8fdbb26 authored by Tim Scanlin's avatar Tim Scanlin Committed by Arunoda Susiripala

delete files only from outDir (#2001)

parent 4d924ca9
......@@ -25,7 +25,7 @@ export default async function (dir, options) {
const buildStats = require(join(nextDir, 'build-stats.json'))
// Initialize the output directory
await del(outDir)
await del(join(outDir, '*'))
await mkdirp(join(outDir, '_next', buildStats['app.js'].hash))
await mkdirp(join(outDir, '_next', buildId))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment