Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tunnckocore/utils

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tunnckocore/utils - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

11

CHANGELOG.md

@@ -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 @@

38

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc