workspace-tools
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -5,3 +5,18 @@ { | ||
{ | ||
"date": "Fri, 19 Jun 2020 17:53:47 GMT", | ||
"date": "Fri, 17 Jul 2020 19:15:58 GMT", | ||
"tag": "workspace-tools_v0.9.0", | ||
"version": "0.9.0", | ||
"comments": { | ||
"minor": [ | ||
{ | ||
"comment": "Add a new env variable to allow one to pick the preferred workspace manager", | ||
"author": "kchau@microsoft.com", | ||
"commit": "844da12e2501036e36cc5108a340620dabbd3d3a", | ||
"package": "workspace-tools" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Fri, 19 Jun 2020 17:53:56 GMT", | ||
"tag": "workspace-tools_v0.8.0", | ||
@@ -8,0 +23,0 @@ "version": "0.8.0", |
# Change Log - workspace-tools | ||
This log was last generated on Fri, 19 Jun 2020 17:53:47 GMT and should not be manually modified. | ||
This log was last generated on Fri, 17 Jul 2020 19:15:58 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 0.9.0 | ||
Fri, 17 Jul 2020 19:15:58 GMT | ||
### Minor changes | ||
- Add a new env variable to allow one to pick the preferred workspace manager (kchau@microsoft.com) | ||
## 0.8.0 | ||
Fri, 19 Jun 2020 17:53:47 GMT | ||
Fri, 19 Jun 2020 17:53:56 GMT | ||
@@ -11,0 +19,0 @@ ### Minor changes |
@@ -10,3 +10,13 @@ "use strict"; | ||
const rushWorkspaces_1 = require("./rushWorkspaces"); | ||
const workspaceGetter = { | ||
yarn: yarnWorkspaces_1.getYarnWorkspaces, | ||
pnpm: pnpmWorkspaces_1.getPnpmWorkspaces, | ||
rush: rushWorkspaces_1.getRushWorkspaces, | ||
}; | ||
const preferred = process.env | ||
.PREFERRED_WORKSPACE_MANAGER; | ||
function getWorkspaces(cwd) { | ||
if (preferred && workspaceGetter[preferred]) { | ||
return workspaceGetter[preferred](cwd); | ||
} | ||
const yarnLockPath = find_up_1.default.sync("yarn.lock", { cwd }); | ||
@@ -13,0 +23,0 @@ if (yarnLockPath) { |
{ | ||
"name": "workspace-tools", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
73095
71
1707
11