@git-temporal/commons
Advanced tools
Comparing version 0.1.2 to 0.4.0
@@ -15,2 +15,13 @@ "use strict"; | ||
function findGitRoot(startingPath) { | ||
const parentPath = findInParents(startingPath); | ||
if (parentPath) { | ||
return parentPath; | ||
} | ||
if (startingPath) { | ||
return findInParents(null); | ||
} | ||
return null; | ||
} | ||
exports.findGitRoot = findGitRoot; | ||
function findInParents(startingPath) { | ||
let currentPath = (startingPath && path.resolve(startingPath)) || process.cwd(); | ||
@@ -38,2 +49,1 @@ try { | ||
} | ||
exports.findGitRoot = findGitRoot; |
{ | ||
"name": "@git-temporal/commons", | ||
"version": "0.1.2", | ||
"version": "0.4.0", | ||
"description": "Common functions used by git-temporal", | ||
@@ -23,3 +23,3 @@ "keywords": [ | ||
"scripts": { | ||
"build": "NODE_ENV=production tsc", | ||
"build": "cross-env NODE_ENV=production tsc", | ||
"test": "cross-env mocha --exit -r ../../babel-register.js --recursive --opts ./test/mocha.opts ./test/unit", | ||
@@ -36,3 +36,3 @@ "test-debug": "cross-env mocha --inspect-brk --exit -r ../../babel-register.js --recursive --opts ./test/mocha.opts ./test/unit", | ||
"dependencies": { | ||
"@git-temporal/logger": "^0.1.0" | ||
"@git-temporal/logger": "^0.4.0" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
<!-- START doctoc generated TOC please keep comment here to allow auto update --> | ||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> | ||
- [`commons`](#commons) | ||
@@ -6,0 +5,0 @@ - [Usage](#usage) |
6887
123
20
+ Added@git-temporal/logger@0.4.0(transitive)
- Removed@git-temporal/logger@0.1.0(transitive)
Updated@git-temporal/logger@^0.4.0