diff --git a/dist/index.js b/dist/index.js
index 94f5345..adb56db 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -13,4 +13,4 @@ var smartpath = {
};
module.exports = smartpath;
-//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFFQSxJQUFPLGNBQWMsV0FBVyxtQkFBbUIsQ0FBQyxDQUFDO0FBQ3JELElBQU8sWUFBWSxXQUFXLGlCQUFpQixDQUFDLENBQUM7QUFDakQsSUFBTyxrQkFBa0IsV0FBVyx1QkFBdUIsQ0FBQyxDQUFDO0FBRTdEOzs7R0FHRztBQUNILElBQUksU0FBUyxHQUFHO0lBQ1osS0FBSyxFQUFFLGNBQWM7SUFDckIsR0FBRyxFQUFFLFlBQVk7SUFDakIsU0FBUyxFQUFFLGtCQUFrQjtDQUNoQyxDQUFDO0FBR0YsaUJBQVMsU0FBUyxDQUFDIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cInR5cGluZ3MvbWFpbi5kLnRzXCIgLz5cbmltcG9ydCBwbHVnaW5zID0gcmVxdWlyZShcIi4vc21hcnRwYXRoLnBsdWdpbnNcIik7XG5pbXBvcnQgU21hcnRwYXRoQ2hlY2sgPSByZXF1aXJlKFwiLi9zbWFydHBhdGguY2hlY2tcIik7XG5pbXBvcnQgU21hcnRwYXRoR2V0ID0gcmVxdWlyZShcIi4vc21hcnRwYXRoLmdldFwiKTtcbmltcG9ydCBTbWFydHBhdGhUcmFuc2Zvcm0gPSByZXF1aXJlKFwiLi9zbWFydHBhdGgudHJhbnNmb3JtXCIpO1xuXG4vKipcbiAqXG4gKiBAdHlwZSB7e2dldFBhdGg6IChmdW5jdGlvbihhbnkpOiB1bmRlZmluZWQpfX1cbiAqL1xubGV0IHNtYXJ0cGF0aCA9IHtcbiAgIC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ZnVuY3Rpb24oYW55KTogdW5kZWZpbmVkKX19XHJcbiAqL1xyXG5sZXQgc21hcnRwYXRoID0ge1xyXG4gICAgY2hlY2s6IFNtYXJ0cGF0aENoZWNrLFxyXG4gICAgZ2V0OiBTbWFydHBhdGhHZXQsXHJcbiAgICB0cmFuc2Zvcm06IFNtYXJ0cGF0aFRyYW5zZm9ybVxyXG59O1xyXG5cclxuXHJcbmV4cG9ydCA9IHNtYXJ0cGF0aDtcclxuIl19
diff --git a/dist/smartpath.check.d.ts b/dist/smartpath.check.d.ts
index c5b82f5..4d9b90c 100644
--- a/dist/smartpath.check.d.ts
+++ b/dist/smartpath.check.d.ts
@@ -1,2 +1,3 @@
+import "typings-global";
export declare let isDir: (pathArg: string) => boolean;
export declare let isFile: (pathArg: any) => boolean;
diff --git a/dist/smartpath.check.js b/dist/smartpath.check.js
index 0cbf355..fe63dd7 100644
--- a/dist/smartpath.check.js
+++ b/dist/smartpath.check.js
@@ -1,4 +1,5 @@
"use strict";
+require("typings-global");
exports.isDir = function (pathArg) {
return !exports.isFile(pathArg);
};
@@ -6,4 +7,4 @@ exports.isFile = function (pathArg) {
return /\.[a-zA-Z]*$/.test(pathArg); // checks if there is a .anything at the end
};
-//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0cGF0aC5jaGVjay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRVcsYUFBSyxHQUFHLFVBQVMsT0FBYztJQUN0QyxNQUFNLENBQUMsQ0FBQyxjQUFNLENBQUMsT0FBTyxDQUFDLENBQUM7QUFDNUIsQ0FBQyxDQUFBO0FBRVUsY0FBTSxHQUFHLFVBQVMsT0FBTztJQUNoQyxNQUFNLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLDRDQUE0QztBQUNyRixDQUFDLENBQUEiLCJmaWxlIjoic21hcnRwYXRoLmNoZWNr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lKHBhdGhBcmcpO1xyXG59XHJcblxyXG5leHBvcnQgbGV0IGlzRmlsZSA9IGZ1bmN0aW9uKHBhdGhBcmcpe1xyXG4gICAgcmV0dXJuIC9cXC5bYS16QS1aXSokLy50ZXN0KHBhdGhBcmcpOyAvLyBjaGVja3MgaWYgdGhlcmUgaXMgYSAuYW55dGhpbmcgYXQgdGhlIGVuZFxyXG59Il19
diff --git a/dist/smartpath.get.d.ts b/dist/smartpath.get.d.ts
index a59c9eb..0ab2237 100644
--- a/dist/smartpath.get.d.ts
+++ b/dist/smartpath.get.d.ts
@@ -1,3 +1,4 @@
+import "typings-global";
/**
* returns the type of the given path. Can be "url" or "local"
*/
diff --git a/dist/smartpath.get.js b/dist/smartpath.get.js
index 5ae7730..b9bda3e 100644
--- a/dist/smartpath.get.js
+++ b/dist/smartpath.get.js
@@ -1,5 +1,5 @@
"use strict";
-///
+require("typings-global");
var plugins = require("./smartpath.plugins");
/**
* returns the type of the given path. Can be "url" or "local"
@@ -23,4 +23,4 @@ exports.home = function (pathArgument) {
}
};
-//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0cGF0aC5nZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDBDQUEwQztBQUMxQyxJQUFPLE9BQU8sV0FBVyxxQkFBcUIsQ0FBQyxDQUFDO0FBRWhEOztHQUVHO0FBQ1EsWUFBSSxHQUFHLFVBQVMsYUFBb0I7SUFDM0MsSUFBSSxRQUFRLEdBQUcsb0JBQW9CLENBQUE7SUFDbkMsRUFBRSxDQUFBLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsQ0FBQyxDQUFBLENBQUM7UUFDN0IsTUFBTSxDQUFDLEtBQUssQ0FBQztJQUNqQixDQUFDO0lBQUMsSUFBSSxDQUFDLENBQUM7UUFDSixNQUFNLENBQUMsT0FBTyxDQUFDO0lBQ25CLENBQUM7S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dWdpbnMgZnJvbSBcIi4vc21hcnRwYXRoLnBsdWdpbnNcIjtcclxuXHJcbi8qKlxyXG4gKiByZXR1cm5zIHRoZSB0eXBlIG9mIHRoZSBnaXZlbiBwYXRoLiBDYW4gYmUgXCJ1cmxcIiBvciBcImxvY2FsXCJcclxuICovXHJcbmV4cG9ydCBsZXQgdHlwZSA9IGZ1bmN0aW9uKHBhdGhTdHJpbmdBcmc6c3RyaW5nKTpzdHJpbmcge1xyXG4gICAgbGV0IHVybFJlZ2V4ID0gL2h0dHBbc3xcXHNdOlxcL1xcLy4qL2lcclxuICAgIGlmKHVybFJlZ2V4LmV4ZWMocGF0aFN0cmluZ0FyZykpe1xyXG4gICAgICAgIHJldHVybiBcInVybFwiO1xyXG4gICAgfSBlbHNlIHtcclxuICAgICAgICByZXR1cm4gXCJsb2NhbFwiO1xyXG4gICAgfTtcclxufTtcclxuXHJcbmV4cG9ydCBsZXQgaG9tZSA9IGZ1bmN0aW9uKHBhdGhBcmd1bWVudD86c3RyaW5nKXtcclxuICAgIGlmKHBhdGhBcmd1bWVudCl7XHJcbiAgICAgICAgcmV0dXJuIHBsdWdpbnMuaG9tZS5yZXNvbHZlKHBhdGhBcmd1bWVudCk7XHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICAgIHJldHVybiBwbHVnaW5zLmhvbWUoKTtcclxuICAgIH1cclxufTsiXX0=
diff --git a/dist/smartpath.plugins.d.ts b/dist/smartpath.plugins.d.ts
index 2ddfc58..b5bb1ad 100644
--- a/dist/smartpath.plugins.d.ts
+++ b/dist/smartpath.plugins.d.ts
@@ -1,3 +1,4 @@
+import "typings-global";
export declare var beautylog: any;
export declare var home: any;
export declare var path: any;
diff --git a/dist/smartpath.plugins.js b/dist/smartpath.plugins.js
index c032186..24e9d80 100644
--- a/dist/smartpath.plugins.js
+++ b/dist/smartpath.plugins.js
@@ -1,7 +1,7 @@
"use strict";
-///
+require("typings-global");
exports.beautylog = require("beautylog");
exports.home = require("home");
exports.path = require("path");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vcnQgdmFyIGJlYXV0eWxvZyA9IHJlcXVpcmUgKFwiYmVhdXR5bG9nXCIpO1xyXG5leHBvcnQgdmFyIGhvbWUgPSByZXF1aXJlKFwiaG9tZVwiKTtcclxuZXhwb3J0IHZhciBwYXRoID0gcmVxdWlyZShcInBhdGhcIik7XHJcblxyXG4iXX0=
diff --git a/dist/smartpath.transform.d.ts b/dist/smartpath.transform.d.ts
index 4ba6798..01de163 100644
--- a/dist/smartpath.transform.d.ts
+++ b/dist/smartpath.transform.d.ts
@@ -1 +1,2 @@
+import "typings-global";
export declare let toAbsolute: (relativeArg: any, baseArg?: string) => any;
diff --git a/dist/smartpath.transform.js b/dist/smartpath.transform.js
index e8dedd4..7b5cb4e 100644
--- a/dist/smartpath.transform.js
+++ b/dist/smartpath.transform.js
@@ -1,5 +1,5 @@
"use strict";
-///
+require("typings-global");
var plugins = require("./smartpath.plugins");
/* ------------------------------------------ *
* ------------ helpers --------------------- *
@@ -37,4 +37,4 @@ exports.toAbsolute = function (relativeArg, baseArg) {
}
};
-//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0cGF0aC50cmFuc2Zvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDBDQUEwQztBQUMxQyxJQUFPLE9BQU8sV0FBVyxxQkFBcUIsQ0FBQyxDQUFDO0FBRWhEOztnREFFZ0Q7QUFDaEQsSUFBSSxZQUFZLEdBQUcsVUFBUyxZQUFtQixFQUFFLE9BQWU7SUFDNUQsSUFBSSxZQUFtQixDQUFDO0lBQ3hCLEVBQUUsQ0FBQSxDQUFDLE9BQU8sQ0FBQyxDQUFBLENBQUM7UUFDUixZQUFZLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFDLFlBQVksQ0FBQyxDQUFDO0lBQzNELENBQUM7SUFBQyxJQUFJLENBQUMsQ0FBQztRQUNILFlBQV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0aW9ucyAtLS0tLS0tLS0tLS0tLS0tLSAqXHJcbiAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSAqL1xyXG5leHBvcnQgbGV0IHRvQWJzb2x1dGUgPSBmdW5jdGlvbihyZWxhdGl2ZUFyZzphbnksIGJhc2VBcmc/OnN0cmluZyk6YW55IHtcclxuICAgIGlmKHR5cGVvZiByZWxhdGl2ZUFyZyA9PT0gXCJzdHJpbmdcIil7XHJcbiAgICAgICAgcmV0dXJuIG1ha2VBYnNvbHV0ZShyZWxhdGl2ZUFyZyxiYXNlQXJnKTtcclxuICAgIH0gZWxzZSBpZihBcnJheS5pc0FycmF5KHJlbGF0aXZlQXJnKSl7XHJcbiAgICAgICAgbGV0IHJlbGF0aXZlQXJyYXkgPSByZWxhdGl2ZUFyZ1xyXG4gICAgICAgIGxldCBhYnNvbHV0ZUFycmF5OnN0cmluZ1tdID0gW107XHJcbiAgICAgICAgZm9yIChsZXQga2V5IGluIHJlbGF0aXZlQXJyYXkpe1xyXG4gICAgICAgICAgICBhYnNvbHV0ZUFycmF5LnB1c2gobWFrZUFic29sdXRlKHJlbGF0aXZlQXJyYXlba2V5XSxiYXNlQXJnKSk7XHJcbiAgICAgICAgfTtcclxuICAgICAgICByZXR1cm4gYWJzb2x1dGVBcnJheTtcclxuICAgIH0gZWxzZSB7XHJcbiAgICAgICAgcGx1Z2lucy5iZWF1dHlsb2cuZXJyb3IoXCJzbWFydHBhdGguYWJzb2x1dGUoKSBjb3VsZCBub3QgbWFrZSBzZW5zZSBvZiB0aGUgaW5wdXQuIFwiICtcclxuICAgICAgICAgICAgXCJJbnB1dCBpcyBuZWl0aGVyIFN0cmluZyBub3IgQXJyYXlcIik7XHJcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgfVxyXG59OyJdfQ==
diff --git a/package.json b/package.json
index 73938df..8aac2e7 100644
--- a/package.json
+++ b/package.json
@@ -23,11 +23,13 @@
},
"homepage": "https://github.com/pushrocks/smartpath",
"dependencies": {
- "beautylog": "^4.1.3",
- "home": "^1.0.1"
+ "beautylog": "^5.0.8",
+ "home": "^1.0.1",
+ "typings-global": "^1.0.3"
},
"devDependencies": {
- "npmts": "^5.1.5",
- "should": "^8.3.1"
+ "npmts": "^5.1.19",
+ "should": "^9.0.0",
+ "typings-test": "^1.0.1"
}
}
diff --git a/test/test.d.ts b/test/test.d.ts
index aada52a..e7cc8ee 100644
--- a/test/test.d.ts
+++ b/test/test.d.ts
@@ -1,2 +1 @@
-declare let should: any;
-declare let smartpath: any;
+import "typings-test";
diff --git a/test/test.js b/test/test.js
index 910a056..36c555d 100644
--- a/test/test.js
+++ b/test/test.js
@@ -1,4 +1,5 @@
-///
+"use strict";
+require("typings-test");
var should = require("should");
var smartpath = require("../dist/index.js");
describe("smartpath", function () {
@@ -74,4 +75,4 @@ describe("smartpath", function () {
});
});
-//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsZ0RBQWdEO0FBQ2hELElBQUksTUFBTSxHQUFHLE9BQU8sQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUMvQixJQUFJLFNBQVMsR0FBRyxPQUFPLENBQUMsa0JBQWtCLENBQUMsQ0FBQztBQUU1QyxRQUFRLENBQUMsV0FBVyxFQUFDO0lBQ2pCLFFBQVEsQ0FBQyxRQUFRLEVBQUM7UUFDZCxJQUFJLGNBQWMsR0FBRyx5QkFBeUIsQ0FBQTtRQUM5QyxJQUFJLGFBQWEsR0FBRyxzQkFBc0IsQ0FBQTtRQUMxQyxJQUFJLGNBQWMsR0FBRyx3QkFBd0IsQ0FBQTtRQUM3QyxRQUFRLENBQUMsU0FBUyxFQUFDO1lBQ2YsRUFBRSxDQUFDLGdDQUFnQyxFQUFDO2dCQUNoQyxTQUFTLENBQUMsS0FBSyxDQUFDLE1B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0aC5jaGVjay5pc0ZpbGUoZmlsZVBhdGhTdHJpbmcpXG4gICAgICAgICAgICAgICAgICAgIC5zaG91bGQuYmUudHJ1ZSgpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBpdChcInNob3VsZCBiZSBmYWxzZSBmb3IgYSBkaXJlY3RvcnkgcGF0aFwiLGZ1bmN0aW9uKCl7XG4gICAgICAgICAgICAgICAgc21hcnRwYXRoLmNoZWNrLmlzRmlsZShkaXJQYXRoU3RyaW5nKVxuICAgICAgICAgICAgICAgICAgICAuc2hvdWxkLmJlLmZhbHNlKCk7XG4gICAgICAgICAgICAgICAgc21hcnRwYXRoLmNoZWNrLmlzRmlsZShkaXJQYXRoU3RyaW5nMilcbiAgICAgICAgICAgICAgICAgICAgLnNob3VsZC5iZS5mYWxzZSgpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH0pO1xuICAgICAgICBkZXNjcmliZShcIi5pc0RpclwiLGZ1bmN0aW9uKCl7XG4gICAgICAgICAgICBpdChcInNob3VsZCBiZSB0cnVlIGZvciBhIGRpcmVjdG9yeSBwYXRoXCIsZnVuY3Rpb24oKXtcbiAgICAgICAgICAgICAgICBzbWFydHBhdGguY2hlY2suaXNEaXIoZGlyUGF0aFN0cmluZylcbiAgICAgICAgICAgICAgICAgICAgLnNob3VsZC5iZS50cnVlKCk7XG4gICAgICAgICAgICAgICAgc21hcnRwYXRoLmNoZWNrLmlzRGlyKGRpclBhdGhTdHJpbmcyKVxuICAgICAgICAgICAgICAgICAgICAuc2hvdWxkLmJlLnRydWUoKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgaXQoXCJzaG91bGQgYmUgZmFsc2UgZm9yIGEgZmlsZSBwYXRoXCIsZnVuY3Rpb24oKXtcbiAgICAgICAgICAgICAgICBzbWFydHBhdGguY2hlY2suaXNEaXIoZmlsZVBhdGhTdHJpbmcpXG4gICAgICAgICAgICAgICAgICAgIC5zaG91bGQuYmUuZmFsc2UoKTtcbiA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4gJ3BhdGgnIGZvciBhIFBhdGhcIixmdW5jdGlvbigpe1xuICAgICAgICAgICAgICAgIHNtYXJ0cGF0aC5nZXQudHlwZShcIi9zb21lL2Fic29sdXRlL3BhdGgvXCIpLnNob3VsZC5lcXVhbChcImxvY2FsXCIpO1xuICAgICAgICAgICAgICAgIHNtYXJ0cGF0aC5nZXQudHlwZShcIi4vc29tZS9yZWxhdGl2ZS9wYXRoL1wiKS5zaG91bGQubm90LmVxdWFsKFwidXJsXCIpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH0pO1xuICAgICAgICBkZXNjcmliZShcIi5nZXQoKVwiLGZ1bmN0aW9uKCl7XG4gICAgICAgICAgICBpdChcInNob3VsZCBhIGFic29sdXRlIHBhdGggZm9yIGFuIGhvbWUgcmVsYXRpdmUgVVJMXCIsZnVuY3Rpb24oKXtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhzbWFydHBhdGguZ2V0LmhvbWUoXCJ+L3Rlc3RcIikpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBpdChcInNob3VsZCByZXR1cm4gdGhlIGhvbWUgZGlyZWN0b3J5IHBhdGggd2hlbiBubyBhcmd1bWVudCBpcyBzcGVjaWZpZWRcIixmdW5jdGlvbigpe1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHNtYXJ0cGF0aC5nZXQuaG9tZSgpKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9KTtcbiAgICB9KTtcbn0pO1xuIl19
+//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sY0FDUCxDQUFDLENBRG9CO0FBQ3JCLElBQUksTUFBTSxHQUFHLE9BQU8sQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUMvQixJQUFJLFNBQVMsR0FBRyxPQUFPLENBQUMsa0JBQWtCLENB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maWxlLmpzb25cIlxyXG4gICAgICAgIGxldCBkaXJQYXRoU3RyaW5nID0gXCIuL3NvbWVkaXIvYW5vdGhlcmRpclwiXHJcbiAgICAgICAgbGV0IGRpclBhdGhTdHJpbmcyID0gXCIuL3NvbWVkaXIvYW5vdGhlci5kaXIvXCJcclxuICAgICAgICBkZXNjcmliZShcIi5pc0ZpbGVcIixmdW5jdGlvbigpe1xyXG4gICAgICAgICAgICBpdChcInNob3VsZCBiZSB0cnVlIGZvciBhIGZpbGUgcGF0aFwiLGZ1bmN0aW9uKCl7XHJcbiAgICAgICAgICAgICAgICBzbWFydHBhdGguY2hlY2suaXNGaWxlKGZpbGVQYXRoU3RyaW5nKVxyXG4gICAgICAgICAgICAgICAgICAgIC5zaG91bGQuYmUudHJ1ZSgpO1xyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgaXQoXCJzaG91bGQgYmUgZmFsc2UgZm9yIGEgZGlyZWN0b3J5IHBhdGhcIixmdW5jdGlvbigpe1xyXG4gICAgICAgICAgICAgICAgc21hcnRwYXRoLmNoZWNrLmlzRmlsZShkaXJQYXRoU3RyaW5nKVxyXG4gICAgICAgICAgICAgICAgICAgIC5zaG91bGQuYmUuZmFsc2UoKTtcclxuICAgICAgICAgICAgICAgIHNtYXJ0cGF0aC5jaGVjay5pc0ZpbGUoZGlyUGF0aFN0cmluZzIpXHJcbiAgICAgICAgICAgICAgICAgICAgLnNob3VsZC5iZS5mYWxzZSgpO1xyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICB9KTtcclxuICAgICAgICBkZXNjcmliZShcIi5pc0RpclwiLGZ1bmN0aW9uKCl7XHJcbiAgICAgICAgICAgIGl0KFwic2hvdWxkIGJlIHRydWUgZm9yIGEgZGlyZWN0b3J5IHBhdGhcIixmdW5jdGlvbigpe1xyXG4gICAgICAgICAgICAgICAgc21hcnRwYXRoLmNoZWNrLmlzRGlyKGRpclBhdGhTdHJpbmcpXHJcbiAgICAgICAgICAgICAgICAgICA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ICAgaXQoXCJzaG91bGQgcmV0dXJuIHRoZSBob21lIGRpcmVjdG9yeSBwYXRoIHdoZW4gbm8gYXJndW1lbnQgaXMgc3BlY2lmaWVkXCIsZnVuY3Rpb24oKXtcclxuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHNtYXJ0cGF0aC5nZXQuaG9tZSgpKTtcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9KTtcclxufSk7XHJcbiJdfQ==
diff --git a/test/test.ts b/test/test.ts
index a85ba53..ba4754b 100644
--- a/test/test.ts
+++ b/test/test.ts
@@ -1,4 +1,4 @@
-///
+import "typings-test"
let should = require("should");
let smartpath = require("../dist/index.js");
diff --git a/ts/smartpath.check.ts b/ts/smartpath.check.ts
index c86f43c..60d44ca 100644
--- a/ts/smartpath.check.ts
+++ b/ts/smartpath.check.ts
@@ -1,4 +1,5 @@
-import plugins = require("./smartpath.plugins");
+import "typings-global";
+import * as plugins from "./smartpath.plugins";
export let isDir = function(pathArg:string){
return !isFile(pathArg);
diff --git a/ts/smartpath.get.ts b/ts/smartpath.get.ts
index 1fd22fc..d00f425 100644
--- a/ts/smartpath.get.ts
+++ b/ts/smartpath.get.ts
@@ -1,5 +1,5 @@
-///
-import plugins = require("./smartpath.plugins");
+import "typings-global";
+import * as plugins from "./smartpath.plugins";
/**
* returns the type of the given path. Can be "url" or "local"
diff --git a/ts/smartpath.plugins.ts b/ts/smartpath.plugins.ts
index e214ba2..e5f9571 100644
--- a/ts/smartpath.plugins.ts
+++ b/ts/smartpath.plugins.ts
@@ -1,4 +1,4 @@
-///
+import "typings-global";
export var beautylog = require ("beautylog");
export var home = require("home");
export var path = require("path");
diff --git a/ts/smartpath.transform.ts b/ts/smartpath.transform.ts
index a3bd9e7..5e832b9 100644
--- a/ts/smartpath.transform.ts
+++ b/ts/smartpath.transform.ts
@@ -1,5 +1,5 @@
-///
-import plugins = require("./smartpath.plugins");
+import "typings-global";
+import * as plugins from "./smartpath.plugins";
/* ------------------------------------------ *
* ------------ helpers --------------------- *