now makes TypeScript modules fully typed by default
This commit is contained in:
parent
e3e6a326b5
commit
7d9b9b2d1d
7
dist/npmts.compile.js
vendored
7
dist/npmts.compile.js
vendored
@ -38,6 +38,13 @@ exports.run = function (configArg) {
|
|||||||
moduleStream.on("queueDrain", function () {
|
moduleStream.on("queueDrain", function () {
|
||||||
plugins.beautylog.ok("TypeScript has been compiled!");
|
plugins.beautylog.ok("TypeScript has been compiled!");
|
||||||
moduleStream.on("finish", function () {
|
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);
|
done.resolve(config);
|
||||||
});
|
});
|
||||||
moduleStream.end();
|
moduleStream.end();
|
||||||
|
@ -45,6 +45,15 @@ export let run = function (configArg) {
|
|||||||
moduleStream.on("queueDrain", function () {
|
moduleStream.on("queueDrain", function () {
|
||||||
plugins.beautylog.ok("TypeScript has been compiled!");
|
plugins.beautylog.ok("TypeScript has been compiled!");
|
||||||
moduleStream.on("finish", function () {
|
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);
|
done.resolve(config);
|
||||||
});
|
});
|
||||||
moduleStream.end();
|
moduleStream.end();
|
||||||
|
Loading…
Reference in New Issue
Block a user