Compare commits

...

2 Commits

Author SHA1 Message Date
6dad1c3d85 5.1.1 2016-04-30 12:25:52 +02:00
7d9b9b2d1d now makes TypeScript modules fully typed by default 2016-04-30 12:25:35 +02:00
3 changed files with 17 additions and 1 deletions

View File

@ -38,6 +38,13 @@ exports.run = function (configArg) {
moduleStream.on("queueDrain", function () {
plugins.beautylog.ok("TypeScript has been compiled!");
moduleStream.on("finish", function () {
try {
if (config.mode = "default")
plugins.fs.copySync(plugins.path.join(paths.cwd, "ts/typings"), plugins.path.join(paths.cwd, "dist/typings"));
}
catch (err) {
plugins.beautylog.warn("failed to copy external typings for full module declaration support");
}
done.resolve(config);
});
moduleStream.end();

View File

@ -1,6 +1,6 @@
{
"name": "npmts",
"version": "5.1.0",
"version": "5.1.1",
"description": "write npm modules with TypeScript",
"main": "dist/index.js",
"bin": {

View File

@ -45,6 +45,15 @@ export let run = function (configArg) {
moduleStream.on("queueDrain", function () {
plugins.beautylog.ok("TypeScript has been compiled!");
moduleStream.on("finish", function () {
try {
if(config.mode = "default") plugins.fs.copySync(
plugins.path.join(paths.cwd,"ts/typings"),
plugins.path.join(paths.cwd,"dist/typings")
);
}
catch (err){
plugins.beautylog.warn("failed to copy external typings for full module declaration support");
}
done.resolve(config);
});
moduleStream.end();