Skip to content

Commit c367876

Browse files
committed
make root path file before contents
1 parent 821dd7a commit c367876

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/rcs.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -437,15 +437,12 @@ RCS.prototype.generate = function (cb) {
437437
this.createHtmlFile()
438438
])
439439
.then(function () {
440-
return self.createContentsFile()
440+
return self.createRootPathFile()
441441
})
442442
.then(function () {
443-
return self.createRootPathFile()
443+
return self.createContentsFile()
444444
})
445445
.then(function () {
446-
if (!self.opts.dev) {
447-
fs.removeSync(self.stageDir)
448-
}
449446
cb()
450447
})
451448
.catch(function (err) {

0 commit comments

Comments
 (0)