get-installed-path
Advanced tools
Comparing version 3.0.3 to 4.0.0
@@ -126,3 +126,3 @@ /** | ||
* @return {string} The full filepath or throw `TypeError` if `name` not a string or is empty string | ||
* @name .sync | ||
* @name getInstalledPathSync | ||
* @public | ||
@@ -182,4 +182,2 @@ */ | ||
getInstalledPath.sync = getInstalledPathSync; | ||
export default getInstalledPath; | ||
export { getInstalledPath, getInstalledPathSync }; |
@@ -8,2 +8,4 @@ /** | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
@@ -131,3 +133,3 @@ | ||
* @return {string} The full filepath or throw `TypeError` if `name` not a string or is empty string | ||
* @name .sync | ||
* @name getInstalledPathSync | ||
* @public | ||
@@ -187,4 +189,3 @@ */ | ||
getInstalledPath.sync = getInstalledPathSync; | ||
module.exports = getInstalledPath; | ||
exports.getInstalledPath = getInstalledPath; | ||
exports.getInstalledPathSync = getInstalledPathSync; |
{ | ||
"name": "get-installed-path", | ||
"version": "3.0.3", | ||
"version": "4.0.0", | ||
"description": "Get installation path where the given package is installed. Works for globally and locally installed packages", | ||
@@ -15,3 +15,3 @@ "repository": "tunnckoCore/get-installed-path", | ||
"test": "yarn start test", | ||
"posttest": "rimraf dist/node_modules", | ||
"posttest": "rimraf dist/node_modules && rimraf dist/test.js", | ||
"precommit": "yarn start precommit", | ||
@@ -18,0 +18,0 @@ "commit": "yarn start commit" |
28958