Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
6dad1c3d85 | |||
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 () {
|
||||
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();
|
||||
|
@ -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": {
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user