 
   {paths, tsOptions, runOptions, pkgInfo} = conf
 
-  distMapDir = path.relative paths.distDir.mapDir, paths.distDir.jsDir
+  distMapDir = path.relative paths.distDir.jsDir, paths.distDir.mapDir
 
   tsProject =
     $.typescript.createProject paths.tsconf, tsOptions

      .pipe dtsFilter

    merge [
      writeSourceMap jsStream
        .pipe gulp.dest paths.distDir.jsDir
      writeSourceMap dtsStream
        .pipe gulp.dest paths.distDir.dtsDir
    ]


      'lib/typings.d.ts'
    ], {restore: true}

    jsStream = merge [
      gulp.src [
        paths.srcDir.srcJs
