@tunnckocore/utils
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.5.2](https://github.com/tunnckoCore/opensource/compare/@tunnckocore/utils@0.5.1...@tunnckocore/utils@0.5.2) (2019-09-18) | ||
### Bug Fixes | ||
* handle weird monorepo setup; some more tweaks ([51d6c7a](https://github.com/tunnckoCore/opensource/commit/51d6c7a)) | ||
## [0.5.1](https://github.com/tunnckoCore/opensource/compare/@tunnckocore/utils@0.5.0...@tunnckocore/utils@0.5.1) (2019-09-18) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"name": "@tunnckocore/utils", | ||
"description": "Thin layer on top of `execa` that allows executing multiple commands in parallel or in sequence with control for concurrency", | ||
"description": "Utility functions and helpers for internal usage and monorepos", | ||
"author": "Charlike Mike Reagent <opensource@tunnckocore.com>", | ||
@@ -10,4 +10,3 @@ "homepage": "https://github.com/tunnckoCore/opensource", | ||
"main": "src/index.js", | ||
"module": "src/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"types": "src/index.d.ts", | ||
"scripts": {}, | ||
@@ -27,3 +26,3 @@ "publishConfig": { | ||
"files": [ | ||
"dist" | ||
"src" | ||
], | ||
@@ -33,24 +32,11 @@ "keywords": [ | ||
"develop", | ||
"parallel", | ||
"series", | ||
"concurrency", | ||
"sequence", | ||
"exec", | ||
"child", | ||
"process", | ||
"execute", | ||
"fork", | ||
"execfile", | ||
"execa", | ||
"spawn", | ||
"file", | ||
"shell", | ||
"bin", | ||
"binary", | ||
"binaries", | ||
"npm", | ||
"path", | ||
"local" | ||
"hela", | ||
"tunnckocore", | ||
"monorepo", | ||
"monorepo helpers", | ||
"helpers", | ||
"utils", | ||
"utilities" | ||
], | ||
"gitHead": "072ddffc7c9241dea49735d1c0bb2ca136e09b15" | ||
"gitHead": "7f64de507669a607ddc201d92abd09eba248b86e" | ||
} |
@@ -38,3 +38,5 @@ const fs = require('fs'); | ||
.readdirSync(workspace) | ||
.filter((x) => !result.workspaces.find((z) => z.endsWith(x))) | ||
.map((directory) => { | ||
// console.log(workspace); | ||
const pkgDirectory = path.join(workspace, directory); | ||
@@ -51,5 +53,6 @@ const pkgJsonPath = path.join(pkgDirectory, 'package.json'); | ||
if (Object.keys(packageJson).length === 0) { | ||
throw new Error( | ||
`Cannot find package.json or cannot parse it: ${pkgJsonPath}`, | ||
); | ||
return null; | ||
// throw new Error( | ||
// `Cannot find package.json or cannot parse it: ${pkgJsonPath}`, | ||
// ); | ||
} | ||
@@ -59,4 +62,5 @@ return [pkgDirectory, packageJson]; | ||
return acc.concat(packages); | ||
return acc.concat(packages).filter(Boolean); | ||
}, []) | ||
.filter(Boolean) | ||
.reduce((acc, [pkgDirectory, packageJson]) => { | ||
@@ -92,3 +96,3 @@ if (typeof sourceDirectory === 'string') { | ||
.map((ws) => path.dirname(ws)); | ||
// console.log('workspaces', workspaces); | ||
let exts = [].concat(pkg.extensions).filter(Boolean); | ||
@@ -95,0 +99,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
2
5457
3
89
1