Skip to content

Commit

Permalink
Tweaked build script to wait for types to be copied before marking co…
Browse files Browse the repository at this point in the history
…mplete.
  • Loading branch information
Aaronius committed Oct 10, 2017
1 parent eaf8ea3 commit 6cc2263
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/build.js
Expand Up @@ -53,11 +53,14 @@ const build = () => {
], callback);
});
});
},
(callback) => {
fs.createReadStream('./src/index.d.ts')
.pipe(fs.createWriteStream('./lib/index.d.ts'))
.on('finish', callback);
}
], () => { console.log('Build complete.')});
});

fs.createReadStream('./src/index.d.ts').pipe(fs.createWriteStream('./lib/index.d.ts'));
};

if (argv.watch) {
Expand Down

0 comments on commit 6cc2263

Please sign in to comment.