@invrs/npm-tasks
Advanced tools
Comparing version 0.8.27 to 0.8.28
@@ -93,3 +93,3 @@ "use strict"; | ||
const pkgPath = `${cwd}/packages`; | ||
const pkgGlob = `${pkgPath}/*/package.json`; | ||
const pkgGlob = `{${pkgPath}/*,}/package.json`; | ||
const paths = yield (0, _util.promisify)(_glob.default)(pkgGlob); | ||
@@ -122,5 +122,2 @@ | ||
const rm = ["rm", ["-rf", "node_modules", "package-lock.json"]]; | ||
yield run(...rm, { | ||
cwd | ||
}); | ||
yield eachPackage(cwd, | ||
@@ -262,3 +259,3 @@ /*#__PURE__*/ | ||
var _ref2 = (0, _asyncToGenerator2.default)(function* ({ | ||
cwd, | ||
path, | ||
pkg | ||
@@ -268,12 +265,14 @@ }) { | ||
const dev = pkg.devDependencies[update]; | ||
const depVersion = dep || dev; | ||
if (depVersion && depVersion != carat) { | ||
yield tasks.npm({ | ||
cwd, | ||
dev, | ||
install: `${update}@${version}`, | ||
update: false | ||
}); | ||
if (dep && dep != carat) { | ||
pkg.dependencies[update] = carat; | ||
} | ||
if (dev && dev != carat) { | ||
pkg.devDependencies[update] = carat; | ||
} | ||
yield (0, _fsExtra.writeJson)(path, pkg, { | ||
spaces: 2 | ||
}); | ||
}); | ||
@@ -280,0 +279,0 @@ |
{ | ||
"name": "@invrs/npm-tasks", | ||
"version": "0.8.27", | ||
"version": "0.8.28", | ||
"description": "River tasks to run npm commands", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
18015
261