@abmao/forb
Advanced tools
Comparing version 1.0.4 to 1.0.5
import { globby } from 'globby' | ||
export async function getPackagesDir(packagesPath) { | ||
const values = await globby(packagesPath) | ||
const ignore = '!**/node_modules' | ||
const params = Array.isArray(packagesPath) ? [...packagesPath, ignore] : [packagesPath, ignore] | ||
const values = await globby(params) | ||
const regExp = new RegExp('\/package\\.json$') | ||
@@ -5,0 +7,0 @@ const filesPath = values.filter(item => regExp.test(item)) |
{ | ||
"name": "@abmao/forb", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Get the directory path of `packages` and `packages.json` path", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3065
14