@normalizer/core
Advanced tools
Comparing version 0.1.3 to 0.1.4
const isCI = require('./src/utils/is-ci') | ||
const findPackagePath = require('./src/utils/find-path') | ||
const { findPackagePath, findCurrentPath } = require('./src/utils/find-path') | ||
const run = require('./src/utils/runner') | ||
@@ -42,3 +42,4 @@ const chalk = require('chalk') | ||
module.exports.findPackagePath = findPackagePath | ||
module.exports.findCurrentPath = findCurrentPath | ||
module.exports.run = run | ||
module.exports.chalk = chalk |
{ | ||
"name": "@normalizer/core", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,3 +6,3 @@ 'use strict' | ||
module.exports = function () { | ||
module.exports.findPackagePath = function () { | ||
const depDir = process.argv[2] || findCurrentDir('@normalizer/core') | ||
@@ -22,2 +22,6 @@ const isInSubNodeModule = (depDir.match(/node_modules/g) || []).length > 1 | ||
module.exports.findCurrentPath = function () { | ||
return findCurrentDir('@normalizer/core') | ||
} | ||
function findCurrentDir(dir) { | ||
@@ -24,0 +28,0 @@ const depDir = path.join(__dirname, '../..') |
3151
84